diff options
author | 2010-07-23 18:28:47 +0000 | |
---|---|---|
committer | 2010-07-23 18:28:47 +0000 | |
commit | 497be067b3228a05784d5a7e07619f2075c22fc6 (patch) | |
tree | be6123cc5f2731d875fe2a5ef40b08b6bea89451 /sci-mathematics/dataplot | |
parent | Keyword ~ppc64 wrt #329245. (diff) | |
download | historical-497be067b3228a05784d5a7e07619f2075c22fc6.tar.gz historical-497be067b3228a05784d5a7e07619f2075c22fc6.tar.bz2 historical-497be067b3228a05784d5a7e07619f2075c22fc6.zip |
Version bump. No more use of fortran eclass, updated patches, dependencies, some work to make it easier to maintain. Program not fully tested though.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics/dataplot')
-rw-r--r-- | sci-mathematics/dataplot/ChangeLog | 12 | ||||
-rw-r--r-- | sci-mathematics/dataplot/Manifest | 18 | ||||
-rw-r--r-- | sci-mathematics/dataplot/dataplot-20090821.ebuild | 83 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/Makefile.am.20090821 | 46 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/configure.ac.20090821 | 76 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/dataplot-20090821-opengl.patch | 47 |
6 files changed, 279 insertions, 3 deletions
diff --git a/sci-mathematics/dataplot/ChangeLog b/sci-mathematics/dataplot/ChangeLog index 60af517ab53a..32623a819ebb 100644 --- a/sci-mathematics/dataplot/ChangeLog +++ b/sci-mathematics/dataplot/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sci-mathematics/dataplot -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/dataplot/ChangeLog,v 1.8 2009/12/26 17:45:37 pva Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/dataplot/ChangeLog,v 1.9 2010/07/23 18:28:47 bicatali Exp $ + +*dataplot-20090821 (23 Jul 2010) + + 23 Jul 2010; SĂ©bastien Fabbro <bicatali@gentoo.org> + +dataplot-20090821.ebuild, +files/dataplot-20090821-opengl.patch, + +files/Makefile.am.20090821, +files/configure.ac.20090821: + Version bump. Still rough (untested fully). No more use of fortran eclass, + updated patches, dependencies, some work to make it easier to maintain 26 Dec 2009; Peter Volkov <pva@gentoo.org> dataplot-20080225.ebuild: virtual/ghostscript->app-text/ghostscript-gpl: ghostscript-gpl is the only diff --git a/sci-mathematics/dataplot/Manifest b/sci-mathematics/dataplot/Manifest index f94d3d115ed4..071e31f74098 100644 --- a/sci-mathematics/dataplot/Manifest +++ b/sci-mathematics/dataplot/Manifest @@ -1,10 +1,26 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX 90dataplot 75 RMD160 d561beb32d6b98a1809fa46a103beaa115450585 SHA1 160b11d262ee4aac6d1af48dc96af905d1724a55 SHA256 a0e547d52eca3ec872bd996712e93d550d65f66a693416ce6944504cab78df6c AUX Makefile.am.20080225 1246 RMD160 05e5b07336606da88381a31882f32b482e807d22 SHA1 acb5e834086dbf895e60cb75a8807dfa763f5372 SHA256 083de39fb87096dc26209b2084d04d9ead949a0c8a87f6da9dddb21899acbfef +AUX Makefile.am.20090821 1360 RMD160 97ec2900b3fd0f79787ec430a8c2066d6228c78c SHA1 d2807ab9c3ae8cfb5ff33cce1107db0031294c34 SHA256 e37e969a56ef87e344bfc84444bbc4658bebe4babaf8efcb87f5dc4e4ef19a10 AUX configure.ac.20080225 2967 RMD160 7e5f8a192fba3e5e4441b912bec60e97f3c3c981 SHA1 2a8ea0e90240071cd3d80d1af88fc54266ad9a07 SHA256 a89eade674ffaf683b73537133e56df6d6ccc3093ea78c783049400a845eec85 +AUX configure.ac.20090821 2274 RMD160 ee5d751b06f33879bbe5c93cfe29292d1b2e04ba SHA1 2d0cf648c3baba59eea8887df8780cd05c3003f5 SHA256 f268beee4aceceefa8980014e425478fd706fa0ab66e0c85cc9a74d1209b3b3d +AUX dataplot-20090821-opengl.patch 1644 RMD160 c13452d54800b1ea8d2f88893abe34de5fe93b4c SHA1 de1c01ea37198672c3d8bc59ced79c0c7e9c1150 SHA256 6988b6363882ab0f39f1374715593a7f50f7190b3a54ab43bfd5a1a62d6625ee AUX dpsrc-dp1patches-20080225.patch 3003 RMD160 e3480165e3ce77e8f74bb8b1f20ba4beecc54d76 SHA1 16616bd81b6e91dcf3a105d97d593794711c4901 SHA256 3279e55fafa3e43700f5f7df3f8422b0f124d1e12cd356f344f85cb33a0b3551 AUX dpsrc-patchset-20080225.patch 4587 RMD160 a582f14dbe92cb3802b641b737d726ed2d39d527 SHA1 3aa03d5d53135ca9ac1464f26a3eceae4a8a9d3a SHA256 4a1c7ca2418558a857bd7d55d0815c5caa6fbe911bd4bf320b8460aa917effbb DIST dplib.02_25_2008.tar.gz 5340447 RMD160 51b5892c83bb5d420f324e3dab5edec24925f728 SHA1 3a77ed5e1e49f377083a11b8a177f678284b91f2 SHA256 7f9a30ae8ab029e0eeca4fbe08e665b572ec98a05ec001a67f95e4857d2a5b05 +DIST dplib.2009_07_15.tar.gz 7507367 RMD160 80409f7867f56e1cd0a85dba036d4d21468e7e6d SHA1 ca8538d942637ecd6b111f50e91b58c5317d62e5 SHA256 bb1dce97fbcec611cabe636bbdf20efa77c191b84e9c3db621554daea831f00d DIST dpsrc.02_25_2008.tar.gz 6399167 RMD160 ed14f8ceb225e86f25026916ab4934a140f602ae SHA1 f1023d99ec7d2a64611dabedfbc5ad6f16e67cf7 SHA256 794bedcc48cf444c5813f864f4bacb158474d450337279edaf7fba1055c552c6 +DIST dpsrc_2009_08_21.tar.gz 6656048 RMD160 55078a2ebb3f4b0594ac0b7b0efb0d71a0873575 SHA1 04509cf46e21735d6877aa1ffd2b2bf6350aad85 SHA256 ee47746fb28b88a5a0affa6a51a0e10c9350b1dc28977ecbee19d64a1e204cd4 EBUILD dataplot-20080225.ebuild 2323 RMD160 adc9ddaec0e400437df7e6f5786490a9e62fc39a SHA1 e0251160df94bbde05078bc0beff6ca69203d043 SHA256 af32df6e4b118ddfe6b0f76c4519fed24654fd8ce8ad0cb9e9e3991613682316 -MISC ChangeLog 4771 RMD160 d89c3be766d9666922ba941acba467194e098483 SHA1 35bd97b65517ce031cfac7b3c7385a914431c3f8 SHA256 0eb8f505857cfe804998de80f075a88d55ebbb99a372884d5989602a8a259124 +EBUILD dataplot-20090821.ebuild 2229 RMD160 40105554866676e67fe16a1471675a56e6153c4a SHA1 10f1e04b34a3acaf65fd510a3e3395828a0ab045 SHA256 d5722123af70b14a1d30d707855d762b8201ae2ec7b2bb91899679a1e2c01c10 +MISC ChangeLog 5145 RMD160 20ca6c7977d9302d3775b03905a09499b4f506c2 SHA1 4c4144d0b8176d7d505b9e2acf7aadd6e92d008d SHA256 409e40d774cc92250a5a57b107f7ab46843dacafea2492fe6954f212ce431991 MISC metadata.xml 821 RMD160 38c3f3cdc118701dc58de45c0d5db3c56a5b83fb SHA1 a980860b917e122062e5353fd5928ba3aec1f6b9 SHA256 dbb0c7d392c4939e96a6ff28dd78b1b4a03527860bcc4d31a3ac65b56df9200b +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAkxJ36MACgkQ1ycZbhPLE2DaNgCglolaPPgjCNq7Ya7ZKNLj8i87 +3BkAoKLPl970bj7BzAynLvXgHtVUKX2z +=LdAA +-----END PGP SIGNATURE----- diff --git a/sci-mathematics/dataplot/dataplot-20090821.ebuild b/sci-mathematics/dataplot/dataplot-20090821.ebuild new file mode 100644 index 000000000000..c1d817eb85a5 --- /dev/null +++ b/sci-mathematics/dataplot/dataplot-20090821.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/dataplot/dataplot-20090821.ebuild,v 1.1 2010/07/23 18:28:47 bicatali Exp $ + +EAPI=3 +inherit eutils toolchain-funcs autotools + +# YEAR MONTH DAY +MY_PV=${PV:0:4}_${PV:4:2}_${PV:6:2} +MY_P=dpsrc_${MY_PV} +# MY_PV_AUX usually ${MY_PV} +MY_PV_AUX=2009_07_15 +MY_P_AUX=dplib.${MY_PV_AUX} + +DESCRIPTION="A program for scientific visualization and statistical analyis" +HOMEPAGE="http://www.itl.nist.gov/div898/software/dataplot/" +SRC_URI="ftp://ftp.nist.gov/pub/dataplot/unix/${MY_P}.tar.gz + ftp://ftp.nist.gov/pub/dataplot/unix/${MY_P_AUX}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples gd opengl X" + +COMMON_DEPEND="media-libs/plotutils + opengl? ( virtual/opengl ) + gd? ( media-libs/gd[png,jpeg] )" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig" +RDEPEND="${COMMON_DEPEND} + X? ( x11-misc/xdg-utils )" + +S="${WORKDIR}/${MY_P}" +S_AUX="${WORKDIR}/${MY_P_AUX}" + +src_unpack() { + # unpacking and renaming because + # upstream does not use directories + mkdir "${S_AUX}" + pushd "${S_AUX}" + unpack ${MY_P_AUX}.tar.gz + popd + mkdir ${MY_P} + cd "${S}" + unpack ${MY_P}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-opengl.patch + cp "${FILESDIR}"/Makefile.am.${PV} Makefile.am + cp "${FILESDIR}"/configure.ac.${PV} configure.ac + sed -e "s:IHOST1='SUN':IHOST1='@HOST@:" \ + -e "s:/usr/local/lib:@datadir@:g" \ + dp1_linux.f > dp1_linux.f.in || die + sed -e "s/(MAXOBV=.*)/(MAXOBV=@MAXOBV@)/" \ + -e "s:/usr/local/lib:@datadir@:g" \ + DPCOPA.INC > DPCOPA.INC.in || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable gd) \ + $(use_enable opengl gl) \ + $(use_enable X) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r "${S_AUX}"/data/* || die "installing examples failed" + fi + insinto /usr/share/dataplot + doins "${S_AUX}"/dp{mes,sys,log}f.tex || die "doins failed." + doenvd "${FILESDIR}"/90${PN} || die "doenvd failed" +} + +pkg_postinst() { + elog "Before using dataplot, please run (as root):" + elog "env-update && source /etc/profile" +} diff --git a/sci-mathematics/dataplot/files/Makefile.am.20090821 b/sci-mathematics/dataplot/files/Makefile.am.20090821 new file mode 100644 index 000000000000..e10cf41ebd54 --- /dev/null +++ b/sci-mathematics/dataplot/files/Makefile.am.20090821 @@ -0,0 +1,46 @@ +bin_PROGRAMS = dataplot +dataplot_SOURCES = dp1_linux.f \ + dp2.f dp3.f dp4.f dp5.f dp6.f dp7.f dp8.f dp9.f dp10.f dp11.f \ + dp12.f dp13.f dp14.f dp15.f dp16.f dp17.f dp18.f dp19.f dp20.f dp21.f \ + dp22.f dp23.f dp24.f dp25.f dp26.f dp27.f dp28.f dp29.f dp30.f dp31.f \ + dp32.f dp33.f dp34.f dp35.f dp36.f dp37.f dp38.f dp39.f dp40.f dp41.f \ + dp42.f dp43.f dp44.f dp45.f dp46.f \ + dpcalc.f dpdds2.f dpdds3.f dpdds.f edinit.f edmai2.f edsear.f edsub.f \ + edwrst.f fit3b.f starpac.f tcdriv_nopc.f aqua_src.f cluster.f compgeom.f \ + optimi.f libplot_src.c rldp.c main.f + +if ENABLE_GD +dataplot_SOURCES += gd_src.c +else +dataplot_SOURCES += gd_src.f +endif + +if ENABLE_GL +dataplot_SOURCES += gl_src.c +else +dataplot_SOURCES += gl_src.f +endif + +if ENABLE_X11 +dataplot_SOURCES += x11_src.c +else +dataplot_SOURCES += x11src.f +endif + +dataplot_CFLAGS = @GL_CFLAGS@ +dataplot_LDADD = @GD_LIBS@ @GL_LIBS@ @X11_LIBS@ $(FLIBS) -lreadline + +# this is to remove ambiguity between the similar filenames +# of the c and f77 version (shortcoming of automake) +# the f77 versions are forced +# the c versions objects are called dataplot-gd_src.o etc +gd_src.o: gd_src.f + $(F77COMPILE) -c -o $@ $< +gl_src.o: gl_src.f + $(F77COMPILE) -c -o $@ $< +aqua_src.o: aqua_src.f + $(F77COMPILE) -c -o $@ $< +libplot_src.o: libplot_src.f + $(F77COMPILE) -c -o $@ $< +rldp.o: rldp.f + $(F77COMPILE) -c -o $@ $< diff --git a/sci-mathematics/dataplot/files/configure.ac.20090821 b/sci-mathematics/dataplot/files/configure.ac.20090821 new file mode 100644 index 000000000000..75ef115e58bc --- /dev/null +++ b/sci-mathematics/dataplot/files/configure.ac.20090821 @@ -0,0 +1,76 @@ +AC_PREREQ(2.59) +AC_INIT([dataplot], [20080225], [n.heckert@nist.gov]) +AC_CONFIG_HEADER([config.h]) +AC_CONFIG_AUX_DIR(config) +AM_MAINTAINER_MODE +AM_INIT_AUTOMAKE([foreign]) + +AC_PROG_CC +AC_PROG_F77 +AC_F77_LIBRARY_LDFLAGS +case $F77 in + *gfortran*) FFLAGS+=" -w -fno-range-check" ;; + *) ;; +esac + +AC_CANONICAL_HOST +case $host in + i?86*linux*) MAXOBV=100000 ;; + *64*linux*) MAXOBV=1000000 ;; +esac +AC_SUBST(MAXOBV) + +AC_ARG_ENABLE(gd, + [AS_HELP_STRING([--enable-gd], [Enable the gd device driver])], + [enable_gd=$enableval], + [enable_gd=no]) + +AC_CHECK_LIB(plot, pl_closepl_r, , + [AC_MSG_ERROR([plotutils libraries not found])]) + +AC_ARG_ENABLE(gl, + [AS_HELP_STRING([--enable-gl], [Enable the OpenGL device driver])], + [enable_gl=$enableval], + [enable_gl=no]) + +AC_ARG_ENABLE(X, + [AS_HELP_STRING([--enable-X], [Enable the X11 device driver])], + [enable_x11=$enableval], + [enable_x11=no]) + +if test x"$enable_gd" = x"yes"; then + AC_CHECK_PROG(enable_gd, [gdlib-config],, + [AC_MSG_ERROR([GD driver requested but gdlib-config not found])]) + GD_LIBS="`gdlib-config --libs` -lgd" + GD_CFLAGS="`gdlib-config --cflags`" + AC_SUBST(GD_LIBS) + AC_SUBST(GD_CFLAGS) +fi +AM_CONDITIONAL(ENABLE_GD, [test x"$enable_gd" = x"yes"] ) + +if test x"$enable_gl" = x"yes"; then +dnl hardcoded opengl libs (should be host/implementation dependent) + AC_CHECK_HEADER(GL/gl.h,, + [AC_MSG_ERROR([OpenGL driver requested but header gl.h not found])]) + AC_CHECK_HEADER(GL/glu.h,, + [AC_MSG_ERROR([OpenGL driver requested but header glu.h not found])]) + GL_CFLAGS="-DUNIX_OS -DAPPEND_UNDERSCORE -DSUBROUTINE_CASE" + AC_SUBST(GL_CFLAGS) + + AC_CHECK_LIB(GL, glXCreateContext, GL_LIBS="-lGL", + [AC_MSG_ERROR([OpenGL driver requested but libraries not found])]) + AC_CHECK_LIB(GLU, gluPerspective, GL_LIBS="-lGL -lGLU", + [AC_MSG_ERROR([OpenGL driver requested but libraries not found])]) + GL_LIBS="-lGL -lGLU" + AC_SUBST(GL_LIBS) +fi +AM_CONDITIONAL(ENABLE_GL, [ test x"$enable_gl" = x"yes" ]) + +if test x"$enable_x11" = x"yes"; then + PKG_CHECK_MODULES(X11, x11,, + [AC_MSG_ERROR([X11 driver requested but pkgconfig module not found])]) +fi +AM_CONDITIONAL(ENABLE_X11, [ test x"$enable_x11" = x"yes" ]) + +AC_CONFIG_FILES([Makefile DPCOPA.INC dp1_linux.f]) +AC_OUTPUT diff --git a/sci-mathematics/dataplot/files/dataplot-20090821-opengl.patch b/sci-mathematics/dataplot/files/dataplot-20090821-opengl.patch new file mode 100644 index 000000000000..5810b6029b87 --- /dev/null +++ b/sci-mathematics/dataplot/files/dataplot-20090821-opengl.patch @@ -0,0 +1,47 @@ +--- gl_src.c.orig 2001-02-28 16:45:56.000000000 -0500 ++++ gl_src.c 2008-04-10 17:03:03.000000000 -0400 +@@ -154,7 +154,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <math.h> +-#include <strings.h> ++#include <string.h> + + #if UNIX == 0 + #include <X11/Xlib.h> +@@ -257,7 +257,7 @@ + /* flags for current attribute settings */ + static int OPEN_FLAG = 0; /* 0 - X11 closed, 1 - X11 open */ + static int OPEN_FLAG_2 = 0; /* 0 - repeat graph window closed, 1 - open */ +-int GRAPH_FLAG = 0; /* 0 - gleras has not been called, 1 - gleras has been called */ ++static int GRAPH_FLAG = 0; /* 0 - gleras has not been called, 1 - gleras has been called */ + int WIDTH_CURRENT; /* current line width */ + int LINE_STYLE_CURRENT; /* current line style */ + char FONT_NAME_CURRENT[80]; /* name of current font */ +@@ -922,7 +922,7 @@ + glNewList(list_id, GL_COMPILE_AND_EXECUTE); + + glClearColor(red_temp,green_temp,blue_temp,1.0); +- glclear(GL_COLOR_BUFFER_BIT); ++ glClear(GL_COLOR_BUFFER_BIT); + + GRAPH_FLAG = 1; + } +@@ -1486,7 +1486,7 @@ + * Color only set if being changed. + */ + #if APPEND_UNDERSCORE == 1 && SUBROUTINE_CASE == 1 +-void glseco(jcol, red, green, blue) ++void glseco_(jcol, red, green, blue) + #elif APPEND_UNDERSCORE == 1 && SUBROUTINE_CASE == 0 + void GLSECO_(jcol, red, green, blue) + #elif APPEND_UNDERSCORE == 0 && SUBROUTINE_CASE == 1 +@@ -1691,7 +1691,7 @@ + width = isize[0]; + #endif + if (width < 1.0) width = 1.0; +- glPointsize(width); ++ glPointSize(width); + glBegin(GL_POINTS); + #if PRECISION == 0 + glVertex2f(*ix, *iy); |