From 5ddc3e2d8f01496ed8b9a87cbe9c939f8f317eff Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 30 Mar 2025 00:33:04 +0000 Subject: gentoo auto-resync : 30:03:2025 - 00:33:04 --- media-libs/Manifest.gz | Bin 70071 -> 70063 bytes media-libs/glycin-loaders/Manifest | 8 +- .../glycin-loaders/glycin-loaders-1.1.5.ebuild | 1 + .../glycin-loaders/glycin-loaders-1.1.6.ebuild | 1 + .../glycin-loaders/glycin-loaders-1.2_beta1.ebuild | 1 + .../glycin-loaders/glycin-loaders-1.2_rc.ebuild | 3 +- media-libs/netpbm/Manifest | 4 +- media-libs/netpbm/netpbm-11.10.0.ebuild | 261 +++++++++++++++++++++ media-libs/netpbm/netpbm-11.9.3.ebuild | 257 -------------------- 9 files changed, 272 insertions(+), 264 deletions(-) create mode 100644 media-libs/netpbm/netpbm-11.10.0.ebuild delete mode 100644 media-libs/netpbm/netpbm-11.9.3.ebuild (limited to 'media-libs') diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz index 301d37b89ce6..c49fc749eed4 100644 Binary files a/media-libs/Manifest.gz and b/media-libs/Manifest.gz differ diff --git a/media-libs/glycin-loaders/Manifest b/media-libs/glycin-loaders/Manifest index 7a576af00759..a2b9d245da00 100644 --- a/media-libs/glycin-loaders/Manifest +++ b/media-libs/glycin-loaders/Manifest @@ -2,8 +2,8 @@ DIST glycin-1.1.5.tar.xz 28348220 BLAKE2B 79ddbe2d68246200f0026ff418abeaadd87790 DIST glycin-1.1.6.tar.xz 28420376 BLAKE2B 78ab434d27d1688723d061adae9ecd17500167b71c223e665fd74f5ed170d9793d5d404e753047ee7ed9061225f3da8f10ecee163dc112a170a74447b4f88efd SHA512 a6f913c776160a78870209e90f365c0321e65ae73e1903b92051c2439b4ba50e7e6645600ff050927a2f81447f08e2bed749364db8ded03d21b961046460c4b5 DIST glycin-1.2.beta.1.tar.xz 36989732 BLAKE2B 47e9d07f5487767fa0625fda352e6cb686227474addc38d2bc8acde1cb81689d62bd834949a82302153bdbe6dc3a08bb42f7fd1ba85ea67c61f62a7ba08d1b2a SHA512 2479f8044745e9203e2733359248d78e01cf1407eda770478936101dc7cbf32218c6c6cb21583b6e2444eecb8645c81cb8b9c73c6986593908cf6b11e4a5a25d DIST glycin-1.2.rc.tar.xz 37187208 BLAKE2B 5bee34bd2aab5cf1a4527c625e9b12a28d0d00d26f70d040a059c60f85f3a54a397265c5447d15ccc0e29c4c21af59dfa9ddf227ed0057a6f24fd33522d62076 SHA512 36bf11a26c0d788ed1f6e81bcbf94fe194c57fb3ded197ea75bd4f64a8d9132ff745b371a3ce40e229b09f2ac3bac840cdad2ea096e212a9ceba92410bdff198 -EBUILD glycin-loaders-1.1.5.ebuild 1917 BLAKE2B 0dcd849afa9ce8769054770c41745dfd1513662c6e85b729c725286517727a7206fcb2a30fe5326d8e69692a5f8634c4e57457e7693b0c015b1ed971e98ca342 SHA512 f2b93eab34949f7c93b2df94211e2f265e302aa34a48cffaa8afa03be5f21fbd012266ae4c2d660a1b8238453a3b6aba93d9decac43ecc721d0c98bff9e6d66c -EBUILD glycin-loaders-1.1.6.ebuild 1917 BLAKE2B 0dcd849afa9ce8769054770c41745dfd1513662c6e85b729c725286517727a7206fcb2a30fe5326d8e69692a5f8634c4e57457e7693b0c015b1ed971e98ca342 SHA512 f2b93eab34949f7c93b2df94211e2f265e302aa34a48cffaa8afa03be5f21fbd012266ae4c2d660a1b8238453a3b6aba93d9decac43ecc721d0c98bff9e6d66c -EBUILD glycin-loaders-1.2_beta1.ebuild 1994 BLAKE2B 30fbfabccef9587a6e1aa07f43b92dc841c56be9b3f000cdfc22bc012e15adce31f4a4abfaa50bdd7ae587fbdeee7a9205fa216371a2710f5520d4314d4e7a35 SHA512 cf95ca963a8551793624d45dfbc9a14567ee68448060236890b16d145b33b8bd175476e2747050dec7ab32d6401c488284e6c8563ce0fb60e80c8fdcaeb13a24 -EBUILD glycin-loaders-1.2_rc.ebuild 1845 BLAKE2B 19887d39488f72a60abad247f6e8ade7f467c189a0fb5b4142dace40255dce791bbebfc06e3308c0e8fc9214fdafe374348adc0f69551f52dcfba144315c0d75 SHA512 f17517ce42dcc753e62dd134109286451f359f9ed0d3f183b5b117b39f66c0f3759533b5c5cfbb2287fb3043e352a4f537683e587a3c1757d5e0049f9024fbdc +EBUILD glycin-loaders-1.1.5.ebuild 1954 BLAKE2B 5692adfc168ebc741275e3c5bc3d957abd20f8200c1ec337abc8e1e324ad51f65e7e739580e1775bdfcbe75aac0f4dfe66e5e5dd1ed23d0f408c144407dce25a SHA512 fbbbc4d999bbf9d129a096498413d1c0dc1879c0b2947dae83303677b23e52f0ab59e22aed3fc1ee07f9e7c921ef56ea03d417ae5ad8108336f312908a17e7c6 +EBUILD glycin-loaders-1.1.6.ebuild 1954 BLAKE2B 5692adfc168ebc741275e3c5bc3d957abd20f8200c1ec337abc8e1e324ad51f65e7e739580e1775bdfcbe75aac0f4dfe66e5e5dd1ed23d0f408c144407dce25a SHA512 fbbbc4d999bbf9d129a096498413d1c0dc1879c0b2947dae83303677b23e52f0ab59e22aed3fc1ee07f9e7c921ef56ea03d417ae5ad8108336f312908a17e7c6 +EBUILD glycin-loaders-1.2_beta1.ebuild 2031 BLAKE2B f1f48a0464a4dd1b49e50506b59f9a8bffb5253305306f3ec61fe38faed74a8351fed9ebe61149bd2c2bfc25f27dc408e92aa37e65df6b1578971abee2efc264 SHA512 d40ec8a706250b88ff99f37e6d96c8dc3f941513f69fd379f5c2c2c3f8040bf1eb67fd034c399e3d756fd803a0f336f2318746fa8b24c675264f863f94fc588a +EBUILD glycin-loaders-1.2_rc.ebuild 1889 BLAKE2B bf6952718b61e86026bc809a941a93c4b161a8dc3ea3d7ffda2fc710805b2ce09f6edb56867238b99dfd138b6e176974aa6e2f1df9b80b2fa4ea9dc6c36e4a9f SHA512 42ec5d890eec93347f351e042f520adb7e504bec5db98e50d2111bc48ba6d17d28eaa70101c4e92b51bb03d967e289e4a5bac79412236f5139c4558b39502937 MISC metadata.xml 331 BLAKE2B b62bbf18b3c5de49ceb8429587082188fa6503b3dc24d8aae4d79cebcba1889846d20724f0293eb87413e554a1c2dea698e452070889c945ed9b3ce823eb7107 SHA512 4408889d08fe53cf137df4ea60d15e4cbda90c1df5da9072f66be025dc97693570c3af4a1e7a22cbba5475c9e30210af07e338197e1a2cfe72f341b28d2f5e7d diff --git a/media-libs/glycin-loaders/glycin-loaders-1.1.5.ebuild b/media-libs/glycin-loaders/glycin-loaders-1.1.5.ebuild index 217ae3663814..20dcbb184f37 100644 --- a/media-libs/glycin-loaders/glycin-loaders-1.1.5.ebuild +++ b/media-libs/glycin-loaders/glycin-loaders-1.1.5.ebuild @@ -23,6 +23,7 @@ LICENSE+=" SLOT="0" KEYWORDS="~amd64" IUSE="heif jpegxl svg test" +REQUIRED_USE="test? ( heif jpegxl )" RESTRICT="!test? ( test )" RDEPEND=" diff --git a/media-libs/glycin-loaders/glycin-loaders-1.1.6.ebuild b/media-libs/glycin-loaders/glycin-loaders-1.1.6.ebuild index 217ae3663814..20dcbb184f37 100644 --- a/media-libs/glycin-loaders/glycin-loaders-1.1.6.ebuild +++ b/media-libs/glycin-loaders/glycin-loaders-1.1.6.ebuild @@ -23,6 +23,7 @@ LICENSE+=" SLOT="0" KEYWORDS="~amd64" IUSE="heif jpegxl svg test" +REQUIRED_USE="test? ( heif jpegxl )" RESTRICT="!test? ( test )" RDEPEND=" diff --git a/media-libs/glycin-loaders/glycin-loaders-1.2_beta1.ebuild b/media-libs/glycin-loaders/glycin-loaders-1.2_beta1.ebuild index d70934f73076..219b6e6eaf8c 100644 --- a/media-libs/glycin-loaders/glycin-loaders-1.2_beta1.ebuild +++ b/media-libs/glycin-loaders/glycin-loaders-1.2_beta1.ebuild @@ -29,6 +29,7 @@ LICENSE+=" SLOT="0" KEYWORDS="~amd64" IUSE="heif jpegxl svg test" +REQUIRED_USE="test? ( heif jpegxl )" RESTRICT="!test? ( test )" RDEPEND=" diff --git a/media-libs/glycin-loaders/glycin-loaders-1.2_rc.ebuild b/media-libs/glycin-loaders/glycin-loaders-1.2_rc.ebuild index 69a8669e0c77..b45cea4adb06 100644 --- a/media-libs/glycin-loaders/glycin-loaders-1.2_rc.ebuild +++ b/media-libs/glycin-loaders/glycin-loaders-1.2_rc.ebuild @@ -27,8 +27,9 @@ LICENSE+=" || ( LGPL-2.1+ MPL-2.0 ) " SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64" IUSE="heif jpegxl svg test" +REQUIRED_USE="test? ( heif jpegxl )" RESTRICT="!test? ( test )" RDEPEND=" diff --git a/media-libs/netpbm/Manifest b/media-libs/netpbm/Manifest index 13f5e2794417..204cd277c04a 100644 --- a/media-libs/netpbm/Manifest +++ b/media-libs/netpbm/Manifest @@ -7,11 +7,11 @@ AUX netpbm-11.2.7-fix-pnmcolormap2-test.patch 7051 BLAKE2B 741d4943b2e9eab1fb006 AUX netpbm-11.6.1-incompatible-pointer-types.patch 514 BLAKE2B 0ea8a3c50838776ee645e61accc13645a690dc7e75cde2c33afd1ac7f07abbcb85a97b7e113217af12617ec5ad314eca0324c7bfbe7beb445aee85de47649ffb SHA512 a3a46607904c8ff9757f0a136aa2336382033760bc69bcca5a5d7662ca824f9a7d4281fe3996efc57456c3b30ddf7319fb70a1cb950ef974507f82340a226abb AUX netpbm-11.7.2-lto.patch 2699 BLAKE2B 51da4abfa35da594597eb1091f8f3ade875491d428231215f91ff3d637826db6310f2c8f7bf59cb62d025cde170dc247fadedd90dedc5049f68f61d02adbfc0e SHA512 809d1b86d436534219936959037e5c4c17761b4c0e464eb968fdc961f68d5a3d2a60974f52e330fa49b8933aa1bfc486515e019b2bc0d15bbc525b9c4f852eb2 AUX netpbm-11.9.0-build.patch 2457 BLAKE2B 8d7363e64568ba320f416470f5c1046cdf84b0d2ff6fe2c22c6d387ac54bf9af6e610a6dc73fcfb001388ded4686f382dd65e126574b7723bb6385222f36c0fc SHA512 6ba43263b9ffdca4868bf6c1548151a3fbc824fd9d7764e86402723bc5b0c672e4bcb44bcb3001e5fd99636b57d3edde7372c61288886f0d16f42d08ce3b084e +DIST netpbm-11.10.0.tar.xz 3811704 BLAKE2B 49ca8ab366a9d181f9223440cbefba4f94e29c7c3a4133b451b0caf189edb2b68f15f79250bad7911b0f6f2ca02b91dd91efb3f8dbba52cbdc655f171a929167 SHA512 6d6cb4cd9ee1f1f952d97182c391ac67eb0e97361731b11c32570d5fd12e94dd4e71497f652ecbdb7ec7037aab1cf4ed303b51ea614d2070f83be90c5d99ae52 DIST netpbm-11.2.11.tar.xz 3782252 BLAKE2B 422b9cefee2a54a9c222236935291f0c8d1f13f064f4ebd277d0f92974b9ce3d7e3d9ae6a0410d767553704a03c2de14ca8456996a53fca0f95d61f9ae72605f SHA512 3d94c0c8c25873a16c78af960c964f5756b3e7a29463f001345956acc3bf1378b0b0b4fc0c57d7388dced0979ba4e8cee0def2200092544dd96fc7d04304660b DIST netpbm-11.2.13.tar.xz 3784752 BLAKE2B f96bd1867363402175208778619308bf5cd19967e36ff46103e88367d46c28a6aa1e8c8128af454c22de616ad414ddbc5d48ce857e64423724f2dd026c6e9639 SHA512 ffe3b63dccaeb8066fa80a202dae01b70a379359769540f7668f417b6da32361d878ef1ccbeccd8a24bcda83c5b1cfba5b8e00ce5fc5dbe4c28571e437051432 -DIST netpbm-11.9.3.tar.xz 3808496 BLAKE2B c9cd2037ac79e4192680cf7186f924ab73b28eb35d5def51c39aea8d10ebbe963ce35e3d93eb5767b7876ff821e4a8234450ce77b5914972f7625ff990214861 SHA512 0d41999de80ca0d5198605e786edb0f5ef9e3dbec57bb7e1a6d9466aa787d866fdc81854db9f78ce2fde753324302bbb78db3fbc2bc3468b0b221eea8a3a8ba2 +EBUILD netpbm-11.10.0.ebuild 6958 BLAKE2B f778cb9ff9e04d5049bf22dfed0f33ccd9d06dd336d16e37aa2148c6fa852cf1240dfcaf2c642abb73eeabfbedfd0cf06925ebbf13d3abfec774e94ae7e85d25 SHA512 64c542691aa6bd4adecc978e3d91cf100425b4e5976462522432447960cea4aacbb73ef64906117db6958320673193f730cfb15c48ed25af8fcbc96fe799599e EBUILD netpbm-11.2.11.ebuild 7143 BLAKE2B e218c46389b2593e3706eacd28209169359dfe0c7b311b31260aeb654c1c29443c017c643f91e105646a4b0dcab40d943288589c573589133b7398130e0a342d SHA512 1542e8d1c568ac5ac2085a699c380cd44f12194ae7583863e3d9828e70a5dffeacba578f9a298d94db9e6c620cedbf0610eb8b4f2ae104acd25441989b6871ee EBUILD netpbm-11.2.13.ebuild 7195 BLAKE2B 94f8f36d42faa7e4de493332ed7c4426acb2c4f06b089a295c9aa6103f1f60cd53ab522e95040d9353c1290cb6a90b9e4f38a2a707cc7eea761c48abcc36e969 SHA512 ae816218a1f53944142d938a5ed5141e014346d4aa25963fff7a8fdd089b34599b54d7cd21ef55e24109c1236e5a99b88bc6b589a1e4c346245a970b36ba96b1 -EBUILD netpbm-11.9.3.ebuild 6898 BLAKE2B 50e6ad04fe62482b4a9d5b93c30b69477e8c82a4842c94553fec0a34a31e50a6f22e738b69c44759ac213e1511e16551573a272cb0647e6ab906ca03b3e1bde5 SHA512 1f9ae6128b835e072e2dd093423c2d06aed306fbe04c598b5ff9ccf39ca5fb2365393fc2925209769dd8d17d6daf3c038d28d3af494d45bef9820e46066bb0f0 EBUILD netpbm-9999.ebuild 6351 BLAKE2B b9e5ef2a4d7149827500617999cbe80e7f050638e041aba09c56adc994057dceba2749c3461000edbe8b5fbf6fcf48bfc08b184e0cff26f3231486b83ec63557 SHA512 2461792a86dc4b7a97c2ceb9d2e00cdd07e37682c869ca30a48de6e074a9ddf08460e67f4f2dbee4281986dd01202bfda8c39ff15bd583c2043874defc306455 MISC metadata.xml 619 BLAKE2B 1e9be5078065faa755545bc17012459cf91b5a39bd7e60abd6e3536e331b5b853f70b9310e17f5d6637c2a58c128665265556338a9e17663104762e2d4ab9177 SHA512 71cdcd5b73400a02361ccb93778130f332d73d8a415d324235b181fc14d5ca81b1437e8887eb9d47ba2878285358d43e2026b066d656d320b4ce6a01fd0e788a diff --git a/media-libs/netpbm/netpbm-11.10.0.ebuild b/media-libs/netpbm/netpbm-11.10.0.ebuild new file mode 100644 index 000000000000..dec8f670b637 --- /dev/null +++ b/media-libs/netpbm/netpbm-11.10.0.ebuild @@ -0,0 +1,261 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib toolchain-funcs + +# Upstream has 3 flavors of netpbm: super stable, stable and advanced. +# They only provide a tarball for super stable, but super stable is a bit lagging. +# So we package the stable branch of their svn (currently versions 11.2.xx) on SLOT "0/stable" +# and the advanced branch of their svn (currently versions 11.9.yy) on SLOT "0/advanced". +# The stable branch is stabilized according to usual Gentoo rules, while the +# advanced branch will not be stabilized. +# A detailed explanation is here https://netpbm.sourceforge.net/release.html + +DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats" +HOMEPAGE="https://netpbm.sourceforge.net/" +SRC_URI="https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${P}.tar.xz" + +LICENSE="Artistic BSD GPL-2 IJG LGPL-2.1 MIT public-domain" +SLOT="0/advanced" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="jbig jpeg png postscript rle cpu_flags_x86_sse2 static-libs svga test tiff X xml" +RESTRICT="!test? ( test )" + +# app-text/ghostscript-gpl is really needed for postscript +# some utilities execute /usr/bin/gs +# some installed programs are perl scripts +RDEPEND=" + dev-lang/perl + jbig? ( media-libs/jbigkit:= ) + jpeg? ( media-libs/libjpeg-turbo:=[static-libs?] ) + png? ( + >=media-libs/libpng-1.4:0= + sys-libs/zlib + ) + postscript? ( + app-text/ghostscript-gpl + sys-libs/zlib + ) + rle? ( media-libs/urt:= ) + svga? ( media-libs/svgalib ) + tiff? ( >=media-libs/tiff-3.5.5:= ) + xml? ( dev-libs/libxml2 ) + X? ( x11-libs/libX11 ) +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" +BDEPEND=" + app-arch/xz-utils + app-alternatives/lex + virtual/pkgconfig + test? ( + dev-lang/perl + ) +" + +PATCHES=( + "${FILESDIR}"/netpbm-11.9.0-build.patch + "${FILESDIR}"/netpbm-11.0.0-misc-deps.patch + "${FILESDIR}"/netpbm-11.1.0-fix-clang-O2.patch + "${FILESDIR}"/netpbm-11.6.1-incompatible-pointer-types.patch +) + +netpbm_libtype() { + case ${CHOST} in + *-darwin*) echo dylib;; + *) echo unixshared;; + esac +} + +netpbm_libsuffix() { + local suffix=$(get_libname) + echo ${suffix//\.} +} + +netpbm_ldshlib() { + case ${CHOST} in + *-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';; + *) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';; + esac +} + +netpbm_config_lib() { + usex ${1} -l${2:-$1} NONE +} + +# for bug #828127 +netpbm_cflags_for_build() { + if is-flagq -fPIC; then + echo -fPIC + fi +} + +src_prepare() { + default + + # make sure we use system libs + sed '/SUPPORT_SUBDIRS/s:urt::' -i GNUmakefile || die + rm -r urt converter/other/jbig/libjbig converter/other/jpeg2000/libjasper || die + + # take care of the importinc stuff ourselves by only doing it once + # at the top level and having all subdirs use that one set #149843 + sed \ + -e '/^importinc:/s|^|importinc:\nmanual_|' \ + -e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\ + -i common.mk || die + sed \ + -e '/%.c/s: importinc$::' \ + -i common.mk lib/Makefile lib/util/Makefile || die + sed \ + -e 's:pkg-config:$(PKG_CONFIG):' \ + -i GNUmakefile converter/other/Makefile other/pamx/Makefile || die + + # The postscript knob is currently bound up with a fork test. + if ! use postscript ; then + sed \ + -e 's:$(DONT_HAVE_PROCESS_MGMT):Y:' \ + -i converter/other/Makefile generator/Makefile || die + sed -r \ + -e 's:(pbmtextps|pnmtops|pstopnm).*::' \ + -i test/all-in-place.{ok,test} || die + sed \ + -e 's:lps-roundtrip.*::' \ + -e 's:pbmtextps-dump.*::' \ + -e 's:pbmtextps.*::' \ + -i test/Test-Order || die + sed \ + -e '/^$/d' \ + -i test/all-in-place.ok || die + sed \ + '2iexit 80' \ + -i test/ps-{alt-,flate-,}roundtrip.test || die + fi + + # Do not test png if not built + if ! use png ; then + sed -E \ + -e 's:(pamtopng|pngtopam|pnmtopng).*::' \ + -i test/all-in-place.{ok,test} || die + sed \ + -e '/^$/d' \ + -i test/all-in-place.ok || die + + sed -E \ + -e 's:(pamrgbatopng|pngtopnm).*::' \ + -i test/legacy-names.{ok,test} || die + sed \ + -e '/^$/d' \ + -i test/legacy-names.ok || die + sed \ + -e 's:png-roundtrip.*::' \ + -e 's:winicon-roundtrip.*::' \ + -i test/Test-Order || die + fi + + # pbmtext-iso88591 requires LC_ALL=en_US.iso88591, not available on musl + # pbmtext-utf8 requires locale, not available on musl + # ppmpat-random and pnmindex are broken on musl + # bug #907295 + if use elibc_musl; then + sed \ + -e 's:pbmtext-iso88591.*::' \ + -e 's:pbmtext-utf8.*::' \ + -e 's:ppmpat-random.*::' \ + -e 's:pnmindex.*::' \ + -i test/Test-Order || die + fi +} + +src_configure() { + cat config.mk.in - >> config.mk <<-EOF || die "writing config.mk failed" + # Misc stuff + BUILD_FIASCO = N + SYMLINK = ln -sf + + # These vars let src_test work by default + PKGDIR_DEFAULT = ${T}/netpbm + RESULTDIR_DEFAULT = ${T}/netpbm-test + + # Toolchain options + CC = $(tc-getCC) -Wall + LD = \$(CC) + CC_FOR_BUILD = $(tc-getBUILD_CC) + LD_FOR_BUILD = \$(CC_FOR_BUILD) + AR = $(tc-getAR) + RANLIB = $(tc-getRANLIB) + PKG_CONFIG = $(tc-getPKG_CONFIG) + + STRIPFLAG = + CFLAGS_SHLIB = -fPIC + CFLAGS_FOR_BUILD += $(netpbm_cflags_for_build) + + LDRELOC = \$(LD) -r + LDSHLIB = $(netpbm_ldshlib) + LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to + LINKERISCOMPILER = Y + NETPBMLIBSUFFIX = $(netpbm_libsuffix) + NETPBMLIBTYPE = $(netpbm_libtype) + STATICLIB_TOO = $(usex static-libs Y N) + + # The var is called SSE, but the code is actually SSE2. + WANT_SSE = $(usex cpu_flags_x86_sse2 Y N) + + # Gentoo build options + TIFFLIB = $(netpbm_config_lib tiff) + # Let tiff worry about its own dependencies #395753 + TIFFLIB_NEEDS_JPEG = N + TIFFLIB_NEEDS_Z = N + JPEGLIB = $(netpbm_config_lib jpeg) + PNGLIB = $(netpbm_config_lib png) + ZLIB = $($(tc-getPKG_CONFIG) --libs zlib) + LINUXSVGALIB = $(netpbm_config_lib svga vga) + XML2_LIBS = $(netpbm_config_lib xml xml2) + JBIGLIB = $(netpbm_config_lib jbig) + JBIGHDR_DIR = + JASPERLIB = NONE + JASPERHDR_DIR = + URTLIB = $(netpbm_config_lib rle) + URTHDR_DIR = + X11LIB = $(netpbm_config_lib X X11) + X11HDR_DIR = + EOF +} + +src_compile() { + emake -j1 pm_config.h version.h manual_importinc #149843 + emake +} + +src_test() { + # The code wants to install everything first and then test the result. + emake install.{bin,lib,data} + emake check +} + +src_install() { + # Subdir make targets like to use `mkdir` all over the place + # without any actual dependencies, thus the -j1. + emake -j1 package pkgdir="${ED}"/usr + + if [[ $(get_libdir) != "lib" ]] ; then + mv "${ED}"/usr/lib "${ED}"/usr/$(get_libdir) || die + fi + + # Remove cruft that we don't need, and move around stuff we want + rm "${ED}"/usr/{README,VERSION,{pkgconfig,config}_template,pkginfo} || die + + dodir /usr/share + mv "${ED}"/usr/misc "${ED}"/usr/share/netpbm || die + + doman userguide/*.[0-9] + dodoc README + + cd doc || die + dodoc HISTORY USERDOC + docinto html + dodoc -r ../userguide/*.html +} diff --git a/media-libs/netpbm/netpbm-11.9.3.ebuild b/media-libs/netpbm/netpbm-11.9.3.ebuild deleted file mode 100644 index b327cf07d66d..000000000000 --- a/media-libs/netpbm/netpbm-11.9.3.ebuild +++ /dev/null @@ -1,257 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic multilib toolchain-funcs - -# Upstream has 3 flavors of netpbm: super stable, stable and advanced. -# They only provide a tarball for super stable, but super stable is a bit lagging. -# So we package the stable branch of their svn (currently versions 11.2.xx) on SLOT "0/stable" -# and the advanced branch of their svn (currently versions 11.9.yy) on SLOT "0/advanced". -# The stable branch is stabilized according to usual Gentoo rules, while the -# advanced branch will not be stabilized. -# A detailed explanation is here https://netpbm.sourceforge.net/release.html - -DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats" -HOMEPAGE="https://netpbm.sourceforge.net/" -SRC_URI="https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${P}.tar.xz" - -LICENSE="Artistic BSD GPL-2 IJG LGPL-2.1 MIT public-domain" -SLOT="0/advanced" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="jbig jpeg png postscript rle cpu_flags_x86_sse2 static-libs svga tiff X xml" - -# app-text/ghostscript-gpl is really needed for postscript -# some utilities execute /usr/bin/gs -# some installed programs are perl scripts -RDEPEND=" - dev-lang/perl - jbig? ( media-libs/jbigkit:= ) - jpeg? ( media-libs/libjpeg-turbo:=[static-libs?] ) - png? ( - >=media-libs/libpng-1.4:0= - sys-libs/zlib - ) - postscript? ( - app-text/ghostscript-gpl - sys-libs/zlib - ) - rle? ( media-libs/urt:= ) - svga? ( media-libs/svgalib ) - tiff? ( >=media-libs/tiff-3.5.5:= ) - xml? ( dev-libs/libxml2 ) - X? ( x11-libs/libX11 ) -" -DEPEND=" - ${RDEPEND} - x11-base/xorg-proto -" -BDEPEND=" - app-arch/xz-utils - app-alternatives/lex - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}"/netpbm-11.9.0-build.patch - "${FILESDIR}"/netpbm-11.0.0-misc-deps.patch - "${FILESDIR}"/netpbm-11.1.0-fix-clang-O2.patch - "${FILESDIR}"/netpbm-11.6.1-incompatible-pointer-types.patch -) - -netpbm_libtype() { - case ${CHOST} in - *-darwin*) echo dylib;; - *) echo unixshared;; - esac -} - -netpbm_libsuffix() { - local suffix=$(get_libname) - echo ${suffix//\.} -} - -netpbm_ldshlib() { - case ${CHOST} in - *-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';; - *) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';; - esac -} - -netpbm_config_lib() { - usex ${1} -l${2:-$1} NONE -} - -# for bug #828127 -netpbm_cflags_for_build() { - if is-flagq -fPIC; then - echo -fPIC - fi -} - -src_prepare() { - default - - # make sure we use system libs - sed '/SUPPORT_SUBDIRS/s:urt::' -i GNUmakefile || die - rm -r urt converter/other/jbig/libjbig converter/other/jpeg2000/libjasper || die - - # take care of the importinc stuff ourselves by only doing it once - # at the top level and having all subdirs use that one set #149843 - sed \ - -e '/^importinc:/s|^|importinc:\nmanual_|' \ - -e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\ - -i common.mk || die - sed \ - -e '/%.c/s: importinc$::' \ - -i common.mk lib/Makefile lib/util/Makefile || die - sed \ - -e 's:pkg-config:$(PKG_CONFIG):' \ - -i GNUmakefile converter/other/Makefile other/pamx/Makefile || die - - # The postscript knob is currently bound up with a fork test. - if ! use postscript ; then - sed \ - -e 's:$(DONT_HAVE_PROCESS_MGMT):Y:' \ - -i converter/other/Makefile generator/Makefile || die - sed -r \ - -e 's:(pbmtextps|pnmtops|pstopnm).*::' \ - -i test/all-in-place.{ok,test} || die - sed \ - -e 's:lps-roundtrip.*::' \ - -e 's:pbmtextps-dump.*::' \ - -e 's:pbmtextps.*::' \ - -i test/Test-Order || die - sed \ - -e '/^$/d' \ - -i test/all-in-place.ok || die - sed \ - '2iexit 80' \ - -i test/ps-{alt-,flate-,}roundtrip.test || die - fi - - # Do not test png if not built - if ! use png ; then - sed -E \ - -e 's:(pamtopng|pngtopam|pnmtopng).*::' \ - -i test/all-in-place.{ok,test} || die - sed \ - -e '/^$/d' \ - -i test/all-in-place.ok || die - - sed -E \ - -e 's:(pamrgbatopng|pngtopnm).*::' \ - -i test/legacy-names.{ok,test} || die - sed \ - -e '/^$/d' \ - -i test/legacy-names.ok || die - sed \ - -e 's:png-roundtrip.*::' \ - -e 's:winicon-roundtrip.*::' \ - -i test/Test-Order || die - fi - - # pbmtext-iso88591 requires LC_ALL=en_US.iso88591, not available on musl - # pbmtext-utf8 requires locale, not available on musl - # ppmpat-random and pnmindex are broken on musl - # bug #907295 - if use elibc_musl; then - sed \ - -e 's:pbmtext-iso88591.*::' \ - -e 's:pbmtext-utf8.*::' \ - -e 's:ppmpat-random.*::' \ - -e 's:pnmindex.*::' \ - -i test/Test-Order || die - fi -} - -src_configure() { - cat config.mk.in - >> config.mk <<-EOF || die "writing config.mk failed" - # Misc stuff - BUILD_FIASCO = N - SYMLINK = ln -sf - - # These vars let src_test work by default - PKGDIR_DEFAULT = ${T}/netpbm - RESULTDIR_DEFAULT = ${T}/netpbm-test - - # Toolchain options - CC = $(tc-getCC) -Wall - LD = \$(CC) - CC_FOR_BUILD = $(tc-getBUILD_CC) - LD_FOR_BUILD = \$(CC_FOR_BUILD) - AR = $(tc-getAR) - RANLIB = $(tc-getRANLIB) - PKG_CONFIG = $(tc-getPKG_CONFIG) - - STRIPFLAG = - CFLAGS_SHLIB = -fPIC - CFLAGS_FOR_BUILD += $(netpbm_cflags_for_build) - - LDRELOC = \$(LD) -r - LDSHLIB = $(netpbm_ldshlib) - LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to - LINKERISCOMPILER = Y - NETPBMLIBSUFFIX = $(netpbm_libsuffix) - NETPBMLIBTYPE = $(netpbm_libtype) - STATICLIB_TOO = $(usex static-libs Y N) - - # The var is called SSE, but the code is actually SSE2. - WANT_SSE = $(usex cpu_flags_x86_sse2 Y N) - - # Gentoo build options - TIFFLIB = $(netpbm_config_lib tiff) - # Let tiff worry about its own dependencies #395753 - TIFFLIB_NEEDS_JPEG = N - TIFFLIB_NEEDS_Z = N - JPEGLIB = $(netpbm_config_lib jpeg) - PNGLIB = $(netpbm_config_lib png) - ZLIB = $($(tc-getPKG_CONFIG) --libs zlib) - LINUXSVGALIB = $(netpbm_config_lib svga vga) - XML2_LIBS = $(netpbm_config_lib xml xml2) - JBIGLIB = $(netpbm_config_lib jbig) - JBIGHDR_DIR = - JASPERLIB = NONE - JASPERHDR_DIR = - URTLIB = $(netpbm_config_lib rle) - URTHDR_DIR = - X11LIB = $(netpbm_config_lib X X11) - X11HDR_DIR = - EOF -} - -src_compile() { - emake -j1 pm_config.h version.h manual_importinc #149843 - emake -} - -src_test() { - # The code wants to install everything first and then test the result. - emake install.{bin,lib,data} - emake check -} - -src_install() { - # Subdir make targets like to use `mkdir` all over the place - # without any actual dependencies, thus the -j1. - emake -j1 package pkgdir="${ED}"/usr - - if [[ $(get_libdir) != "lib" ]] ; then - mv "${ED}"/usr/lib "${ED}"/usr/$(get_libdir) || die - fi - - # Remove cruft that we don't need, and move around stuff we want - rm "${ED}"/usr/{README,VERSION,{pkgconfig,config}_template,pkginfo} || die - - dodir /usr/share - mv "${ED}"/usr/misc "${ED}"/usr/share/netpbm || die - - doman userguide/*.[0-9] - dodoc README - - cd doc || die - dodoc HISTORY USERDOC - docinto html - dodoc -r ../userguide/*.html -} -- cgit v1.2.3