Moved from app-sci/udunits to sci-libs/udunits.
authorOlivier Fisette <ribosome@gentoo.org>
Tue, 28 Dec 2004 19:24:10 +0000 (19:24 +0000)
committerOlivier Fisette <ribosome@gentoo.org>
Tue, 28 Dec 2004 19:24:10 +0000 (19:24 +0000)
13 files changed:
sci-libs/udunits/ChangeLog [new file with mode: 0644]
sci-libs/udunits/Manifest [new file with mode: 0644]
sci-libs/udunits/files/digest-udunits-1.12.0 [new file with mode: 0644]
sci-libs/udunits/files/digest-udunits-1.12.1 [new file with mode: 0644]
sci-libs/udunits/files/digest-udunits-1.12.3 [new file with mode: 0644]
sci-libs/udunits/files/udunits_configure_in.patch [new file with mode: 0644]
sci-libs/udunits/files/udunits_customize.patch [new file with mode: 0644]
sci-libs/udunits/files/udunits_lib_make.patch [new file with mode: 0644]
sci-libs/udunits/files/udunits_master_mk.patch [new file with mode: 0644]
sci-libs/udunits/metadata.xml [new file with mode: 0644]
sci-libs/udunits/udunits-1.12.0.ebuild [new file with mode: 0644]
sci-libs/udunits/udunits-1.12.1.ebuild [new file with mode: 0644]
sci-libs/udunits/udunits-1.12.3.ebuild [new file with mode: 0644]

