diff options
Diffstat (limited to 'dev-tcltk/tkimg')
-rw-r--r-- | dev-tcltk/tkimg/Manifest | 7 | ||||
-rw-r--r-- | dev-tcltk/tkimg/files/tkimg-1.4-png2.patch | 36 | ||||
-rw-r--r-- | dev-tcltk/tkimg/metadata.xml | 14 | ||||
-rw-r--r-- | dev-tcltk/tkimg/tkimg-1.4-r9.ebuild | 89 |
4 files changed, 146 insertions, 0 deletions
diff --git a/dev-tcltk/tkimg/Manifest b/dev-tcltk/tkimg/Manifest new file mode 100644 index 000000000000..904dc4aae2cf --- /dev/null +++ b/dev-tcltk/tkimg/Manifest @@ -0,0 +1,7 @@ +AUX tkimg-1.4-png2.patch 1044 SHA256 be9ab3c3cd82b65fd0ed2d3e30398ee671d19c78aa60e6464aac11caa56660ea SHA512 fbf982af5446fc54212745eee8338d5dc4b169f79045963be23a84c7a0ef9e68f54d895156b4f040f6585499f1ead9967ac0ce57106e3ca3615fbaa9adcd1fb7 WHIRLPOOL d918cde7bc6fc1364f8d86b709f8366a65506104b70a5a9901afd5c89f5d23dc6a0bc4606a4d1fb97bc5e49ee6eb3ce6c019031c09bbe558d278248454bed143 +DIST tkimg-1.4-patchset-1.tar.xz 17956 SHA256 b1eb9db771928ea71edb17852b23c6b760c112e3c776be51502b4f8b2cbd75f4 SHA512 bd20e0beaa224c42e856e6d44d86c2a5f04c28d096c561f44c4afcf8c821bf859c602156a9be60f23f906e8da2f43c89ca358d32e8f9497296e7c5a5bf23ed69 WHIRLPOOL 39099d752c4e6ccd96640c1287c218fff261a98e04455b9e8cba5c2aa308186916bc3583e4941c87f73323b3e46731ba2ed86358c10ab85cb6b913931585a778 +DIST tkimg1.4.tar.bz2 4912894 SHA256 a6beb98a8f98040f979eee60c133319f4338f1a5a3ab87379fb69b473e73e3b1 SHA512 b03aba6e21e35b8733dbc4fa66fae67284a05e68248e5afb2a85c1520c74d0c6c5091860a3ab682f4a662a318c562339e9b7b82f050e63bbf48d1b4757d379a1 WHIRLPOOL 0ace52c074389c09de240922c95a40ff4b1ab01d5bc060fca168396abad11a845326d15e582b039da6062c1b2780cee572299d21902947edd90195d4b99e6089 +EBUILD tkimg-1.4-r9.ebuild 1806 SHA256 a3d11a5cc8d56c6cad980558421f7163384413b05cfd8e4169ff615f38f328a3 SHA512 1dbbd2a6c0f924efd4351fdbdf1791d61adaa720b81892367ab5efd9b3c33a83f0891013751914cf0a8d8690ef958ee2bae9e3be375dd35c4cb82c700be2e710 WHIRLPOOL 10bbfd48f8dcf1d8b231b8dbd6dc16af835be4a8e8fc4b02353e4ebbd8058e1a200b2cc9a79e4ae1eb9dc15a89c5d078abe2fb7147dcbd70d2fd74be9bea57ff +MISC ChangeLog 2832 SHA256 51b1bb4157b7d8387860e4fd43a2f7bafa3225d0df79bd8964adca30759cad5e SHA512 abdbe69a2275b8335e5308062da4c30a7be3b8ce3fb3ef7b874e94d19e04407c62c6d4d8e6719792335209a78888a56cafae1b59f45e68e61d30872d66527b8f WHIRLPOOL c3e721863918ce78558c1518c3d5a1933892df54b552545615746a9998f3c4a70681498c6cf4401f78407c98c4fdf1948860b77d03a61add378d07198361e2e2 +MISC ChangeLog-2015 10966 SHA256 153f3b14a578e718e54d4c9703532d4e84e134123a12ed2bdae96c1f01461b99 SHA512 8b40a89e1ab0df3e795a7e4322fe1206962b2bddee943c32ed8b47d96ac731c7e982ff637b35e51c6f1a840c152249cc44191eceeaa4668dce67b554eb76133f WHIRLPOOL ba63faa02ceaacb5eb171b2e299870194511997515bfc48d5302450dc291928ea939297a636591d0811a656459e813012bee01c3cf215713b3a9d2257f209664 +MISC metadata.xml 435 SHA256 907bf37086c569ba8c9728bf9a4101fa8b8ffef9d2d733a912666d9dc78bcf4c SHA512 9e8d0c94ee643ba3e9a8100ff28bef36fe059a6bdb0706c4f649e2433d4a44284eb66209d95f5dbc75057e4aae0337b14f1ccaaf2dadc8d3cdc19d8e04b368ad WHIRLPOOL 18f8494dff9d21d542fa49bf4001f93444fac75d09bf8b1f08d4e7b52aba172e221c55b6ac8d2db756565d6a937b7466f6bca3fe9fd18c3db3ea07cf91fc8118 diff --git a/dev-tcltk/tkimg/files/tkimg-1.4-png2.patch b/dev-tcltk/tkimg/files/tkimg-1.4-png2.patch new file mode 100644 index 000000000000..195e9be43fa7 --- /dev/null +++ b/dev-tcltk/tkimg/files/tkimg-1.4-png2.patch @@ -0,0 +1,36 @@ +--- png/png.c.orig 2010-06-17 06:40:24.000000000 -0700 ++++ png/png.c 2013-04-23 20:57:32.000000000 -0700 +@@ -332,6 +332,16 @@ + png_set_expand(png_ptr); + } + ++ if (png_get_sRGB && png_get_sRGB(png_ptr, info_ptr, &intent)) { ++ png_set_sRGB(png_ptr, info_ptr, intent); ++ } else if (png_get_gAMA) { ++ double gamma; ++ if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) { ++ gamma = 0.45455; ++ } ++ png_set_gamma(png_ptr, 1.0, gamma); ++ } ++ + png_read_update_info(png_ptr,info_ptr); + block.pixelSize = png_get_channels(png_ptr, info_ptr); + block.pitch = png_get_rowbytes(png_ptr, info_ptr); +@@ -353,16 +363,6 @@ + block.offset[3] = 0; + } + +- if (png_get_sRGB && png_get_sRGB(png_ptr, info_ptr, &intent)) { +- png_set_sRGB(png_ptr, info_ptr, intent); +- } else if (png_get_gAMA) { +- double gamma; +- if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) { +- gamma = 0.45455; +- } +- png_set_gamma(png_ptr, 1.0, gamma); +- } +- + png_data= (char **) ckalloc(sizeof(char *) * info_height + + info_height * block.pitch); + diff --git a/dev-tcltk/tkimg/metadata.xml b/dev-tcltk/tkimg/metadata.xml new file mode 100644 index 000000000000..7f29c15bbf0f --- /dev/null +++ b/dev-tcltk/tkimg/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>tcltk@gentoo.org</email> + <name>Gentoo Tcltk Project</name> + </maintainer> + <longdescription lang="en"> + The "Img" package adds a lot of image formats to Tcl/Tk. +</longdescription> + <upstream> + <remote-id type="sourceforge">tkimg</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-tcltk/tkimg/tkimg-1.4-r9.ebuild b/dev-tcltk/tkimg/tkimg-1.4-r9.ebuild new file mode 100644 index 000000000000..9b621a465ef7 --- /dev/null +++ b/dev-tcltk/tkimg/tkimg-1.4-r9.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib prefix toolchain-funcs virtualx + +MYP="${PN}${PV}" + +DESCRIPTION="Adds a lot of image formats to Tcl/Tk" +HOMEPAGE="http://tkimg.sourceforge.net/" +SRC_URI=" + https://dev.gentoo.org/~jlec/distfiles/${P}-patchset-1.tar.xz + mirror://sourceforge/${PN}/${PV}/${MYP}.tar.bz2" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" +IUSE="doc test static-libs" + +RDEPEND=" + dev-lang/tk:= + >=dev-tcltk/tcllib-1.11 + media-libs/tiff:0= + >=media-libs/libpng-1.6:0= + >=sys-libs/zlib-1.2.7:= + x11-libs/libX11 + virtual/jpeg:=" +DEPEND="${RDEPEND} + test? ( + x11-apps/xhost + media-fonts/font-misc-misc + media-fonts/font-cursor-misc )" + +# Fails with jpeg-turbo silently, #386253 +#RESTRICT="test" + +S="${WORKDIR}/${MYP}" + +src_prepare() { + epatch \ + "${WORKDIR}"/${P}-jpeg.patch \ + "${WORKDIR}"/${P}-tiff.patch \ + "${WORKDIR}"/${P}-png.patch \ + "${FILESDIR}"/${P}-png2.patch \ + "${WORKDIR}"/${P}-zlib.patch + + find compat/{libjpeg,libpng,zlib,libtiff} -delete + + sed \ + -e 's:-O2 -fomit-frame-pointer::g' \ + -e 's: -pipe::g' \ + -i */configure || die + + eprefixify */*.h + tc-export AR +} + +src_test() { + Xemake test || die "Xmake failed" +} + +src_install() { + local l bl + + emake \ + DESTDIR="${D}" \ + INSTALL_ROOT="${D}" \ + install + + if ! use static-libs; then + find "${ED}"/usr/$(get_libdir)/ -type f -name "*\.a" -delete || die + fi + + # Make library links + for l in "${ED}"/usr/lib*/Img*/*tcl*.so; do + bl=$(basename $l) + dosym Img1.4/${bl} /usr/$(get_libdir)/${bl} + done + + dodoc ChangeLog README Reorganization.Notes.txt changes ANNOUNCE + + if use doc; then + insinto /usr/share/doc/${PF} + doins demo.tcl + insinto /usr/share/doc/${PF}/html + doins -r doc/* + fi +} |