diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-06-04 16:31:41 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-06-04 16:31:41 +0000 |
commit | 9ee8113b351ddba3507f30ead50edfd31587aab9 (patch) | |
tree | 7bd9ee68b1f1de79462c33fbb267f3ee5ef0e2b8 /sci-mathematics | |
parent | Add local gs for sci-mathematics/dataplot (diff) | |
download | historical-9ee8113b351ddba3507f30ead50edfd31587aab9.tar.gz historical-9ee8113b351ddba3507f30ead50edfd31587aab9.tar.bz2 historical-9ee8113b351ddba3507f30ead50edfd31587aab9.zip |
Initial import from sunrise. Proxy-maintaining for Thomas Anderson
Package-Manager: portage-2.1.5.3
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/dataplot/ChangeLog | 92 | ||||
-rw-r--r-- | sci-mathematics/dataplot/Manifest | 20 | ||||
-rw-r--r-- | sci-mathematics/dataplot/dataplot-20080225.ebuild | 95 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/90dataplot | 3 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/Makefile.am.20080225 | 45 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/configure.ac.20080225 | 97 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/dpsrc-dp1patches-20080225.patch | 88 | ||||
-rw-r--r-- | sci-mathematics/dataplot/files/dpsrc-patchset-20080225.patch | 111 | ||||
-rw-r--r-- | sci-mathematics/dataplot/metadata.xml | 20 |
9 files changed, 571 insertions, 0 deletions
diff --git a/sci-mathematics/dataplot/ChangeLog b/sci-mathematics/dataplot/ChangeLog new file mode 100644 index 000000000000..035fee50f3ec --- /dev/null +++ b/sci-mathematics/dataplot/ChangeLog @@ -0,0 +1,92 @@ +# ChangeLog for sci-mathematics/dataplot +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/dataplot/ChangeLog,v 1.1 2008/06/04 16:31:40 bicatali Exp $ + +*dataplot-20080225 (04 Jun 2008) + + 04 Jun 2008; SĂ©bastien Fabbro <bicatali@gentoo.org> + +files/dpsrc-dp1patches-20080225.patch, +files/90dataplot, + +files/dpsrc-patchset-20080225.patch, +files/Makefile.am.20080225, + +files/configure.ac.20080225, +metadata.xml, +dataplot-20080225.ebuild: + Initial import from sunrise. Proxy-maintaining for Thomas Anderson + + 30 May 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225-r1.ebuild, -files/dpsrc-maxobvvalue-20080225.patch, + files/dpsrc-dp1patches-20080225.patch, -files/Makefile.am, + +files/Makefile.am.20080225, -files/configure.ac, + +files/configure.ac.20080225: + Merge maxobvvalue into dp1patches. Move dataplot's Makefile.am and + configure.ac to {configure.ac,Makefile.am}.${PV}. Add || die to doins and + econf + + 30 May 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225-r1.ebuild: + tweak fortran checks + + 30 May 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + -files/dpsrc-datadir-20080225.patch: + Remove obsolete patches that have been incorporated into dp1patches + + 30 May 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225-r1.ebuild: + Switch back to using need_fortran instead of built_with_use checks, though + it's doing essentially the same thing behind the scenes + + 19 May 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225-r1.ebuild: + Notify user about the need to update their environment after merging to + avoid error messages. + + 13 May 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225-r1.ebuild: + Add DEPEND on dev-util/pkgconfig since it is used in the autotools stuff. + + 30 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + -dataplot-20080225.ebuild, +dataplot-20080225-r1.ebuild: + Oops, forgot to revbump for new ghostscript(gs) USE flag + + 30 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + +files/90dataplot, dataplot-20080225.ebuild: + Add env.d file for dataplot. Necessary for startup file location, env + variable, and + + 30 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225.ebuild, +files/dpsrc-datadir-20080225.patch, + +files/dpsrc-maxobvvalue-20080225.patch, + files/dpsrc-patchset-20080225.patch, + +files/dpsrc-dp1patches-20080225.patch, +files/Makefile.am, + +files/configure.ac: + Many changes. Add parallel build support, using autotools. Add GhostScript + support. Many many thanks to bicatali for helping with the autofoo and other + general pointers. + + 30 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225.ebuild: + Only do built_with_use check if USE='gd' + + 19 Apr 2008; Thomas Anderson <gentoofan23@gentoo.org> + dataplot-20080225.ebuild: + Move -I/usr/include/GL from `use gd` conditional to `use gl` + + 16 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225.ebuild: + Various style fixes from bicatali + + 14 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225.ebuild: + Make DESCRIPTION a little nicer and more accurate + + 12 Apr 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + dataplot-20080225.ebuild: + Use alphabetical order + + 12 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + dataplot-20080225.ebuild: + Don't do "need_fortran g77 gfortran" but "need_fortran gfortran" until + testing with g77 is done + + 12 Apr 2008; Thomas Anderson (gentoofan23) <gentoofan23@gmail.com> + +dataplot-20080225.ebuild, +files/dpsrc-patchset-20080225.patch, + +metadata.xml: + New Ebuild for bug #217390, thanks to Tommy[D] for reviewing + diff --git a/sci-mathematics/dataplot/Manifest b/sci-mathematics/dataplot/Manifest new file mode 100644 index 000000000000..a0a5b95d887a --- /dev/null +++ b/sci-mathematics/dataplot/Manifest @@ -0,0 +1,20 @@ +-----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 configure.ac.20080225 2967 RMD160 7e5f8a192fba3e5e4441b912bec60e97f3c3c981 SHA1 2a8ea0e90240071cd3d80d1af88fc54266ad9a07 SHA256 a89eade674ffaf683b73537133e56df6d6ccc3093ea78c783049400a845eec85 +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 dpsrc.02_25_2008.tar.gz 6399167 RMD160 ed14f8ceb225e86f25026916ab4934a140f602ae SHA1 f1023d99ec7d2a64611dabedfbc5ad6f16e67cf7 SHA256 794bedcc48cf444c5813f864f4bacb158474d450337279edaf7fba1055c552c6 +EBUILD dataplot-20080225.ebuild 2748 RMD160 b26f0fc4cb16332db3d59d213b589b899ce7e16b SHA1 96e120566142e6c2dfdf4783328b90823350c7e0 SHA256 263408c3f881bac45200042ddb93d3d3cb1c984633e29bbba4c694af61878805 +MISC ChangeLog 3913 RMD160 5c6456f02333b6639e8d3af1fe466d039e6fcecb SHA1 ba6b40324af8cd41d2acb9f23b8ad0c9773a9220 SHA256 fbd4196f534f80ed0f5459fc20a058e6bdce00d7302171f51ee83ec9efd35692 +MISC metadata.xml 822 RMD160 9b2e00c3f86eb984e63f2f8e5ff6544c4ce0d63b SHA1 22a1640afdc42c3cc4f446c648fa4ec54476f026 SHA256 47370a4178ddaba52cfa81eba8e9f42a7100107ea059a94b349ebd1bfe682ecb +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkhGw3gACgkQ1ycZbhPLE2ALNACgoJIcrowvkEG+c0hUOwn8enpp +fXAAoK7jCTA/PAnQlYhFIdMkPI0tvzhv +=LbwW +-----END PGP SIGNATURE----- diff --git a/sci-mathematics/dataplot/dataplot-20080225.ebuild b/sci-mathematics/dataplot/dataplot-20080225.ebuild new file mode 100644 index 000000000000..f99d5a0b5681 --- /dev/null +++ b/sci-mathematics/dataplot/dataplot-20080225.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/dataplot/dataplot-20080225.ebuild,v 1.1 2008/06/04 16:31:40 bicatali Exp $ + +inherit eutils toolchain-funcs flag-o-matic autotools fortran + +# DAY MONTH YEAR +MY_PV=${PV:4:2}_${PV:6:2}_${PV:0:4} +MY_P=dpsrc.${MY_PV} +MY_P_AUX=dplib.${MY_PV} + +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/dpsrc.${MY_PV}.tar.gz + ftp://ftp.nist.gov/pub/dataplot/unix/dplib.${MY_PV}.tar.gz" + + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples gd gs opengl X" + +COMMON_DEPEND="opengl? ( virtual/opengl ) + gd? ( media-libs/gd ) + gs? ( virtual/ghostscript media-libs/gd )" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig" +RDEPEND="${COMMON_DEPEND} + X? ( x11-misc/xdg-utils )" + +S="${WORKDIR}/${MY_P}" +S_AUX="${WORKDIR}/${MY_P_AUX}" + +pkg_setup() { + #Dataplot requires media-libs/gd to be built with USE="png jpeg" + if use gd || use gs; then + if ! built_with_use -a media-libs/gd png jpeg; then + eerror "media-libs/gd is not compiled with USE=\"png jpeg\"" + eerror "Please recompile media-libs/gd, ensuring USE=\"png jpeg\"" + die + fi + fi + ##FIXME: Just gfortran for now, I'll get to testing g77 later + FORTRAN="gfortran" + fortran_pkg_setup +} + +src_unpack() { + # unpacking and renaming because + # upstream does not use directories + mkdir "${S_AUX}" && cd "${S_AUX}" + unpack ${MY_P_AUX}.tar.gz + mkdir ${MY_P} && cd "${S}" + unpack ${MY_P}.tar.gz + + # autotoolization: need to fix a few files with + # hardcoded directories (will be fixed with autoconf) + mv DPCOPA.INC DPCOPA.INC.in + mv dp1_linux.f dp1_linux.f.in + mv dp1_linux_64.f dp1_linux_64.f.in + # various fixes (mainly syntax) + epatch "${FILESDIR}"/dpsrc-patchset-${PV}.patch + # some fortran patches + epatch "${FILESDIR}"/dpsrc-dp1patches-${PV}.patch + cp "${FILESDIR}"/Makefile.am.${PV} Makefile.am + cp "${FILESDIR}"/configure.ac.${PV} configure.ac + eautoreconf +} + +src_compile() { + econf \ + $(use_enable gd) \ + $(use_enable gs) \ + $(use_enable opengl) \ + $(use_enable X) || die "Econf failed" + + emake || die "Make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "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/90dataplot b/sci-mathematics/dataplot/files/90dataplot new file mode 100644 index 000000000000..9bb5e1dc56d5 --- /dev/null +++ b/sci-mathematics/dataplot/files/90dataplot @@ -0,0 +1,3 @@ +DATAPLOT_FILES="/usr/share/dataplot" +DATAPLOT_WEB="OFF" +BROWSER="xdg-open" diff --git a/sci-mathematics/dataplot/files/Makefile.am.20080225 b/sci-mathematics/dataplot/files/Makefile.am.20080225 new file mode 100644 index 000000000000..29dd418b2012 --- /dev/null +++ b/sci-mathematics/dataplot/files/Makefile.am.20080225 @@ -0,0 +1,45 @@ +bin_PROGRAMS = dataplot +dataplot_SOURCES = dp1_fdriv.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 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 + +if ENABLE_GS +dataplot_SOURCES += gs_src.c +endif + +dataplot_CFLAGS = @GL_CFLAGS@ +dataplot_LDADD = @GD_LIBS@ @GL_LIBS@ @X11_LIBS@ $(FLIBS) + +# 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 $@ $< diff --git a/sci-mathematics/dataplot/files/configure.ac.20080225 b/sci-mathematics/dataplot/files/configure.ac.20080225 new file mode 100644 index 000000000000..1051b9dbd8b8 --- /dev/null +++ b/sci-mathematics/dataplot/files/configure.ac.20080225 @@ -0,0 +1,97 @@ +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*) fdriv=dp1_linux + MAXOBV=100000 ;; + *64*linux*) fdriv=dp1_linux_64 + MAXOBV=1000000 ;; + *-*-*) fdriv=dp1 ;; + *linux*) HOST=LINUX;; +esac +AC_CONFIG_LINKS([dp1_fdriv.f:$fdriv.f]) +AC_SUBST(MAXOBV) +AC_SUBST(HOST) + +AC_ARG_ENABLE(gd, + [AS_HELP_STRING([--enable-gd], [Enable the gd device driver])], + [enable_gd=$enableval], + [enable_gd=no]) + +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]) + +AC_ARG_ENABLE(gs, + [AS_HELP_STRING([--enable-gs], [Enable the Ghostscript device driver])], + [enable_gs=$enableval], + [enable_gs=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" ]) + +if test x"$enable_gs" = x"yes"; then + AC_CHECK_PROG(enable_gs, [gs],, + [AC_MSG_ERROR([Ghostscript driver requested but gs not found])]) + AC_CHECK_PROG(enable_gd, [gdlib-config],, + [AC_MSG_ERROR([Ghostscript driver requested, which requires gd, + but gdlib-config not found])]) + GS_LIBS="-lgs `gdlib-config --libs` -lgd" + GS_CFLAGS="-lgs `gdlib-config --cflags`" + AC_SUBST(GS_LIBS) + AC_SUBST(GS_CFLAGS) +fi +AM_CONDITIONAL(ENABLE_GS, [ test x"$enable_gs" = x"yes" ]) + +AC_CONFIG_FILES([Makefile DPCOPA.INC $fdriv.f]) +AC_OUTPUT diff --git a/sci-mathematics/dataplot/files/dpsrc-dp1patches-20080225.patch b/sci-mathematics/dataplot/files/dpsrc-dp1patches-20080225.patch new file mode 100644 index 000000000000..3c7cdeb4ced3 --- /dev/null +++ b/sci-mathematics/dataplot/files/dpsrc-dp1patches-20080225.patch @@ -0,0 +1,88 @@ +--- dpsrc-orig/dp1_linux_64.f.in 2007-08-23 18:19:57.000000000 -0400 ++++ dpsrc/dp1_linux_64.f.in 2008-04-30 08:02:18.000000000 -0400 +@@ -1550,7 +1550,7 @@ + DATA D2MACH(4) / 1.9259299443872358530559779425849273D-034 / + DATA D2MACH(5) / 0.30102999566398119521373889472449302 / + C +- IHOST1='SUN ' ++ IHOST1='@HOST@' + IHOST2=' ' + IHMOD1='3 ' + IHMOD2=' ' +@@ -2688,7 +2688,7 @@ + 1 (IHOST1.EQ.'SGI ') .OR. + 1 (IHOST1.EQ.'HP-9') .OR. + 1 (IHOST1.EQ.'AIX ') .OR. +- 1 (IHOST1.EQ.'LINU') .OR. ++ 1 (IHOST1.EQ.'LINUX') .OR. + 1 (IOPSY1.EQ.'UNIX') + 1 )THEN + CCCCC FOLLOWING SECTION ADDED FEBRUARY 1998. +@@ -2704,7 +2704,7 @@ + UNIXPV='DATAPLOT_FILES' + CALL getenv(UNIXPV,UNIXPN) + IF(UNIXPN.EQ.' ')THEN +- IPATH1='/usr/local/lib/dataplot/' ++ IPATH1='@datadir@/dataplot/' + NCP1=24 + UNIXPN=' ' + UNIXPN(1:NCP1)=IPATH1(1:NCP1) +@@ -2724,8 +2724,6 @@ + ENDIF + CCCCC AUGUST 1996. TO MAKE SEARCH OF SUB-DIRECTORIES WORK, SET PATH + CCCCC TO BE EMPTY. +- IPATH1=' ' +- NCP1=0 + CCCCC JUNE 1996. FOR UNIX SYSTEMS, CHECK FOR EXISTENCE OF + CCCCC "HOME" ENVIRONMENT VARIABLE. READ DPLOGF FROM USER'S HOME + CCCCC DIRECTORY IF FOUND. OTHERWISE, CURRENT DIRECTORY. +--- dpsrc-orig/dp1_linux.f.in 2007-08-23 18:19:27.000000000 -0400 ++++ dpsrc/dp1_linux.f.in 2008-04-30 08:02:46.000000000 -0400 +@@ -1481,7 +1481,7 @@ + DATA D2MACH(4) / 2.2204460492503D-16 / + DATA D2MACH(5) / 0.3010299956639812D0 / + CC +- IHOST1='SUN ' ++ IHOST1='@HOST@' + IHOST2=' ' + IHMOD1='3 ' + IHMOD2=' ' +@@ -2619,7 +2619,7 @@ + 1 (IHOST1.EQ.'SGI ') .OR. + 1 (IHOST1.EQ.'HP-9') .OR. + 1 (IHOST1.EQ.'AIX ') .OR. +- 1 (IHOST1.EQ.'LINU') .OR. ++ 1 (IHOST1.EQ.'LINUX') .OR. + 1 (IOPSY1.EQ.'UNIX') + 1 )THEN + CCCCC FOLLOWING SECTION ADDED FEBRUARY 1998. +@@ -2635,7 +2635,7 @@ + UNIXPV='DATAPLOT_FILES' + CALL getenv(UNIXPV,UNIXPN) + IF(UNIXPN.EQ.' ')THEN +- IPATH1='/usr/local/lib/dataplot/' ++ IPATH1='@datadir@/dataplot' + NCP1=24 + UNIXPN=' ' + UNIXPN(1:NCP1)=IPATH1(1:NCP1) +@@ -2655,8 +2655,6 @@ + ENDIF + CCCCC AUGUST 1996. TO MAKE SEARCH OF SUB-DIRECTORIES WORK, SET PATH + CCCCC TO BE EMPTY. +- IPATH1=' ' +- NCP1=0 + CCCCC JUNE 1996. FOR UNIX SYSTEMS, CHECK FOR EXISTENCE OF + CCCCC "HOME" ENVIRONMENT VARIABLE. READ DPLOGF FROM USER'S HOME + CCCCC DIRECTORY IF FOUND. OTHERWISE, CURRENT DIRECTORY. +--- dpsrc-orig/DPCOPA.INC.in 2008-02-24 12:52:09.000000000 -0500 ++++ dpsrc/DPCOPA.INC.in 2008-04-28 14:16:02.000000000 -0400 +@@ -64,7 +64,7 @@ + CCCCC PARAMETER (MAXOBW=82000) + CCCCC PARAMETER (MAXPOP=16400) + C +- PARAMETER (MAXOBV=100000) ++ PARAMETER (MAXOBV=@MAXOBV@) + PARAMETER (MAXOBW=10*MAXOBV) + PARAMETER (MAXPOP=2*MAXOBV) + C + diff --git a/sci-mathematics/dataplot/files/dpsrc-patchset-20080225.patch b/sci-mathematics/dataplot/files/dpsrc-patchset-20080225.patch new file mode 100644 index 000000000000..d633dff3d068 --- /dev/null +++ b/sci-mathematics/dataplot/files/dpsrc-patchset-20080225.patch @@ -0,0 +1,111 @@ +diff -Naur dpsrc-orig/gl_src.c dpsrc/gl_src.c +--- dpsrc-orig/gl_src.c 2001-02-28 16:45:56.000000000 -0500 ++++ dpsrc/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); +diff -Naur dpsrc-orig/x11_src.c dpsrc/x11_src.c +--- dpsrc-orig/x11_src.c 2007-08-23 13:57:06.000000000 -0400 ++++ dpsrc/x11_src.c 2008-04-10 17:02:18.000000000 -0400 +@@ -214,7 +214,7 @@ + /* add following 2 lines MAY 1995 */ + #include <stdlib.h> + #include <math.h> +-#include <strings.h> ++#include <string.h> + + /* global definitions */ + +@@ -507,7 +507,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 - xerase has not been called, 1 - xerase has been called */ ++static int GRAPH_FLAG = 0; /* 0 - xerase has not been called, 1 - xerase has been called */ + int WIDTH_CURRENT; /* current line width */ + int LINE_STYLE_CURRENT; /* current line style */ + int CAP_STYLE_CURRENT; /* current cap style */ +--- dpsrc-orig/gs_src.c 2002-02-20 13:28:36.000000000 -0500 ++++ dpsrc/gs_src.c 2008-04-28 08:54:28.000000000 -0400 +@@ -111,9 +111,9 @@ + int max_colors; /* maximum colors actually allocated */ + int CURRENT_COLOR; /* Define current color */ + int CURRENT_LINE_STYLE[12]; /* Define current line style */ +-int NPTS_STYLE = 0; /* Number of points in style */ ++static int NPTS_STYLE = 0; /* Number of points in style */ + int color_table[MAX_COLORS + 100]; /* color table */ +-int red[MAX_COLORS] = { ++static int red[MAX_COLORS] = { + /* 0 - 7 */ 255, 0, 255, 0, 0, 255, 255, 0, + /* 8 - 15 */ 255, 154, 0, 173, 138, 208, 47, 211, + /* 16 - 23 */ 127, 165, 95, 255, 100, 85, 153, 72, +@@ -127,7 +127,7 @@ + /* 80 - 87 */ 238, 205, 139, 238, 205, 139, 238, 205, + /* 88 - 88 */ 139 + }; +-int green[MAX_COLORS] = { ++static int green[MAX_COLORS] = { + /* 0 - 7 */ 255, 0, 0, 0, 255, 0, 165, 255, + /* 8 - 15 */ 255, 205, 100, 216, 43, 32, 79, 211, + /* 16 - 23 */ 255, 42, 158, 127, 149, 107, 50, 61, +@@ -141,7 +141,7 @@ + /* 80 - 87 */ 154, 133, 90, 0, 0, 0, 0, 0, + /* 88 - 88 */ 0 + }; +-int blue[MAX_COLORS] = { ++static int blue[MAX_COLORS] = { + /* 0 - 7 */ 255, 0, 0, 255, 0, 255, 0, 255, + /* 8 - 15 */ 0, 50, 0, 230, 226, 144, 79, 211, + /* 16 - 23 */ 212, 42, 160, 80, 237, 47, 204, 139, +@@ -158,7 +158,7 @@ + + /* flags for current attribute settings */ + static int OPEN_FLAG = 0; /* 0 - GS closed, 1 - GS open */ +-int DEVICE_TYPE = 0; /* define device */ ++static int DEVICE_TYPE = 0; /* define device */ + /* 1 - jpeg */ + /* 2 - png */ + /* 3 - windows bmp */ + diff --git a/sci-mathematics/dataplot/metadata.xml b/sci-mathematics/dataplot/metadata.xml new file mode 100644 index 000000000000..e4db453d992d --- /dev/null +++ b/sci-mathematics/dataplot/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-mathematics</herd> +<maintainer> + <email>gentoofan23@gmail.com</email> + <name>Thomas Anderson</name> + <description>Third party maintainer, through the sci-mathematics herd + as a proxy + </description> +</maintainer> +<longdescription lang="en"> + Dataplot is a software system for scientific visualization, + statistical analysis, and non-linear modeling. The target Dataplot + user is the researcher and analyst engaged in the characterization, + modeling, visualization, analysis, monitoring, and optimization of + scientific and engineering processes (original version:1978). + Gentoo version adds autotools to facilitate building and robustness. +</longdescription> +</pkgmetadata> |