From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-cdr/qpxtool/Manifest | 1 + app-cdr/qpxtool/files/qpxtool-0.7.0-libpng15.patch | 125 +++++++++++++++++++++ .../files/qpxtool-0.7.0-locale-install-race.patch | 33 ++++++ app-cdr/qpxtool/files/qpxtool-0.7.2-libs.patch | 11 ++ app-cdr/qpxtool/metadata.xml | 8 ++ app-cdr/qpxtool/qpxtool-0.7.2.ebuild | 42 +++++++ 6 files changed, 220 insertions(+) create mode 100644 app-cdr/qpxtool/Manifest create mode 100644 app-cdr/qpxtool/files/qpxtool-0.7.0-libpng15.patch create mode 100644 app-cdr/qpxtool/files/qpxtool-0.7.0-locale-install-race.patch create mode 100644 app-cdr/qpxtool/files/qpxtool-0.7.2-libs.patch create mode 100644 app-cdr/qpxtool/metadata.xml create mode 100644 app-cdr/qpxtool/qpxtool-0.7.2.ebuild (limited to 'app-cdr/qpxtool') diff --git a/app-cdr/qpxtool/Manifest b/app-cdr/qpxtool/Manifest new file mode 100644 index 00000000000..e3c9fc7f7e2 --- /dev/null +++ b/app-cdr/qpxtool/Manifest @@ -0,0 +1 @@ +DIST qpxtool-0.7.2.tar.bz2 587694 SHA256 ac18e4a1b4cb616c0218d04ab5a7b02f53c84449d1d0f63aa3f712656992c526 SHA512 e9384583ebdbcf450ef4fc637d9d99ac6598a5217caecb7c46e2f844e25f8808806eb31f08530a7d89f8b31247141413c306529780dbb71d992140de34a8877c WHIRLPOOL 7e44290209276f80d042e975fa57d4ec392d9dfb46e0fafe8f53cc1da2ea82d368e6b2a0f267a93a87dc8e3d3defd71c066d1a30eeb694009acef561c12f9863 diff --git a/app-cdr/qpxtool/files/qpxtool-0.7.0-libpng15.patch b/app-cdr/qpxtool/files/qpxtool-0.7.0-libpng15.patch new file mode 100644 index 00000000000..b1be8dba113 --- /dev/null +++ b/app-cdr/qpxtool/files/qpxtool-0.7.0-libpng15.patch @@ -0,0 +1,125 @@ +--- console/f1tattoo/f1tattoo.cpp ++++ console/f1tattoo/f1tattoo.cpp +@@ -96,6 +96,10 @@ + int c; + int32_t r,g,b; + ++ png_colorp palette; ++ int num_palette; ++ png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); ++ + if (fread(header, 1, 8, fp) < 8) { + printf("Error reading PNG header\n"); + fclose(fp); +@@ -129,9 +133,9 @@ + + png_read_info(png_ptr, info_ptr); + +- printf("Image size: %ld x %ld\n", info_ptr->width, info_ptr->height); ++ printf("Image size: %ld x %ld\n", png_get_image_width(png_ptr, info_ptr), png_get_image_height(png_ptr, info_ptr)); + +- if (info_ptr->width != 3744U || info_ptr->height != rows ) { ++ if (png_get_image_width(png_ptr, info_ptr) != 3744U || png_get_image_height(png_ptr, info_ptr) != rows ) { + printf("Image should be 3744 x %d", rows); + return 1; + } +@@ -143,14 +147,14 @@ + number_of_passes = png_set_interlace_handling(png_ptr); + png_read_update_info(png_ptr, info_ptr); + +- printf("Color type: [%d] ", info_ptr->color_type); +- switch (info_ptr->color_type) { ++ printf("Color type: [%d] ", png_get_color_type(png_ptr, info_ptr)); ++ switch (png_get_color_type(png_ptr, info_ptr)) { + case PNG_COLOR_TYPE_GRAY: + printf("PNG_COLOR_TYPE_GRAY\n"); + break; + case PNG_COLOR_TYPE_PALETTE: + printf("PNG_COLOR_TYPE_PALETTE\n"); +- if (!(info_ptr->valid & PNG_INFO_PLTE)) { ++ if (!(png_get_valid(png_ptr,info_ptr,PNG_INFO_PLTE))) { + printf("PNG color type is indexed, but no palette found!"); + goto err_read_png; + } +@@ -168,49 +172,49 @@ + printf("unlnown PNG color type!\n"); + goto err_read_png; + } +- printf("Bit depth : %d\n", info_ptr->bit_depth); +- if (info_ptr->bit_depth != 8) { ++ printf("Bit depth : %d\n", png_get_bit_depth(png_ptr, info_ptr)); ++ if (png_get_bit_depth(png_ptr, info_ptr) != 8) { + printf("Unsupported bit depth!\n"); + goto err_read_png; + } +- if (info_ptr->valid & PNG_INFO_PLTE) { +- printf("Palette : %d colors\n", info_ptr->num_palette); ++ if (png_get_valid(png_ptr,info_ptr,PNG_INFO_PLTE)) { ++ printf("Palette : %d colors\n", num_palette); + } else { + printf("Palette : NO\n"); + } +- printf("ROW bytes : %ld\n", info_ptr->rowbytes); ++ printf("ROW bytes : %ld\n", png_get_rowbytes(png_ptr, info_ptr)); + + + raw_row_pointer = buf; +- png_row_pointer = (png_byte*) malloc(info_ptr->rowbytes); ++ png_row_pointer = (png_byte*) malloc(png_get_rowbytes(png_ptr, info_ptr)); + for (row=0; rowwidth < 3744U) ++ if (png_get_image_width(png_ptr, info_ptr) < 3744U) + memset(raw_row_pointer, 0, 3744); + +- switch (info_ptr->color_type) { ++ switch (png_get_color_type(png_ptr, info_ptr)) { + case PNG_COLOR_TYPE_GRAY: +- for (col=0; colwidth; col++) { ++ for (col=0; colwidth; col++) { ++ for (col=0; colpalette[c].red; +- g = info_ptr->palette[c].green; +- b = info_ptr->palette[c].blue; ++ r = palette[c].red; ++ g = palette[c].green; ++ b = palette[c].blue; + c = (r*11 + g*16 + b*5) / 32; + raw_row_pointer[col] = c ^ 0xFF; + } + break; + case PNG_COLOR_TYPE_RGB: +- for (col=0; colwidth; col++) { ++ for (col=0; colwidth; col++) { ++ for (col=0; colwidth; col++) { ++ for (col=0; col + + + media-optical + + qpxtool + + diff --git a/app-cdr/qpxtool/qpxtool-0.7.2.ebuild b/app-cdr/qpxtool/qpxtool-0.7.2.ebuild new file mode 100644 index 00000000000..f841fc9eaf7 --- /dev/null +++ b/app-cdr/qpxtool/qpxtool-0.7.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs qt4-r2 + +DESCRIPTION="CD/DVD quality checking utilities" +HOMEPAGE="http://qpxtool.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-qt/qtgui:4 + dev-qt/qtsql:4 + media-libs/libpng" + +DOCS="AUTHORS ChangeLog README SupportedDevices TODO" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.7.0-locale-install-race.patch \ + "${FILESDIR}"/${PN}-0.7.0-libpng15.patch \ + "${FILESDIR}"/${PN}-0.7.2-libs.patch +} + +src_configure() { + tc-export CXX + ./configure --prefix=/usr || die + cd gui || die + mv -v Makefile{,.orig} || die "Backup Makefile for install" + qt4-r2_src_configure +} + +src_install() { + mv -v gui/Makefile.orig gui/Makefile || die "Restore Makefile for install" + dodir /usr/bin + dohtml status.html + qt4-r2_src_install +} -- cgit v1.2.1