mixi-exheres

An unofficial repo for exherbo (moved to git://git.exherbo.org/dev/mixi.git).
git clone https://git.shadowice.org/mixi-exheres.git
Log | Files | Refs | README

commit 7860e7d2bc90412b3cc6677c1b15dc22c9197e23
parent ac9e53a47dfab8c00f803db327cb94d90677ec13
Author: Johannes Nixdorf <mixi@user-helfen-usern.de>
Date:   Fri May 14 12:29:48 +0200

Added media-libs/netpbm exheres.

Diffstat:
metadata/categories.conf | 1+
packages/media-libs/netpbm/netpbm-10.35.74.exheres-0 | 7+++++++
packages/media-libs/netpbm/netpbm.exlib | 73+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 81 insertions(+), 0 deletions(-)
diff --git a/metadata/categories.conf b/metadata/categories.conf @@ -1,4 +1,5 @@ net-misc +media-libs media-video kde games-strategy diff --git a/packages/media-libs/netpbm/netpbm-10.35.74.exheres-0 b/packages/media-libs/netpbm/netpbm-10.35.74.exheres-0 @@ -0,0 +1,7 @@ +# Copyright 2010 Johannes Nixdorf <mixi@user-helfen-usern.de> +# Distributed under the terms of the GNU General Purpose License v2 + +require netpbm + +SLOT="0" +PLATFORMS="~amd64" diff --git a/packages/media-libs/netpbm/netpbm.exlib b/packages/media-libs/netpbm/netpbm.exlib @@ -0,0 +1,73 @@ +# Copyright 2010 Johannes Nixdorf <mixi@user-helfen-usern.de> +# Distributed under the terms of the GNU General Purpose License v2 +# Based in part upon 'netpbm-10.49.00.ebuild' from Gentoo, which is: +# Copyright 1999-2010 Gentoo Foundation + +require sourceforge [ pnv="super_stable/${PV}/${PNV}" suffix=tgz ] + +export_exlib_phases src_configure src_compile src_install + +SUMMARY="A whole bunch of utilities for primitive manipulation ofgraphic images." +HOMEPAGE="http://netpbm.sourceforge.net/" + +LICENCES="GPL-2" +MYOPTIONS="jpeg png tiff X" + +UPSTREAM_DOCUMENTATION="${HOMEPAGE}/doc/ [[ lang = en ]]" + +DEPENDENCIES=" + build+run: + jpeg? ( media-libs/jpeg ) + png? ( media-libs/libpng ) + tiff? ( media-libs/tiff ) + X? ( x11-libs/libX11 ) + sys-libs/zlib + build: + sys-devel/flex +" + +netpbm_src_configure() { + CONFIG=$(<Makefile.config.in) + + CONFIG+=" + CC = ${CC} + CFLAGS = ${CFLAGS} + LDFLAGS = ${LDFLAGS} + NETPBMLIBTYPE = unixshared + NETPBMLIBSUFFIX = so + LDRELOC = ld --reloc + LINKER_CAN_DO_EXPLICIT_LIBRARY = N + CFLAGS_SHLIB = ${CFLAGS} -fPIC + ZLIB = libz.so + LINKERISCOMPILER = Y + STRIPFLAG = + SYMLINK = ln -sf + " + + echo "$CONFIG" > Makefile.config +} + +netpbm_src_compile() { + JPEGLIB="NONE"; PNGLIB="NONE"; TIFFLIB="NONE"; X11LIB="NONE" + option jpeg && JPEGLIB="libjpeg.so" + option png && PNGLIB="libpng.so" + option tiff && TIFFLIB="libtiff.so" + option X && X11LIB="libX11.so" + + emake -j1 JPEGLIB=${JPEGLIB} PNGLIB=${PNGLIB} TIFFLIB=${TIFFLIB} X11LIB=${X11LIB} +} + +netpbm_src_install() { + emake -j1 package pkgdir="${IMAGE}/usr" + + rm -f "${IMAGE}/usr/bin/{doc.url,manweb}" + rm -r "${IMAGE}/usr/man/web" + rm -r "${IMAGE}/usr/link" + rm -r "${IMAGE}/usr/{README,VERSION,config_template,pkginfo}" + dodir /usr/share + mv "${IMAGE}/usr/man" "${IMAGE}/usr/share/" + mv "${IMAGE}/usr/misc" "${IMAGE}/usr/share/netpbm" + mv "${IMAGE}/usr/lib" "${IMAGE}/usr/${libdir}" + + dodoc README +}