diff options
author | Daniel Black <dragonheart@gentoo.org> | 2005-01-24 09:08:58 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2005-01-24 09:08:58 +0000 |
commit | 4977d9f5a26e20ea9c169a95d9b534d8c3ace743 (patch) | |
tree | a0620b8ad504d120da6a0e474d486a6c75bb465c /media-libs | |
parent | media-libs/ploticus:svgz (diff) | |
download | gentoo-2-4977d9f5a26e20ea9c169a95d9b534d8c3ace743.tar.gz gentoo-2-4977d9f5a26e20ea9c169a95d9b534d8c3ace743.tar.bz2 gentoo-2-4977d9f5a26e20ea9c169a95d9b534d8c3ace743.zip |
initial import bug 51739 - Thanks and apologies to all those who waited far too long.
(Portage version: 2.0.51-r14)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/ploticus/ChangeLog | 11 | ||||
-rw-r--r-- | media-libs/ploticus/Manifest | 6 | ||||
-rw-r--r-- | media-libs/ploticus/files/11ploticus | 1 | ||||
-rw-r--r-- | media-libs/ploticus/files/digest-ploticus-2.30 | 1 | ||||
-rw-r--r-- | media-libs/ploticus/files/pl230src.patch | 162 | ||||
-rw-r--r-- | media-libs/ploticus/metadata.xml | 21 | ||||
-rw-r--r-- | media-libs/ploticus/ploticus-2.30.ebuild | 145 |
7 files changed, 347 insertions, 0 deletions
diff --git a/media-libs/ploticus/ChangeLog b/media-libs/ploticus/ChangeLog new file mode 100644 index 000000000000..fefa45a8d848 --- /dev/null +++ b/media-libs/ploticus/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-libs/ploticus +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ploticus/ChangeLog,v 1.1 2005/01/24 09:08:58 dragonheart Exp $ + +*ploticus-2.30 (24 Jan 2005) + + 24 Jan 2005; Daniel Black <dragonheart@gentoo.org> +metadata.xml, + +files/11ploticus, +files/pl230src.patch, +ploticus-2.30.ebuild: + Initial import as per bug #51739. Thanks and apologies to all those who waited + far too long. + diff --git a/media-libs/ploticus/Manifest b/media-libs/ploticus/Manifest new file mode 100644 index 000000000000..4c6f659359c0 --- /dev/null +++ b/media-libs/ploticus/Manifest @@ -0,0 +1,6 @@ +MD5 92797bcb47c13ca4661d0ed2de6de765 metadata.xml 832 +MD5 af82cdc9270830e8e7412d19c7be4ff2 ploticus-2.30.ebuild 3761 +MD5 bfc66e7cb49aceece8fe2c25a022b7c6 files/11ploticus 47 +MD5 7e62aeab46857cc9d3f9b4678476dc98 files/digest-ploticus-2.30 60 +MD5 24f51384258b69ce8e94bd28c9814370 files/pl230src.patch 5532 +MD5 7e62aeab46857cc9d3f9b4678476dc98 files/digest-ploticus-2.30-r1 60 diff --git a/media-libs/ploticus/files/11ploticus b/media-libs/ploticus/files/11ploticus new file mode 100644 index 000000000000..80e82c4918db --- /dev/null +++ b/media-libs/ploticus/files/11ploticus @@ -0,0 +1 @@ +PLOTICUS_PREFABS="/usr/share/ploticus/prefabs" diff --git a/media-libs/ploticus/files/digest-ploticus-2.30 b/media-libs/ploticus/files/digest-ploticus-2.30 new file mode 100644 index 000000000000..4adc4d7fcaf9 --- /dev/null +++ b/media-libs/ploticus/files/digest-ploticus-2.30 @@ -0,0 +1 @@ +MD5 0d345918bba1f2fcdbb3d46cd3563d44 pl230src.tar.gz 420104 diff --git a/media-libs/ploticus/files/pl230src.patch b/media-libs/ploticus/files/pl230src.patch new file mode 100644 index 000000000000..e250d7cb5a41 --- /dev/null +++ b/media-libs/ploticus/files/pl230src.patch @@ -0,0 +1,162 @@ +diff -ru pl230src.orig/src/Makefile pl230src/src/Makefile +--- pl230src.orig/src/Makefile 2004-08-27 05:17:44.000000000 +0930 ++++ pl230src/src/Makefile 2004-09-26 10:22:12.335543912 +0930 +@@ -121,11 +121,11 @@ + #### For PNG (only) uncomment the following.. (this will use a version of GD that comes + #### bundled with ploticus; you need to have libpng and zlib ). Set GD16H if your + #### png.h or other header files are in a nonstandard place, eg GD16H = -I/home/scg/lib +-ploticus: plpng +-PLPNG = pl +-GD16LIBS = -lpng -lz +-GD16H = +-ZFLAG = -DWZ ++# ploticus: plpng ++# PLPNG = pl ++# GD16LIBS = -lpng -lz ++# GD16H = ++# ZFLAG = -DWZ + + + #### For pseudo-GIF (only) uncomment the following.. (this will use a version of GD that +@@ -147,18 +147,18 @@ + #### uncomment the following.. (gd 1.84+, libpng, zlib, libjpeg required). Set GD18H if your + #### png.h or other header files are in a nonstandard place, eg GD18H = -I/home/scg/lib + +-# ploticus: plgd18 +-# GD18LIBS = -lgd -lpng -lz -ljpeg +-# GD18H = ++#ploticus: plgd18 ++#GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype ++#GD18H = + # GDFREETYPE = +-# ZFLAG = -DWZ ++#ZFLAG = -DWZ + + + #### For JPEG, WBMP, PNG, and FreeType2, using your copy of GD 1.84+, ###### + #### uncomment the following.. (gd 1.84+, libpng, zlib, libjpeg, libfreetype ###### + #### are all required). Set GDFONTPATH to directory containing .ttf files ###### +-# ploticus: plgd18 +-# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype ++#ploticus: plgd18 ++# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype -lfreetype + # GD18H = + # GDFREETYPE = -DGDFREETYPE + # ZFLAG = -DWZ +@@ -168,6 +168,10 @@ + # ploticus: plnogd + # NOGDFLAG = -DNOGD + ++EXE=pl ++ploticus: $(EXE) ++ ++ + + + ################################################################ +@@ -176,7 +180,7 @@ + ################################################################ + + #### If you plan to do a "make install", where do you want the executable(s) to be moved to? +-BIN = /usr/local/bin ++BIN = /usr/bin + + + #### To set a hard-coded directory for prefabs files, uncomment & edit the following.. +@@ -219,7 +223,7 @@ + # ..and if your ming.h is in a nonstandard place add a line like this: + # MINGH = -I/home/scg/lib + #### Otherwise, for no SWF capability, uncomment the following line +-NOSWFFLAG = -DNOSWF ++# NOSWFFLAG = -DNOSWF + + + #### To completely remove safety limits on cpu time uncomment the following.. +@@ -252,7 +256,7 @@ + + LIBS = $(XLIBS) -lm $(ADDLIBS) + +-CFLAGS = -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \ ++CFLAGS += -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) $(GDLEVEL) \ + $(NOGDFLAG) $(NOXFLAG) $(NOPSFLAG) $(NOSVGFLAG) $(NOSWFFLAG) $(INCLUDEDIRS) \ + $(MINGH) $(NORLIMFLAG) -DPREFABS_DIR=\"$(PREFABS_DIR)\" + +@@ -269,39 +273,39 @@ + $(LOCALEOBJ) + + pl: pl.o $(OBJ) $(XOBJ) gd00files gd13files +- $(CC) pl.o $(FLAGS) $(OBJ) $(GD13) $(GD) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL) ++ $(CC) pl.o $(CFLAGS) $(OBJ) $(GD13) $(GD) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL) + + plpng: pl.o $(OBJ) $(XOBJ) gd00files gd16files +- $(CC) pl.o $(FLAGS) $(OBJ) $(GD16) $(GD) $(XOBJ) $(GD16LIBS) $(LIBS) $(MING) -o $(PLPNG) ++ $(CC) pl.o $(CFLAGS) $(OBJ) $(GD16) $(GD) $(XOBJ) $(GD16LIBS) $(LIBS) $(MING) -o $(PLPNG) + + gd00files: +- $(CC) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c ++ $(CC) $(CFLAGS) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c + echo "done with gd00files" > gd00files + + gd13files: +- $(CC) -c grgd.c -DGD13 -I./gd13 -o grgd13.o ++ $(CC) -c $(CFLAGS) grgd.c -DGD13 -I./gd13 -o grgd13.o + $(CC) -c $(CFLAGS) devstuff.c -DGD13 -o devstuff13.o +- $(CC) -c gd13.c -I./gd13 ++ $(CC) -c $(CFLAGS) gd13.c -I./gd13 + echo "done with gd13files" > gd13files + + gd16files: +- $(CC) -c grgd.c -DGD16 -I./ -I./gd16 -o grgd16.o ++ $(CC) -c $(CFLAGS) grgd.c -DGD16 -I./ -I./gd16 -o grgd16.o + $(CC) -c $(CFLAGS) devstuff.c -DGD16 -o devstuff16.o +- $(CC) -c -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c ++ $(CC) -c $(CFLAGS) -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c + echo "done with gd16files" > gd16files + + # GD18: + plgd18: pl.o $(OBJ) $(XOBJ) gd18files +- $(CC) $(FLAGS) pl.o grgd.o devstuff.o $(OBJ) $(XOBJ) $(GD18LIBS) $(LIBS) $(MING) -o $(PL) ++ $(CC) $(CFLAGS) pl.o grgd.o devstuff.o $(OBJ) $(XOBJ) $(GD18LIBS) $(LIBS) $(MING) -o $(PL) + + gd18files: +- $(CC) -c grgd.c devstuff.c -DGD18 $(GDFREETYPE) $(GD18H) $(CFLAGS) ++ $(CC) -c $(CFLAGS) grgd.c devstuff.c -DGD18 $(GDFREETYPE) $(GD18H) + + + + # NOGD: + plnogd: pl.o $(OBJ) $(XOBJ) nogdfiles +- $(CC) $(FLAGS) pl.o devstuff.o $(OBJ) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL) ++ $(CC) $(CFLAGS) pl.o devstuff.o $(OBJ) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL) + + nogdfiles: + $(CC) -c devstuff.c $(CFLAGS) +@@ -309,7 +313,7 @@ + + + install: +- mv $(EXE) $(BIN) ++ mv $(EXE) $(DESTDIR)$(BIN) + + clean: + $(RMCOM) *.o gd??files +diff -ru pl230src.orig/src/interact.c pl230src/src/interact.c +--- pl230src.orig/src/interact.c 2004-08-05 00:25:20.000000000 +0930 ++++ pl230src/src/interact.c 2004-09-26 10:03:34.308545112 +0930 +@@ -84,7 +84,7 @@ + /* =================================== */ + /* GETCLICK wait until a key or button is hit.. */ + /* when using postscript, this will do a showpage and return. */ +- ++#ifndef NOX11 + PLG_getclick() + { + double x, y; +@@ -100,6 +100,7 @@ + + return( Egetkey( &x, &y, &e ) ); + } ++#endif + + /* ================================ */ + /* HE This gets called by the X11 driver when we are waiting for an event diff --git a/media-libs/ploticus/metadata.xml b/media-libs/ploticus/metadata.xml new file mode 100644 index 000000000000..56ffab321444 --- /dev/null +++ b/media-libs/ploticus/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>dragonheart@gentoo.org</email> + <name>Daniel Black</name> + <description>Added because it was so wanted. Please take over if + you have an interest. + </description> + </maintainer> + <longdescription> + A free, GPL-2, non-interactive software package for producing plots, + charts, and graphics from data. It was developed in a Unix/C + environment and runs on various Unix, Linux, and win32 systems. + ploticus is good for automated or just-in-time graph generation, + handles date and time data nicely, and has basic statistical + capabilities. It allows significant user control over colors, styles, + options and details. + </longdescription> +</pkgmetadata> diff --git a/media-libs/ploticus/ploticus-2.30.ebuild b/media-libs/ploticus/ploticus-2.30.ebuild new file mode 100644 index 000000000000..3a07865c4345 --- /dev/null +++ b/media-libs/ploticus/ploticus-2.30.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/ploticus/ploticus-2.30.ebuild,v 1.1 2005/01/24 09:08:58 dragonheart Exp $ + +inherit eutils toolchain-funcs + +MY_P=pl${PV/./}src + +S=${WORKDIR}/${MY_P} +DESCRIPTION="A command line application for producing graphs and charts" +HOMEPAGE="http://ploticus.sourceforge.net" +SRC_URI="http://ploticus.sourceforge.net/download/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT=0 +KEYWORDS="x86" +IUSE="gd flash nls cpulimit svg svgz truetype X" +DEPEND="media-libs/libpng + gd? ( >=media-libs/gd-1.84 media-libs/jpeg ) + flash? ( =media-libs/ming-0.2a ) + truetype? ( =media-libs/freetype-2* ) + X? ( virtual/x11 )" + +src_unpack() { + unpack ${A} + # Fixes a problem with NOX11. + # Changes the install directory and comments all flash and gd-related + # options. (These options will be selectively uncommented later.) + epatch ${FILESDIR}/${MY_P}.patch +} + +src_compile() { + cd src + # ploticus may be compiled using the external libgd, a libgd provided with + # the package, or no gd support at all. + + local MO="" + if useq gd; then + # PNG and JPEG are supported by default. + GD18LIBS="-lgd -lpng -lz -ljpeg" + # Note that truetype works only with the external gd lib. + if useq truetype; then + GD18LIBS="${GD18LIBS} -lfreetype" + MO="${MO} GDFREETYPE=-DGDFREETYPE" + fi + # Set the graphics formats support. + # Use the external libgd. + MO="${MO} ZFLAG=-DWZ GD18H= GD16H= GDLEVEL=-DGD18=1 plgd18" + EXE="plpng" + GD16LIBS="${GD18LIBS}" + GD18LIBS="${GD18LIBS}" + + else + # No support for libgd at all. + # Note that gif and truetype do not work without gd. + EXE=plnogd + MO="${MO} NOGDFLAG=-DNOGD" + GD16LIBS= + GD18LIBS= + fi + + # Support for non-roman alphabets and collation. + if useq nls; then + MO="${MO} LOCALEOBJ=localef.o LOCALE_FLAG=-DLOCALE" + fi + + # Support for compressed or uncompressed svg. svgz implies svg. If the + # external gd library is used, the svgz format will always be available if + # ploticus was compiled with support for svg (even if the svgz flag was not + # specified and even if the -svgz flag was used). + if useq svgz; then + MO="${MO} ZLIB=-lz ZFLAG=-DWZ" + elif ! useq svg; then + MO="${MO} NOSVGFLAG=-DNOSVG" + fi + + # Support for X11 output. + if ! useq X; then + MO="${MO} NOXFLAG=-DNOX11 XLIBS= XOBJ=" + fi + + # Support for Flash output. + if useq flash; then + MO="${MO} MING=-lming" + else + MO="${MO} NOSWFFLAG=-DNOSWF" + fi + + # Support for limiting CPU utilization. (Enabled by default.) + if ! useq cpulimit; then + MO="${MO} NORLIMFLAG=-DNORLIMIT" + fi + emake "CC=$(tc-getCC)" ${MO} EXE="${EXE}" GD18LIBS="${GD18LIBS}" \ + GD16LIBS="${GD16LIBS}" \ + PREFABS_DIR=/usr/share/ploticus/prefabs ploticus || die +} + +src_test() { + cd ${S}/pltestsuite + export PATH="${S}/src:${PATH}" + #sed -i -e "s:PL=.*:PL=${S}/src/pl:" run_script_test + local TESTS="gif png jpeg eps" + useq svg && TESTS="${TESTS} svg" + useq svgz && TESTS="${TESTS} svgz" + for TEST in ${TESTS}; + do + echo "Testing ${TEST}" + echo -e "${TEST}\n" | ./run_script_test + cat Diag.out + done +} + +src_install() { + dodoc README + cd ${S}/src + mkdir -p ${D}usr/bin + if useq gd; then + EXE="pl plpng" + else + EXE=pl + fi + emake DESTDIR=${D} EXE="${EXE}" install || die + + PL_TARGET=/usr/share/${PN} + insinto ${PL_TARGET}/prefabs + doins ${S}/prefabs/* + insinto ${PL_TARGET}/testsuite + doins ${S}/pltestsuite/* + + # Add the PLOTICUS_PREFABS environment variable + #dodir /etc/env.d + #echo -e "PLOTICUS_PREFABS=${PL_TARGET}/prefabs" > ${D}/etc/env.d/11ploticus + +} + +#pkg_postinst() { +# einfo "The environment has been set up for Ploticus to find the prefab files." +# einfo "In order to immediately activate these settings please do:" +# einfo "" +# einfo " env-update" +# einfo " source /etc/profile" +# einfo "" +# einfo "Otherwise the setting will become active at next login." +# +#} + |