diff --git a/sci-libs/udunits/ChangeLog b/sci-libs/udunits/ChangeLog
new file mode 100644 (file)
index 0000000..c91e424
--- /dev/null
@@ -0,0 +1,58 @@
+# ChangeLog for app-sci/udunits
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/udunits/ChangeLog,v 1.1 2004/12/28 19:24:10 ribosome Exp $
+
+*udunits-1.12.0 (28 Dec 2004)
+
+  28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+  +files/udunits_configure_in.patch, +files/udunits_customize.patch,
+  +files/udunits_lib_make.patch, +files/udunits_master_mk.patch,
+  +udunits-1.12.0.ebuild, +udunits-1.12.1.ebuild, +udunits-1.12.3.ebuild:
+  Moved from app-sci/udunits to sci-libs/udunits.
+
+*udunits-1.12.3 (11 Dec 2004)
+
+  11 Dec 2004; Steve Arnold <nerdboy@gentoo.org> +udunits-1.12.3.ebuild:
+  added latest 1.12.3 to ~arch
+
+  11 Dec 2004; Bryan Ã˜stergaard <kloeri@gentoo.org> udunits-1.12.1.ebuild:
+  Stable on alpha.
+
+  08 Nov 2004; Steve Arnold <nerdboy@gentoo.org> udunits-1.12.1.ebuild:
+  fixed perl test issues and added ~amd64 to keywords; all udunits libs and
+  language interfaces should be correct now.
+
+  30 Oct 2004; Olivier Fisette <ribosome@gentoo.org> udunits-1.12.0.ebuild:
+  Q.A.: Removed RDEPEND=$DEPEND.
+
+  06 Jun 2004; Steve Arnold <nerdboy@gentoo.org> udunits-1.12.1.ebuild:
+  bump to x86, corrected depend, added einfo
+
+  12 May 2004; Bryan Ã˜stergaard <kloeri@gentoo.org> udunits-1.12.0.ebuild:
+  Stable on alpha.
+
+  08 May 2004; Steve Arnold <nerdboy@gentoo.org> udunits-1.12.0.ebuild:
+  back-ported fix for build error (fortran interface still incomplete)
+
+*udunits-1.12.1 (08 May 2004)
+
+  08 May 2004; Steve Arnold <nerdboy@gentoo.org> metadata.xml,
+  udunits-1.12.1.ebuild:
+  new minor source rev bump to fix build error, fixed Fortran interface
+
+  25 Apr 2004; Aron Griffis <agriffis@gentoo.org> udunits-1.12.0.ebuild:
+  Add die following econf for bug 48950
+
+  19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> udunits-1.12.0.ebuild:
+  Corrected IUSE.
+
+  21 Feb 2004; Michael Sterrett <mr_bones_@gentoo.org> udunits-1.12.0.ebuild:
+  header fix; inherit eutils for epatch; arm needs deps first
+
+  14 Dec 2003; <nerdboy@gentoo.org> udunits-1.12.0.ebuild:
+  bumped to x86
+
+*udunits-1.12.0 (02 Nov 2003)
+
+  02 Nov 2003; <nerdboy@gentoo.org> udunits-1.12.0.ebuild:
+  new ebuild for the Unidata units library and perl module
diff --git a/sci-libs/udunits/Manifest b/sci-libs/udunits/Manifest
new file mode 100644 (file)
index 0000000..3bf1ae0
--- /dev/null
@@ -0,0 +1,12 @@
+MD5 fc9a1a3e7b2c02399d06b6f49b9c90c3 ChangeLog 1865
+MD5 176a9013a3fbf4d813fbe2ae5c54b409 metadata.xml 583
+MD5 ddfce36f93129e93d379bdda1cc19a00 udunits-1.12.0.ebuild 1853
+MD5 c8f20b665cc398db1a0d42f95cb79201 udunits-1.12.1.ebuild 2005
+MD5 d28dde8028db0a6c07319d851a7e4de8 udunits-1.12.3.ebuild 2008
+MD5 cea4faba4689abec3805139902ddd0d2 files/digest-udunits-1.12.0 65
+MD5 3fdb828dd9ab28f5f06e2456b1c96c65 files/digest-udunits-1.12.1 65
+MD5 922ab296149176fd2c78ebf4654916ee files/udunits_configure_in.patch 241
+MD5 3dc5d09377cb0326220d293cec108569 files/udunits_customize.patch 375
+MD5 5b85e692f66a2a74d7c4e1d74a729e23 files/udunits_lib_make.patch 895
+MD5 c4058b93662ad2beab9763c8120c85f4 files/udunits_master_mk.patch 1234
+MD5 0704e3ec953527a8ee2b89a9ad3dae8c files/digest-udunits-1.12.3 65
diff --git a/sci-libs/udunits/files/digest-udunits-1.12.0 b/sci-libs/udunits/files/digest-udunits-1.12.0
new file mode 100644 (file)
index 0000000..c480378
--- /dev/null
@@ -0,0 +1 @@
+MD5 2be651b0d39cddc839f64d58171f34d6 udunits-1.12.0.tar.Z 364397
diff --git a/sci-libs/udunits/files/digest-udunits-1.12.1 b/sci-libs/udunits/files/digest-udunits-1.12.1
new file mode 100644 (file)
index 0000000..8885413
--- /dev/null
@@ -0,0 +1 @@
+MD5 3d83c6bd9b0b0194bba13e8f1fb7e403 udunits-1.12.1.tar.Z 365873
diff --git a/sci-libs/udunits/files/digest-udunits-1.12.3 b/sci-libs/udunits/files/digest-udunits-1.12.3
new file mode 100644 (file)
index 0000000..d0ab7e7
--- /dev/null
@@ -0,0 +1 @@
+MD5 5f9283ac4a4edcecc6547355a4dadb38 udunits-1.12.3.tar.Z 422795
diff --git a/sci-libs/udunits/files/udunits_configure_in.patch b/sci-libs/udunits/files/udunits_configure_in.patch
new file mode 100644 (file)
index 0000000..bf77a4f
--- /dev/null
@@ -0,0 +1,10 @@
+--- configure.in.orig  2001-06-11 11:23:56.000000000 -0700
++++ configure.in       2003-10-28 10:30:18.000000000 -0800
+@@ -43,7 +43,6 @@
+ UC_FINISH(
+     Makefile
+     lib/Makefile
+-    lib/udunits.inc
+     udunits/Makefile
+     perl/Makefile.PL
+ )
diff --git a/sci-libs/udunits/files/udunits_customize.patch b/sci-libs/udunits/files/udunits_customize.patch
new file mode 100644 (file)
index 0000000..a7a5f9b
--- /dev/null
@@ -0,0 +1,12 @@
+--- CUSTOMIZE.orig      2004-05-08 14:04:53.199958510 -0700
++++ CUSTOMIZE   2004-05-08 13:58:48.843900138 -0700
+@@ -33,3 +33,9 @@
+ # Ancillary libraries.  SunOS 4 user's might need something like the
+ # following in order to resolve strerror() in the perl/ subdirectory.
+ # LIBS='-L/usr/lang/SC3.0.1/lib -lansi'
++
++FC=g77
++CPPFLAGS=-Df2cFortran
++CC=gcc
++CXX=g++
++LD_MATH=-lm
diff --git a/sci-libs/udunits/files/udunits_lib_make.patch b/sci-libs/udunits/files/udunits_lib_make.patch
new file mode 100644 (file)
index 0000000..f1dd947
--- /dev/null
@@ -0,0 +1,30 @@
+--- lib/Makefile.in.orig       1997-04-30 14:49:58.000000000 -0700
++++ lib/Makefile.in    2003-10-28 12:05:06.000000000 -0800
+@@ -6,15 +6,15 @@
+ 
+ LIBRARY               = udunits
+ 
+-FLEX          = /usr/local/gnu/bin/flex
+-cpp_path      = -DUT_DEFAULT_PATH='"$(prefix)/etc/udunits.dat"'
++FLEX          = /usr/bin/flex
++cpp_path      = -DUT_DEFAULT_PATH='"/etc/udunits.dat"'
+ CPPFLAGS      = -I../port/misc -I../port/cfortran $(cpp_path) @CPPFLAGS@
+ CFLAGS                = @CFLAGS@
+ 
+ OBJS          = udunits.o
+ LIBOBJS               = utlib.o utparse.o utscan.o udalloc.o
+ 
+-HEADERS               = udunits.h udunits.inc
++HEADERS               = udunits.h
+ ETCFILES      = udunits.dat
+ MANUALS               = udunits.3 udunits.3f
+ prefix                = ../..
+@@ -27,7 +27,7 @@
+ MANIFEST      = Makefile.in \
+                 depend \
+                 udunits.3 udunits.3f udunits.3fi testcal2.f \
+-                udunits.dat udunits.h udunits.inc utlib.c \
++                udunits.dat udunits.h utlib.c \
+                 utparse.y utparse.c utparse.h \
+                 utprivate.h utscan.h utscan.l utscan.c
+ 
diff --git a/sci-libs/udunits/files/udunits_master_mk.patch b/sci-libs/udunits/files/udunits_master_mk.patch
new file mode 100644 (file)
index 0000000..47a3f5c
--- /dev/null
@@ -0,0 +1,39 @@
+--- port/master.mk.in.orig     1998-11-25 08:26:56.000000000 -0800
++++ port/master.mk.in  2003-11-02 17:47:46.000000000 -0800
+@@ -351,7 +351,7 @@
+ ############################################################################
+ # `etc/' files:
+ ############################################################################
+-ETCDIR        = $(prefix)/etc
++ETCDIR        = /etc
+ ETCFILE       = dummy-etcfile         # to silence GNU make(1)
+ 
+ installed_etcfiles:
+@@ -372,7 +372,7 @@
+ installed_etcfile:    $(ETCDIR)/$(ETCFILE)
+ 
+ $(ETCDIR)/dummy $(ETCDIR)/$(ETCFILE): $(ETCDIR) $(ETCFILE)
+-      cp $(ETCFILE) $@
++      cp $(ETCFILE) ${D}$@
+ 
+ dummy_etcdir $(ETCDIR):
+       mkdir -p $@
+@@ -382,7 +382,7 @@
+ ############################################################################
+ # Manual Pages:
+ ############################################################################
+-MANDIR                = $(prefix)/man
++MANDIR                = $(prefix)/share/man
+ MANUAL                = dummy-manual  # to slience GNU make
+ WHATIS                = @WHATIS@
+ # The following macro should be empty on systems that don't
+@@ -443,9 +443,6 @@
+               else \
+                   mkdir $(MANDIR)$$subchapter; \
+               fi; \
+-              rm -f $(MANDIR)$$subchapter/$(MANUAL); \
+-              ln -s ../`basename $(MANDIR)`/$(MANUAL) \
+-                  $(MANDIR)$$subchapter/$(MANUAL); \
+               ;; \
+       esac
+ 
diff --git a/sci-libs/udunits/metadata.xml b/sci-libs/udunits/metadata.xml
new file mode 100644 (file)
index 0000000..a03757e
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+  <email>nerdboy@gentoo.org</email>
+  <name>Steve Arnold</name>
+  <description>Primary Maintainer</description>
+</maintainer>
+<longdescription>
+    This is the Unidata Units library, which supports conversion of unit
+    specifications between formatted and binary forms, arithmetic
+    manipulation of unit specifications, and conversion of values between
+    compatible scales of measurement.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-libs/udunits/udunits-1.12.0.ebuild b/sci-libs/udunits/udunits-1.12.0.ebuild
new file mode 100644 (file)
index 0000000..c951018
--- /dev/null
@@ -0,0 +1,67 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/udunits/udunits-1.12.0.ebuild,v 1.1 2004/12/28 19:24:10 ribosome Exp $
+
+inherit eutils
+
+# This is the Unidata Units library, which supports conversion of unit 
+# specifications between formatted and binary forms, arithmetic 
+# manipulation of unit specifications, and conversion of values between 
+# compatible scales of measurement.
+
+#inherit perl-module
+
+IUSE=""
+S=${WORKDIR}/${P}/src
+SP=${WORKDIR}/${P}/src/perl
+DESCRIPTION="The UCAR/Unidata Units library"
+HOMEPAGE="http://www.unidata.ucar.edu/packages/udunits/"
+SRC_URI="ftp://unidata.ucar.edu/pub/udunits/udunits-${PV}.tar.Z"
+
+SLOT="0"
+LICENSE="UCAR-Unidata"
+KEYWORDS="x86 ~ppc ~sparc alpha ~mips ~hppa"
+
+DEPEND="dev-lang/perl"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/udunits_configure_in.patch
+       epatch ${FILESDIR}/udunits_lib_make.patch
+       epatch ${FILESDIR}/udunits_master_mk.patch
+}
+
+src_compile() {
+       export CPPFLAGS=-Df2cFortran
+       econf || die "econf failed"
+       cd perl
+       perl Makefile.PL PREFIX=${D}/usr
+       cd ..
+       make ld_math=-lm || die
+#      make test || die
+}
+
+src_install() {
+       sed "s?/usr?${D}/usr?" Makefile > Makefile.install
+       emake -f Makefile.install install
+       dodir /etc /usr/share/man/man3 /usr/share/man/man3f
+       insinto /etc
+       insopts -m 644
+       doins lib/udunits.dat
+       insinto /usr/share/man/man3
+       doins lib/udunits.3
+       insinto /usr/share/man/man3f
+       doins lib/udunits.3f
+
+       cd perl
+       make PREFIX=${D}/usr install INSTALLSITEMAN1DIR=${D}/usr/share/man/man1
+       cd ..
+       find ${D} -type f -a \( -name perllocal.pod -o -name .packlist \
+           -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
+       find ${D} -type d -depth -exec rmdir {} 2>/dev/null ';'
+       chmod -R u+w ${D}/*
+
+       dodoc COPYRIGHT README RELEASE_NOTES VERSION CUSTOMIZE INSTALL
+}
+
diff --git a/sci-libs/udunits/udunits-1.12.1.ebuild b/sci-libs/udunits/udunits-1.12.1.ebuild
new file mode 100644 (file)
index 0000000..6657822
--- /dev/null
@@ -0,0 +1,81 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/udunits/udunits-1.12.1.ebuild,v 1.1 2004/12/28 19:24:10 ribosome Exp $
+
+inherit eutils flag-o-matic
+
+IUSE=""
+
+S=${WORKDIR}/${P}/src
+SP=${WORKDIR}/${P}/src/perl
+DESCRIPTION="The UCAR/Unidata Units library"
+HOMEPAGE="http://www.unidata.ucar.edu/packages/udunits/"
+SRC_URI="ftp://unidata.ucar.edu/pub/udunits/udunits-${PV}.tar.Z"
+
+SLOT="0"
+LICENSE="UCAR-Unidata"
+KEYWORDS="x86 ~amd64 ~ppc ~sparc alpha ~mips ~hppa"
+
+DEPEND="dev-lang/perl
+       sys-apps/sed"
+
+RDEPEND="dev-lang/perl"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/udunits_customize.patch || die "epatch failed"
+}
+
+src_compile() {
+       export CPPFLAGS="-Df2cFortran -D_POSIX_SOURCE"
+       append-flags -fPIC
+       econf || die "econf failed"
+
+       cd lib
+       emake || die
+       cd ..
+
+       cd perl
+       perl Makefile.PL PREFIX=${D}/usr
+       cd ..
+
+       emake || die
+       emake test || die
+}
+
+src_install() {
+       sed "s?/usr?${D}/usr?" Makefile > Makefile.install
+       emake -f Makefile.install install
+
+       dodir /etc /usr/share/man/man3 /usr/share/man/man3f
+
+       insinto /etc
+       insopts -m 644
+       doins lib/udunits.dat
+
+       insinto /usr/share/man/man3
+       doins lib/udunits.3
+       insinto /usr/share/man/man3f
+       doins lib/udunits.3f
+
+       cd perl
+       make PREFIX=${D}/usr install INSTALLSITEMAN1DIR=${D}/usr/share/man/man1
+       cd ..
+
+       find ${D} -type f -a \( -name perllocal.pod -o -name .packlist \
+               -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
+       find ${D} -type d -depth -exec rmdir {} 2>/dev/null ';'
+
+       chmod -R u+w ${D}/*
+
+       dodoc COPYRIGHT README RELEASE_NOTES VERSION CUSTOMIZE INSTALL
+}
+
+pkg_postinst() {
+       ewarn "This package requires a Fortran compiler for maximum utility."
+       ewarn "For now, make sure you have at least g77 for the f77 interface."
+       ewarn "The internal configure should detect many f77 compilers, however,"
+       ewarn "if you have the PG compiler you will need to change the above"
+       ewarn "preprocessor macro to something like -Dpgifortran."
+}
diff --git a/sci-libs/udunits/udunits-1.12.3.ebuild b/sci-libs/udunits/udunits-1.12.3.ebuild
new file mode 100644 (file)
index 0000000..bde9444
--- /dev/null
@@ -0,0 +1,81 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/udunits/udunits-1.12.3.ebuild,v 1.1 2004/12/28 19:24:10 ribosome Exp $
+
+inherit eutils flag-o-matic
+
+IUSE=""
+
+S=${WORKDIR}/${P}/src
+SP=${WORKDIR}/${P}/src/perl
+DESCRIPTION="The UCAR/Unidata Units library"
+HOMEPAGE="http://www.unidata.ucar.edu/packages/udunits/"
+SRC_URI="ftp://unidata.ucar.edu/pub/udunits/udunits-${PV}.tar.Z"
+
+SLOT="0"
+LICENSE="UCAR-Unidata"
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha ~mips ~hppa"
+
+DEPEND="dev-lang/perl
+       sys-apps/sed"
+
+RDEPEND="dev-lang/perl"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/udunits_customize.patch || die "epatch failed"
+}
+
+src_compile() {
+       export CPPFLAGS="-Df2cFortran -D_POSIX_SOURCE"
+       append-flags -fPIC
+       econf || die "econf failed"
+
+       cd lib
+       emake || die
+       cd ..
+
+       cd perl
+       perl Makefile.PL PREFIX=${D}/usr
+       cd ..
+
+       emake || die
+       emake test || die
+}
+
+src_install() {
+       sed "s?/usr?${D}/usr?" Makefile > Makefile.install
+       emake -f Makefile.install install
+
+       dodir /etc /usr/share/man/man3 /usr/share/man/man3f
+
+       insinto /etc
+       insopts -m 644
+       doins lib/udunits.dat
+
+       insinto /usr/share/man/man3
+       doins lib/udunits.3
+       insinto /usr/share/man/man3f
+       doins lib/udunits.3f
+
+       cd perl
+       make PREFIX=${D}/usr install INSTALLSITEMAN1DIR=${D}/usr/share/man/man1
+       cd ..
+
+       find ${D} -type f -a \( -name perllocal.pod -o -name .packlist \
+               -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
+       find ${D} -type d -depth -exec rmdir {} 2>/dev/null ';'
+
+       chmod -R u+w ${D}/*
+
+       dodoc COPYRIGHT README RELEASE_NOTES VERSION CUSTOMIZE INSTALL
+}
+
+pkg_postinst() {
+       ewarn "This package requires a Fortran compiler for maximum utility."
+       ewarn "For now, make sure you have at least g77 for the f77 interface."
+       ewarn "The internal configure should detect many f77 compilers, however,"
+       ewarn "if you have the PG compiler you will need to change the above"
+       ewarn "preprocessor macro to something like -Dpgifortran."
+}