diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-cdr/qpxtool |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-cdr/qpxtool')
-rw-r--r-- | app-cdr/qpxtool/Manifest | 8 | ||||
-rw-r--r-- | app-cdr/qpxtool/files/qpxtool-0.7.0-libpng15.patch | 125 | ||||
-rw-r--r-- | app-cdr/qpxtool/files/qpxtool-0.7.0-locale-install-race.patch | 33 | ||||
-rw-r--r-- | app-cdr/qpxtool/files/qpxtool-0.7.2-libs.patch | 11 | ||||
-rw-r--r-- | app-cdr/qpxtool/metadata.xml | 8 | ||||
-rw-r--r-- | app-cdr/qpxtool/qpxtool-0.7.2.ebuild | 41 |
6 files changed, 226 insertions, 0 deletions
diff --git a/app-cdr/qpxtool/Manifest b/app-cdr/qpxtool/Manifest new file mode 100644 index 000000000000..0225a584ee8a --- /dev/null +++ b/app-cdr/qpxtool/Manifest @@ -0,0 +1,8 @@ +AUX qpxtool-0.7.0-libpng15.patch 4372 SHA256 c1223c211457b28d0c23afbf738a4c7476bcb912a7d15f281e53d056574952ce SHA512 0160953f994dfdead7b662bfd93533910eb6eee0e83158bc7eeaef62496a5e4b3bf107833f34bfcd952f33145cf8055b1e56755162a12e377b1fad93cd7744b6 WHIRLPOOL 972fa4091043aef2f4ee3a3d1b93b2ef4e14b4eb08ecb3c3f1226540d45bb0da1e7283139e44a20824f66d15fb5d86ba7137f59d924f3228e7cc58f179c54097 +AUX qpxtool-0.7.0-locale-install-race.patch 1003 SHA256 35b625380ac55771b37cd770895f65c4c0ee8666eb2be57b4ac2c72ff77f6282 SHA512 43c6bbec7dc93b71f72d54c097f0b84e0379e168e9ed322a5712b7c1f42ba1b88dd73f8e83ab23350de370a343dacd5c01a6d35f1ceaced231766bcb3f8626e3 WHIRLPOOL 7baec73b143f6398044afd9f5c097cd096ca3c3cb07c7ba26d3f5d67449cf18d9f6d3c9571f14c3f656c2fcbb0a76c11235da3718fac4ca59a8a900c51cb1fce +AUX qpxtool-0.7.2-libs.patch 266 SHA256 de8c75c7f6e70bbb11922f25417441269603cf09e98f6ea89193dd58e302f80d SHA512 c7b6aa596419282fbd508211fa0cd45945ecc4a4afa8c6959ff7db444b19b104527830e0f2b10a3751cf509b4069914a07343e59eb1bd1fb658181a0d9b9399b WHIRLPOOL 075d71af2be3c487eab6a4d54907de7fd919d1a13410392e68fc109bebafa6576e0da3ed05c7eb1abeb68a52b928957e001453067c88bfbbba34d2290e4d26f1 +DIST qpxtool-0.7.2.tar.bz2 587694 SHA256 ac18e4a1b4cb616c0218d04ab5a7b02f53c84449d1d0f63aa3f712656992c526 SHA512 e9384583ebdbcf450ef4fc637d9d99ac6598a5217caecb7c46e2f844e25f8808806eb31f08530a7d89f8b31247141413c306529780dbb71d992140de34a8877c WHIRLPOOL 7e44290209276f80d042e975fa57d4ec392d9dfb46e0fafe8f53cc1da2ea82d368e6b2a0f267a93a87dc8e3d3defd71c066d1a30eeb694009acef561c12f9863 +EBUILD qpxtool-0.7.2.ebuild 951 SHA256 b71bbef3cb76598e71f5b32e5203bc2551513c73c0add7109154b0938a091597 SHA512 fe63f2a1475ef463cb38feb9ba11145efa90a20edda16a64c1512d1610b1c69ecc4bef69a6a50a611c9ad28bac75a397acc39cac6fe5704f49117ad19dfec0bd WHIRLPOOL a96b7677ad14f831edfa3036aa843b6f3a1938882e2c5d2fc856119f29844e561cdbce5906f741abff75f9ab0f92660ca65c13c50f0fac0c489950cfe4d808eb +MISC ChangeLog 2577 SHA256 2343131b49d34090b72fd76c62c522718ada41f6db70c5287f40df6d41fd04b0 SHA512 0238bc5f11dd941278d137a09fce590ee4b56bf4ba8d36b55c923175d3d11d15652df2cc7d79ab9734264058f29049cd01e98984dae59de4c968705339cb406d WHIRLPOOL a7fadce16c95448fbbe10e52453eec2fcd36de86c40af005df36f76c916da9c2e84260edc2b0af73e46a696cd6a5c64aa4e869d3ba9b6fb68a3c1e6557962203 +MISC ChangeLog-2015 4185 SHA256 2f30042972680307a8feac851d7c728706dd18aae87ce1617aa988677978fc82 SHA512 0b73f6a61d4074a3842992ef77c3310e81daf05562e429139948b00f0563fa7a98351accb8d9fd7b1d3a38ed00a9324f03335ad202e6aafde7de4df803a4dcf7 WHIRLPOOL 1036f6699d9f6bbab3836b097c9f1c93474a7a92c78402255aac6eea567cb777c0f7bc8cbded7f8fe9785831c0d9d02e9f426584de93a6af4f5aea4e8455f408 +MISC metadata.xml 244 SHA256 69cf6741e7859e7d2fe56a4ad4deea9d8d1edadb708d091ccaf308076e9f8972 SHA512 ec30b6ccb9a268b7514ee09ffb014d59013c5055fdba28d87621439173a95d546fe52abd5cf69dfc0594163aaabb4363d09af69e031769e96dd8a388ad74e42a WHIRLPOOL 6f7972945f89feb2bb6c13c8194aab3b82a9db8019f1b536dd66b8db3943a4dc0a4a4b9f247c178ae986ce41be39d86914549a3dfced364425c335068e578e11 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 000000000000..b1be8dba1135 --- /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; row<rows; row++) { + if (setjmp(png_jmpbuf(png_ptr))) { + printf("png_jmpbuf failed!\n"); + goto err_read_png; + } + png_read_row(png_ptr, png_row_pointer, NULL); +- if (info_ptr->width < 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; col<info_ptr->width; col++) { ++ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) { + raw_row_pointer[col] = png_row_pointer[col] ^ 0xFF; + // memcpy(raw_row_pointer, png_row_pointer, 3744); + } + break; + case PNG_COLOR_TYPE_PALETTE: +- for (col=0; col<info_ptr->width; col++) { ++ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) { + c = png_row_pointer[col]; +- r = info_ptr->palette[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; col<info_ptr->width; col++) { ++ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) { + r = png_row_pointer[col*3]; + g = png_row_pointer[col*3+1]; + b = png_row_pointer[col*3+2]; +@@ -219,7 +223,7 @@ + } + break; + case PNG_COLOR_TYPE_RGB_ALPHA: +- for (col=0; col<info_ptr->width; col++) { ++ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) { + r = png_row_pointer[col*4]; + g = png_row_pointer[col*4+1]; + b = png_row_pointer[col*4+2]; +@@ -228,7 +232,7 @@ + } + break; + case PNG_COLOR_TYPE_GRAY_ALPHA: +- for (col=0; col<info_ptr->width; col++) { ++ for (col=0; col<png_get_image_width(png_ptr, info_ptr); col++) { + raw_row_pointer[col] = png_row_pointer[col*2] ^ 0xFF; + } + break; diff --git a/app-cdr/qpxtool/files/qpxtool-0.7.0-locale-install-race.patch b/app-cdr/qpxtool/files/qpxtool-0.7.0-locale-install-race.patch new file mode 100644 index 000000000000..9192a90a7892 --- /dev/null +++ b/app-cdr/qpxtool/files/qpxtool-0.7.0-locale-install-race.patch @@ -0,0 +1,33 @@ +--- qpxtool-0.7.0/gui/updateqm.pri.orig 2010-01-25 19:44:45.061640334 +0100 ++++ qpxtool-0.7.0/gui/updateqm.pri 2010-01-25 19:40:03.711640850 +0100 +@@ -0,0 +1,19 @@ ++isEmpty(QMAKE_LRELEASE) { ++ ++ win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe ++ ++ else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease ++ ++} ++ ++updateqm.input = TRANSLATIONS ++ ++updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm ++ ++updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm ++ ++updateqm.CONFIG += no_link ++ ++QMAKE_EXTRA_COMPILERS += updateqm ++ ++PRE_TARGETDEPS += compiler_updateqm_make_all +--- qpxtool-0.7.0/gui/qpxtool.pro.orig 2010-01-25 19:46:45.011641756 +0100 ++++ qpxtool-0.7.0/gui/qpxtool.pro 2010-01-25 19:47:08.397640627 +0100 +@@ -2,6 +2,8 @@ + # Automatically generated by qmake (2.01a) ?? ???. 24 12:26:02 2009 + ###################################################################### + ++include( updateqm.pri ) ++ + MOC_DIR=moc + OBJECTS_DIR=obj + QT+=network diff --git a/app-cdr/qpxtool/files/qpxtool-0.7.2-libs.patch b/app-cdr/qpxtool/files/qpxtool-0.7.2-libs.patch new file mode 100644 index 000000000000..ef46e5e6a23c --- /dev/null +++ b/app-cdr/qpxtool/files/qpxtool-0.7.2-libs.patch @@ -0,0 +1,11 @@ +--- qpxtool-0.7.2/gui/qpxtool.pro ++++ qpxtool-0.7.2/gui/qpxtool.pro +@@ -13,6 +13,8 @@ + DEPENDPATH += . include locale src + INCLUDEPATH += . include + ++LIBS+=-L../lib/lib -lqpxtransport ++ + # Input + HEADERS += include/about.h \ + include/abstractpreview.h \ diff --git a/app-cdr/qpxtool/metadata.xml b/app-cdr/qpxtool/metadata.xml new file mode 100644 index 000000000000..6d7d01508cd0 --- /dev/null +++ b/app-cdr/qpxtool/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">qpxtool</remote-id> + </upstream> +</pkgmetadata> 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 000000000000..0482a6374c6e --- /dev/null +++ b/app-cdr/qpxtool/qpxtool-0.7.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |