From f8cec5636f23e42c7c902830adc3e9764f4a9bdd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 15 Mar 2006 23:40:39 +0000 Subject: [PATCH] add back in ebuild Package-Manager: portage-2.1_pre6-r3 --- media-libs/netpbm/Manifest | 14 ++- .../netpbm/files/digest-netpbm-10.26.25 | 6 + media-libs/netpbm/netpbm-10.26.25.ebuild | 111 ++++++++++++++++++ 3 files changed, 127 insertions(+), 4 deletions(-) create mode 100644 media-libs/netpbm/files/digest-netpbm-10.26.25 create mode 100644 media-libs/netpbm/netpbm-10.26.25.ebuild diff --git a/media-libs/netpbm/Manifest b/media-libs/netpbm/Manifest index 325259b23b91..77f7683ca4db 100644 --- a/media-libs/netpbm/Manifest +++ b/media-libs/netpbm/Manifest @@ -4,6 +4,9 @@ Hash: SHA1 MD5 983a0d98d400cded392778d6334c3fb7 ChangeLog 15617 RMD160 9449f4ecc4b42777a406dadc657b503a5c4db5b2 ChangeLog 15617 SHA256 a31b8b15a8a2132b2d5bb1822d9c5e7e53c3aa20fa43b396ec3c918a0df0db11 ChangeLog 15617 +MD5 0ddde32893ebaac2d3fb25e7b258202c files/digest-netpbm-10.26.25 509 +RMD160 43b0ce1241a32396b6a1bcf7492421b5e87c16a5 files/digest-netpbm-10.26.25 509 +SHA256 4cffdbdd12e81a734589972355414988a77f16fb01bcb7fcc702f7f414fd2e4f files/digest-netpbm-10.26.25 509 MD5 8c4a20ca06c83687436b8cb75917d5f1 files/digest-netpbm-10.29 62 RMD160 17c24907f2d3e4a1a59479e1767609ad16586224 files/digest-netpbm-10.29 62 SHA256 e3919e50f5e05f7221fae56eb27e057518e8180fceb0609639e4b9de30b8e0e1 files/digest-netpbm-10.29 62 @@ -52,6 +55,9 @@ SHA256 453465c99f8ac7ab2a6194c4c78e48a3f53744bba2a8697a33742908e588d826 files/ne MD5 e1f6c302199a36c1be4ecf1654be9bac metadata.xml 224 RMD160 b7bf7da46cd75283f29d006f5d6854890a3d8aab metadata.xml 224 SHA256 06e3a779a82014f8783ebfc67e1b11107bcb670aacdf1f81faa361642046ba23 metadata.xml 224 +MD5 45f821277fc352f41b8877d1105104cd netpbm-10.26.25.ebuild 2809 +RMD160 7284222e9fcf3a55aeab04a50420341364c7fbf1 netpbm-10.26.25.ebuild 2809 +SHA256 dcfeeb62a863acab0516a2e1883b7cbc2c2c43b4b2fb8f9bbc8801f766af293b netpbm-10.26.25.ebuild 2809 MD5 44a56191027bdda13f3bd51f336a971a netpbm-10.29.ebuild 2423 RMD160 0d4e834d6042b8f2da780be23001aedd5cd615b2 netpbm-10.29.ebuild 2423 SHA256 0d31480585431af95a7623d28ea1fe9c37224f92f4169d4705e65e112f69e4b3 netpbm-10.29.ebuild 2423 @@ -65,9 +71,9 @@ MD5 660ee730672b4783ad855e2f3f6d1790 netpbm-10.32.ebuild 2936 RMD160 9f55a32dcf1010272cb7647a3260314d8b85f5d9 netpbm-10.32.ebuild 2936 SHA256 badbc1c51bc823ab1ee550b630bddb9802f633af6e7ab3178f0d6a86f9583895 netpbm-10.32.ebuild 2936 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.1 (GNU/Linux) +Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFEDjqj2+ySkm8kpY0RAvQtAKDGRzt/yTd5FDpaqRAOBkwFzYXWwwCfVIJQ -d10gNruGifnJkt+6AW5fFAg= -=7nC2 +iD8DBQFEGKYE2+ySkm8kpY0RAkqBAJ9QOjst3ChpnJA+NG0wXL23I49ktQCgof/U +T8WI7elVxL/9lNmj/vmCjWs= +=ATuN -----END PGP SIGNATURE----- diff --git a/media-libs/netpbm/files/digest-netpbm-10.26.25 b/media-libs/netpbm/files/digest-netpbm-10.26.25 new file mode 100644 index 000000000000..5366f3116d7a --- /dev/null +++ b/media-libs/netpbm/files/digest-netpbm-10.26.25 @@ -0,0 +1,6 @@ +MD5 d2bf4bc88689e4bf280c29de2c60fe3f netpbm-10.26.25.tgz 2540566 +RMD160 971491feec5da9cfc103fab2618720cb538bd80d netpbm-10.26.25.tgz 2540566 +SHA256 fda2b11538d077c55a59e0c24af35863426e3338ff7f82e3e3fb3ce119d25de6 netpbm-10.26.25.tgz 2540566 +MD5 2d90a47369f74692aa24b773dfd6a122 netpbm-10.30-manpages.tar.bz2 233254 +RMD160 6312e1486f473f57332a5dc050a03ac1dfce7f47 netpbm-10.30-manpages.tar.bz2 233254 +SHA256 75eb6ceaebafffb6a2d608d49f2b61c5049e5795976bbfb2d55608de1f858124 netpbm-10.30-manpages.tar.bz2 233254 diff --git a/media-libs/netpbm/netpbm-10.26.25.ebuild b/media-libs/netpbm/netpbm-10.26.25.ebuild new file mode 100644 index 000000000000..16b36e885ed5 --- /dev/null +++ b/media-libs/netpbm/netpbm-10.26.25.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.26.25.ebuild,v 1.3 2006/03/15 23:40:39 vapier Exp $ + +inherit flag-o-matic toolchain-funcs eutils multilib + +MAN_VER=10.30 +DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats" +HOMEPAGE="http://netpbm.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz + mirror://gentoo/${PN}-${MAN_VER}-manpages.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~sh ~sparc ~x86" +IUSE="svga jpeg tiff png zlib" + +DEPEND="jpeg? ( >=media-libs/jpeg-6b ) + tiff? ( >=media-libs/tiff-3.5.5 ) + png? ( >=media-libs/libpng-1.2.1 ) + zlib? ( sys-libs/zlib ) + svga? ( media-libs/svgalib ) + media-libs/jbigkit + media-libs/jasper + media-libs/urt" + +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 '-dynamiclib -install_name $(SONAME)';; + *) echo '-shared -Wl,-soname,$(SONAME)';; + esac +} +netpbm_config() { + use $1 && echo -l${2:-$1} || echo NONE +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/netpbm-10.30-build.patch + + rm -f configure + cp Makefile.config.in Makefile.config + cat >> Makefile.config <<-EOF + # Gentoo toolchain options + CC = $(tc-getCC) + CC_FOR_BUILD = $(tc-getBUILD_CC) + AR = $(tc-getAR) + RANLIB = $(tc-getRANLIB) + STRIPFLAG = + CFLAGS_SHLIB = -fPIC + + NETPBMLIBTYPE = $(netpbm_libtype) + NETPBMLIBSUFFIX = $(netpbm_libsuffix) + LDSHLIB = $(netpbm_ldshlib) + + # Gentoo build options + TIFFLIB = $(netpbm_config tiff) + JPEGLIB = $(netpbm_config jpeg) + PNGLIB = $(netpbm_config png) + ZLIB = $(netpbm_config zlib z) + LINUXSVGALIB = $(netpbm_config svga vga) + + # Use system versions instead of bundled + JBIGLIB = -ljbig + JBIGHDR_DIR = + JASPERLIB = -ljasper + JASPERHDR_DIR = + URTLIB = -lrle + URTHDR_DIR = + EOF + + # Sparc support ... + replace-flags -mcpu=ultrasparc "-mcpu=v8 -mtune=ultrasparc" + replace-flags -mcpu=v9 "-mcpu=v8 -mtune=v9" +} + +src_install() { + make package pkgdir="${D}"/usr || die "make package failed" + + [[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir) + + # Remove cruft that we don't need, and move around stuff we want + rm -f "${D}"/usr/bin/{doc.url,manweb} + rm -rf "${D}"/usr/man/web + rm -rf "${D}"/usr/link + rm -f "${D}"/usr/{README,VERSION,config_template,pkginfo} + dodir /usr/share + mv "${D}"/usr/man "${D}"/usr/share/ + mv "${D}"/usr/misc "${D}"/usr/share/netpbm + + dodoc README + cd doc + GLOBIGNORE='*.html:.*' dodoc * + dohtml -r . + + cd "${WORKDIR}"/${PN}-${MAN_VER}-manpages || die + doman *.[0-9] + dodoc README* gen-netpbm-manpages +} -- 2.26.2