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 /media-libs/simage |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/simage')
-rw-r--r-- | media-libs/simage/Manifest | 8 | ||||
-rw-r--r-- | media-libs/simage/files/simage-1.7.0-libpng15.patch | 12 | ||||
-rw-r--r-- | media-libs/simage/files/simage-1.7.0-pkgconfig-partial.patch | 13 | ||||
-rw-r--r-- | media-libs/simage/metadata.xml | 10 | ||||
-rw-r--r-- | media-libs/simage/simage-1.7.0-r1.ebuild | 76 | ||||
-rw-r--r-- | media-libs/simage/simage-1.7.0.ebuild | 76 |
6 files changed, 195 insertions, 0 deletions
diff --git a/media-libs/simage/Manifest b/media-libs/simage/Manifest new file mode 100644 index 000000000000..dda74553bdd7 --- /dev/null +++ b/media-libs/simage/Manifest @@ -0,0 +1,8 @@ +AUX simage-1.7.0-libpng15.patch 572 SHA256 d009c494fad285cf087f4c2fd0f9f2d11aa7572c707864b5584173a6440ce212 SHA512 0a867187b0dbc644182784e56dfd26b51f48c9355b01228fe3386fab05cee084e0066d4b18eb3f63110a25c0d2abf8f8b214d9b94e2e7dc7438e90308653e4e8 WHIRLPOOL 0cee9edd0bd4a715590c25d59b65eb01183da8a7b6bc7d162b190ed4a3171c83969067f98a34fcd9d7604e4e4ccd927ee99c6c9f3a0b87370fc611ed563c99d0 +AUX simage-1.7.0-pkgconfig-partial.patch 467 SHA256 978db10ae83f6651575082c306bd3d9f92b85e3d33c8a2beffc307146673b070 SHA512 791db9c02fc0dc7526ed43b340ab6f92baea91a5bf9005099f6adf1550a7ab73ef36790d2e761f0b50b88098e9124f3035ff21149cca00d819c2262d8e180618 WHIRLPOOL b029a09f2a1b59f8f1b8b561b99e54d26385883494360f17885f7ef07b2c8a44961c477bb8659660152f45c37ecc40535b4664e4a8d14946b9669f544baff7f1 +DIST simage-1.7.0.tar.gz 752602 SHA256 c9a0c43e45f825c46941789f5a8f6c3b61da5ac87e4088cb611ac0fead494def SHA512 944ec009dd7041692073ddd9795fdd633fe3bc9101f1c1234e8be3746487a9431aecf52abde01563e719153fbe1ca7d29f9b64042e4a64ea08d6cb14666dd89f WHIRLPOOL 0d951f1fa1fb588ff0734dfdba3fa1643de30445a58ed2bdc6e7d2936f478ba7ca0599d14919755bb95f6f5cd5e63bcdd2a995dca63b113bab9c0e885dcd6ecd +EBUILD simage-1.7.0-r1.ebuild 1821 SHA256 6ea1766eaf8b034260fc5ffe82ef949721130e3cfdcb9aafb85ce5a2ffee2fec SHA512 9ba3e0eb866e5cf75786ade61de8b6aa64ed453ce5da78bc79aa0739aa18e66472c72e07c18b6260b64ff1d42b166cb9bf78932b4d4ea87f2be2c93401cc9da5 WHIRLPOOL 60d6e012ed2460b645385f9bfa8f245c67d147ca6dfc9ee53b039e09e255a2787c5a7cb50d64166eb7f68ac1afe1ebb078039d24b6ff4bc28a641042823006aa +EBUILD simage-1.7.0.ebuild 1797 SHA256 19c2d6cb957c299f311108f3bea30326408fc0ab97c781d55d8a9d6916b897ca SHA512 fee38faec0e6671220b7eda84c5639be3ea66d88384bda168296de2184e8cc38b45555801ab0c6988fc737af0b60c3d78a34984f48faad99c0236a3baf6182c3 WHIRLPOOL a95a53566773bc7d9fe27dafd6327366b080e4bad9eb2e8621b0aace32ef8631a097f1642ea4c69bc158e55d3d1d746dfdbf4a2d2de684a0b076a3ef49a39f10 +MISC ChangeLog 3057 SHA256 6c1f1f228d117c3ed2679783463181b7093a18b68f18684f3e667b302f0bb3fb SHA512 e665c727a91d45ffc6acf64fef129be839af0d948e7da87ca89ed4bb0fb674ca5d8008fc084f86475be150af576718a19f70a932e8e0cdcab28a2f6f3c8524d7 WHIRLPOOL c0db7ee0bcbf1f068cdd329b24b2ab5dcae403872e95da6e0843469958c3b396df82e6ac93884959a97668256f3765794c36e016be930a2966c3dbd1efdca496 +MISC ChangeLog-2015 1702 SHA256 1968950125857ac7d908bea81f568fc88ab8cf0a9d37686d84a130807a03cabe SHA512 9ba4248d54399567bdd536547b3a27ca3a6108e62e17f6b2bd8dac8ee1c3d0b6d97a219ab150f8338eab66d6accb2a94bf0c0a2e8d3aa358cc9ef4580167b9ab WHIRLPOOL 5ff85b6e3509212a8264cdf8ec8da0142ae63ecbc507e3b7dfb4b98db36574542f270d954f0ccf34eb05264dce89bc7fb5d451f43cb0d645d72f836b12584e93 +MISC metadata.xml 298 SHA256 36efc2e5536a5a8e20a503e771699314168079a78550d915ec88943331ae0a90 SHA512 b72572413e5e40d55658049b4624de687dd1011553fc384deb0c837830b6f82d060b6356ad25e803f27d3be697b07a8c3fbc45932d20d89e4d9918ed6fecd84a WHIRLPOOL b5d30d290c468d0ff508d72edc4d45c7790a914ac0fe42486499a3e41a6e9b03b3d8798a9bc86da6e22cfa316f7aa065cbd82e281337555ed8e06fa41b470701 diff --git a/media-libs/simage/files/simage-1.7.0-libpng15.patch b/media-libs/simage/files/simage-1.7.0-libpng15.patch new file mode 100644 index 000000000000..f99d474cf04a --- /dev/null +++ b/media-libs/simage/files/simage-1.7.0-libpng15.patch @@ -0,0 +1,12 @@ +diff -ruN simage-1.7.0/src/simage_png.c new/src/simage_png.c +--- simage-1.7.0/src/simage_png.c 2010-02-26 16:47:31.000000000 +0100 ++++ new/src/simage_png.c 2013-06-06 22:34:23.537331509 +0200 +@@ -323,7 +323,7 @@ + /* Set error handling. REQUIRED if you aren't supplying your own + * error hadnling functions in the png_create_write_struct() call. + */ +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + /* If we get here, we had a problem reading the file */ + fclose(fp); + png_destroy_write_struct(&png_ptr, (png_infopp)info_ptr); diff --git a/media-libs/simage/files/simage-1.7.0-pkgconfig-partial.patch b/media-libs/simage/files/simage-1.7.0-pkgconfig-partial.patch new file mode 100644 index 000000000000..c8c893855e8a --- /dev/null +++ b/media-libs/simage/files/simage-1.7.0-pkgconfig-partial.patch @@ -0,0 +1,13 @@ +diff -ruN simage-1.7.0/simage.pc.in new/simage.pc.in +--- simage-1.7.0/simage.pc.in 2010-02-26 16:47:31.000000000 +0100 ++++ new/simage.pc.in 2013-06-06 22:35:42.303326845 +0200 +@@ -8,7 +8,8 @@ + Version: @VERSION@ + Requires: + Conflicts: +-Libs: -L${libdir} @SIMAGE_EXTRA_LDFLAGS@ @SIMAGE_EXTRA_LIBS@ ++Libs: -L${libdir} -lsimage ++Libs.private: -L${libdir} @SIMAGE_EXTRA_LIBS@ + Cflags: -I${includedir} @SIMAGE_EXTRA_CFLAGS@ @SIMAGE_EXTRA_CPPFLAGS@ + + simage_host="@host@" diff --git a/media-libs/simage/metadata.xml b/media-libs/simage/metadata.xml new file mode 100644 index 000000000000..5d644615b938 --- /dev/null +++ b/media-libs/simage/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reavertm@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="bitbucket">Coin3D/coin</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/simage/simage-1.7.0-r1.ebuild b/media-libs/simage/simage-1.7.0-r1.ebuild new file mode 100644 index 000000000000..5cf1e9156c36 --- /dev/null +++ b/media-libs/simage/simage-1.7.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Image and video texturing library" +HOMEPAGE="https://bitbucket.org/Coin3D/simage" +SRC_URI="https://bitbucket.org/Coin3D/coin/downloads/${P}.tar.gz" + +LICENSE="public-domain mpeg2enc" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86" +SLOT="0" +IUSE="debug gif jpeg jpeg2k png sndfile static-libs tiff vorbis zlib" +RESTRICT="mirror bindist" #465086 + +RDEPEND=" + gif? ( media-libs/giflib ) + jpeg? ( virtual/jpeg:0= ) + jpeg2k? ( media-libs/jasper ) + png? ( media-libs/libpng:0= ) + sndfile? ( media-libs/libsndfile ) + tiff? ( media-libs/tiff:0= ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +DOCS=(AUTHORS ChangeLog NEWS README) + +PATCHES=( + "${FILESDIR}"/${PN}-1.7.0-pkgconfig-partial.patch + "${FILESDIR}"/${PN}-1.7.0-libpng15.patch +) + +# --with-pic, two defined (PIC and one for image format, sillyt), no not pass +# --enable-qimage, broken Qt checks, unable to locate FHS-compliant Qt install +# --with-x, not used anywhere +src_configure() { + econf \ + --disable-qimage \ + --disable-quicktime \ + --with-eps \ + --with-mpeg2enc \ + --with-rgb \ + --with-targa \ + --with-xwd \ + --without-x \ + $(use_with gif) \ + $(use_enable debug) \ + $(use_enable debug symbols) \ + $(use_with jpeg) \ + $(use_with jpeg2k jasper) \ + $(use_with png) \ + $(use_with sndfile libsndfile) \ + $(use_enable static-libs static) \ + $(use_with tiff) \ + $(use_with vorbis oggvorbis) \ + $(use_with zlib) +} + +src_install() { + # Remove simage from Libs.private + sed -e '/Libs.private/s/ -lsimage//' -i simage.pc || die + + default + + # Remove libtool files when not needed. + if use static-libs; then + rm -f "${ED}"/usr/lib*/*.la || die + fi +} diff --git a/media-libs/simage/simage-1.7.0.ebuild b/media-libs/simage/simage-1.7.0.ebuild new file mode 100644 index 000000000000..52c69c5549a7 --- /dev/null +++ b/media-libs/simage/simage-1.7.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit base + +DESCRIPTION="Image and video texturing library" +HOMEPAGE="https://bitbucket.org/Coin3D/simage" +SRC_URI="https://bitbucket.org/Coin3D/coin/downloads/${P}.tar.gz" + +LICENSE="public-domain mpeg2enc" +KEYWORDS="amd64 ~arm ppc x86" +SLOT="0" +IUSE="debug gif jpeg jpeg2k png sndfile static-libs tiff vorbis zlib" +RESTRICT="mirror bindist" #465086 + +RDEPEND=" + gif? ( media-libs/giflib ) + jpeg? ( virtual/jpeg ) + jpeg2k? ( media-libs/jasper ) + png? ( media-libs/libpng:0 ) + sndfile? ( media-libs/libsndfile ) + tiff? ( media-libs/tiff:0 ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +DOCS=(AUTHORS ChangeLog NEWS README) + +PATCHES=( + "${FILESDIR}"/${PN}-1.7.0-pkgconfig-partial.patch + "${FILESDIR}"/${PN}-1.7.0-libpng15.patch +) + +# --with-pic, two defined (PIC and one for image format, sillyt), no not pass +# --enable-qimage, broken Qt checks, unable to locate FHS-compliant Qt install +# --with-x, not used anywhere +src_configure() { + econf \ + --disable-qimage \ + --disable-quicktime \ + --with-eps \ + --with-mpeg2enc \ + --with-rgb \ + --with-targa \ + --with-xwd \ + --without-x \ + $(use_with gif) \ + $(use_enable debug) \ + $(use_enable debug symbols) \ + $(use_with jpeg) \ + $(use_with jpeg2k jasper) \ + $(use_with png) \ + $(use_with sndfile libsndfile) \ + $(use_enable static-libs static) \ + $(use_with tiff) \ + $(use_with vorbis oggvorbis) \ + $(use_with zlib) +} + +src_install() { + # Remove simage from Libs.private + sed -e '/Libs.private/s/ -lsimage//' -i simage.pc || die + + base_src_install + + # Remove libtool files when not needed. + use static-libs || rm -f "${D}"/usr/lib*/*.la +} |