/[gentoo-x86]/media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild
Gentoo

Contents of /media-gfx/hp2xx/hp2xx-3.4.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Mar 29 13:37:30 2015 UTC (3 years, 8 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
revbump; add patch and ebuild prepared by maintainer with assist from package's author, all found in bug #529800, fixes said bug

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 inherit eutils base
8
9 DESCRIPTION="Versatile tool to convert Hewlett-Packard's HP-GL plotter language into other graphics formats"
10 HOMEPAGE="http://www.gnu.org/software/hp2xx/"
11 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE="X jpeg png tiff"
17
18 RDEPEND="
19 png? ( media-libs/libpng sys-libs/zlib )
20 tiff? ( media-libs/tiff )
21 jpeg? ( virtual/jpeg )
22 X? ( x11-libs/libX11 )"
23 DEPEND="${RDEPEND}
24 sys-apps/texinfo"
25
26 PATCHES=( "${FILESDIR}"/${P}-r1.patch
27 "${FILESDIR}"/${P}-docbuild.patch )
28
29 src_prepare() {
30 base_src_prepare
31 cp -v makes/generic.mak sources/Makefile || die
32 }
33
34 src_compile() {
35 cd "${S}/sources" || die
36 export PREVIEWER="no_prev"
37 export EX_SRC=
38 export EX_OBJ=
39 export EX_DEFS=-DUNIX
40 export ALL_LIBS=-lm
41 use X && \
42 PREVIEWER="to_x11" \
43 EX_DEFS="-DHAS_UNIX_X11" \
44 ALL_LIBS="${ALL_LIBS} -lX11"
45 use jpeg && \
46 EX_SRC="${EX_SRC} to_jpg.c" \
47 EX_OBJ="${EX_OBJ} to_jpg.o" \
48 EX_DEFS="${EX_DEFS} -DJPG" \
49 ALL_LIBS="${ALL_LIBS} -ljpeg"
50 use png && \
51 EX_SRC="${EX_SRC} png.c to_png.c" \
52 EX_OBJ="${EX_OBJ} png.o to_png.o" \
53 EX_DEFS="${EX_DEFS} -DPNG" \
54 ALL_LIBS="${ALL_LIBS} -lpng"
55 use tiff && \
56 EX_SRC="${EX_SRC} to_tif.c" \
57 EX_OBJ="${EX_OBJ} to_tif.o" \
58 EX_DEFS="${EX_DEFS} -DTIF" \
59 ALL_LIBS="${ALL_LIBS} -ltiff"
60 emake all
61 }
62
63 src_install() {
64 dodir /usr/bin /usr/share/info /usr/share/man/man1
65
66 make prefix="${D}/usr" \
67 mandir="${D}/usr/share/man" \
68 infodir="${D}/usr/share/info" \
69 install || die
70 }

  ViewVC Help
Powered by ViewVC 1.1.20