diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2013-04-23 15:57:21 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2013-04-23 15:57:21 +0000 |
commit | 607745c248d2c14ea28733e81d420bf149a2cb0b (patch) | |
tree | d5a6b19112e1e08bd9fb3f87f3711b8341c2aa9a /sci-astronomy | |
parent | Added SOFA license (diff) | |
download | historical-607745c248d2c14ea28733e81d420bf149a2cb0b.tar.gz historical-607745c248d2c14ea28733e81d420bf149a2cb0b.tar.bz2 historical-607745c248d2c14ea28733e81d420bf149a2cb0b.zip |
Initial import
Package-Manager: portage-2.2.01.21890-prefix/cvs/Linux x86_64
Manifest-Sign-Key: 0x13CB1360
Diffstat (limited to 'sci-astronomy')
-rw-r--r-- | sci-astronomy/sofa_c/ChangeLog | 9 | ||||
-rw-r--r-- | sci-astronomy/sofa_c/Manifest | 15 | ||||
-rw-r--r-- | sci-astronomy/sofa_c/files/sofa_c-makefile.patch | 102 | ||||
-rw-r--r-- | sci-astronomy/sofa_c/metadata.xml | 23 | ||||
-rw-r--r-- | sci-astronomy/sofa_c/sofa_c-20120301a.ebuild | 38 |
5 files changed, 187 insertions, 0 deletions
diff --git a/sci-astronomy/sofa_c/ChangeLog b/sci-astronomy/sofa_c/ChangeLog new file mode 100644 index 000000000000..9ef4e33f4a5e --- /dev/null +++ b/sci-astronomy/sofa_c/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-astronomy/sofa_c +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/sofa_c/ChangeLog,v 1.1 2013/04/23 15:57:06 bicatali Exp $ + +*sofa_c-20120301a (23 Apr 2013) + + 23 Apr 2013; SĂ©bastien Fabbro <bicatali@gentoo.org> + +files/sofa_c-makefile.patch, +metadata.xml, +sofa_c-20120301a.ebuild: + Initial import diff --git a/sci-astronomy/sofa_c/Manifest b/sci-astronomy/sofa_c/Manifest new file mode 100644 index 000000000000..0d3de87d0850 --- /dev/null +++ b/sci-astronomy/sofa_c/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX sofa_c-makefile.patch 3186 SHA256 44c535bceef5ebe178df50e8b80b27cfa12a86d62266468a83a1a91d87d8113c SHA512 37ba2f149fb8b32a1aa00e58940764a71824a8034b501ced9320ddd42df5cfe38df0db1fc6dfe521237359c20ec476117f595e5bd633c92b4ae682c85e2385df WHIRLPOOL 21ca4797d4b36d3916ac4a4bc5c2c1ab60684174b1e5d48e58874eba8ff628a7ff50272ee535e8f3132af9ff4ff2d54f1baa5e3973e8647644c2a6b5340416a6 +DIST sofa_c-20120301_a.tar.gz 1267551 SHA256 3534538b4abda067ef07f1aaef869f3b72ddc7f246447558b708d2968e63e66f SHA512 00da8e834e790922200c25b55cba3b48e49770cbada2271e4b7720f5170a422c9a47e6ebd1c51787256e88aaa656c347f21add14fbc353a9346d395ea3eda2c2 WHIRLPOOL d4f13d08b6ff1f67c808ba09858cd0f77664031ea466b71fc65f48f09bd216cd384db7660b574385d1c65ddcbdd5f894a2631335be557ffb29f1b8703d517a46 +EBUILD sofa_c-20120301a.ebuild 918 SHA256 fa1fdee4e64d28ad7c92d00bf6e1560ae0a121448103a0e49dc39e7048025273 SHA512 280ca86cb0a5b2b30673747d902d1c8e7f2d54646d2a1759c07607380d92999e8ed7d752864b155f51b0b1ee95703d8d1ca5c084294854dcb2b653167aed375e WHIRLPOOL f50adfa701782a0112338b3ce58d1dbdd0040d3ff107086f890864bf11bfd5ba616c03aa6b44ba8269fb3f8af4f061385f332a18d8be7ba42f29455e3944b57b +MISC ChangeLog 393 SHA256 6c73331a985b1a33d56d5f79b0a0fa46fcda976464dd7b59f7c7b25571bdd452 SHA512 e8ccedc10044ac8746e9acf9f5de05a8dd9718dbfb8f96ddfba2cab78db3914bd7f259cd7c269554138b8828b27ad0e9245b73be86e543d9481d2d8b154bdb7e WHIRLPOOL a736e8aab3a61263bfd08876d528dfb71cf98fccb94a4691ed98b6fb779823170354336361238fbb0e96253ae78002de04ff2c0574edccf22550b9b1ddd5aefd +MISC metadata.xml 867 SHA256 606e68b872de1e4d8cacf4df324e0598dc80e800c59b5d445cedebd63c341299 SHA512 7af344efd89e7bc7975f8d133992ffe0cc24bdc8ef3e8db19fbfb325bfbf1c847476ff1de849df2fa5aedfdfd1ce0c2ba6c8129c9f0156c73871eb0e1ab4b2b6 WHIRLPOOL 04c8d1150724f6481aa85ede15bfd4e8990655078be935440fb8202661cc0d82c3c0bfe7f2d82e67553cee39646cb7c77f1b7d7c84780ee7a420bcb95a754567 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEYEAREIAAYFAlF2r1YACgkQ1ycZbhPLE2DcUwCgl3aviAdJRWSBHWo1HAHH5Zr8 +SsIAn2lP/0z6nRfdfoPIxT8AbBcuiRoe +=VJR5 +-----END PGP SIGNATURE----- diff --git a/sci-astronomy/sofa_c/files/sofa_c-makefile.patch b/sci-astronomy/sofa_c/files/sofa_c-makefile.patch new file mode 100644 index 000000000000..e0f0cb26af0b --- /dev/null +++ b/sci-astronomy/sofa_c/files/sofa_c-makefile.patch @@ -0,0 +1,102 @@ +--- makefile.orig 2013-04-23 08:51:44.357363792 -0700 ++++ makefile 2013-04-23 08:52:06.663480924 -0700 +@@ -49,7 +49,7 @@ + + # Specify the installation home directory. + +-INSTALL_DIR = $(HOME) ++INSTALL_DIR = $(DESTDIR)/usr + + # Specify the installation directory for the library. + +@@ -63,9 +63,10 @@ + # of your preferred C compiler (CCOMPC) and compilation flags (CFLAGF + # for functions, CFLAGX for executables) here. + +-CCOMPC = gcc +-CFLAGF = -c -pedantic -Wall -W -O +-CFLAGX = -pedantic -Wall -W -O ++CCOMPC = $(CC) ++CFLAGF = -c -pedantic -Wall -W -fPIC $(CFLAGS) ++CFLAGX = -pedantic -Wall -W $(CFLAGS) ++ + + #----YOU SHOULDN'T HAVE TO MODIFY ANYTHING BELOW THIS LINE--------- + +@@ -80,6 +81,12 @@ + SOFA_LIB_NAME = libsofa_c.a + SOFA_LIB = $(SOFA_LIB_DIR)$(SOFA_LIB_NAME) + ++ ++# Name the SOFA/C library in its source and target locations. ++ ++SOFA_SHLIB_NAME = libsofa_c.so ++SOFA_SHLIB = $(SOFA_LIB_DIR)$(SOFA_SHLIB_NAME) ++ + # Name the SOFA/C testbed in its source and target locations. + + SOFA_TEST_NAME = t_sofa_c.c +@@ -285,29 +292,31 @@ + #----------------------------------------------------------------------- + + # Build (but do not install) the library. +-all : $(SOFA_LIB_NAME) ++all : $(SOFA_SHLIB_NAME) + -@ echo "" + -@ echo "*** Now type 'make test'" \ + " to install the library and run tests ***" + -@ echo "" + + # Install the library and header files. +-install $(SOFA_LIB) : $(INSTALL_DIRS) $(SOFA_LIB_NAME) $(SOFA_INC) +- cp $(SOFA_LIB_NAME) $(SOFA_LIB_DIR) ++install: $(INSTALL_DIRS) $(SOFA_SHLIB_NAME) $(SOFA_INC) ++ cp $(SOFA_SHLIB_NAME).0.0 $(SOFA_LIB_DIR) ++ ln -s $(SOFA_SHLIB_NAME).0.0 $(SOFA_SHLIB).0 ++ ln -s $(SOFA_SHLIB_NAME).0 $(SOFA_SHLIB) + + # Deinstall the library and header files. + deinstall: +- rm -f $(SOFA_LIB) $(SOFA_INC) ++ rm -f $(SOFA_LIB) $(SOFA_SHLIB)* $(SOFA_INC) + + # Test the build. + check: $(SOFA_TEST_NAME) $(SOFA_INC_NAMES) $(SOFA_LIB_NAME) +- $(CCOMPC) $(CFLAGX) $(SOFA_TEST_NAME) $(SOFA_LIB_NAME) \ ++ $(CCOMPC) $(CFLAGX) $(SOFA_TEST_NAME) $(SOFA_SHLIB_NAME).0.0 \ + -lm -o $(SOFA_TEST) +- ./$(SOFA_TEST) ++ LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(SOFA_LIB_DIR) ./$(SOFA_TEST) + rm -f $(SOFA_TEST) + + # Test the installed library. +-installcheck test: $(SOFA_TEST_NAME) $(SOFA_INC) $(SOFA_LIB) ++installcheck: $(SOFA_TEST_NAME) $(SOFA_INC) $(SOFA_LIB) + $(CCOMPC) $(CFLAGX) $(SOFA_TEST_NAME) -I$(SOFA_INC_DIR) \ + -L$(SOFA_LIB_DIR) -lsofa_c -lm -o $(SOFA_TEST) + ./$(SOFA_TEST) +@@ -315,11 +324,11 @@ + + # Local clean up. + clean realclean: +- rm -f $(SOFA_OBS) $(SOFA_LIB_NAME) ++ rm -f $(SOFA_OBS) $(SOFA_LIB_NAME) $(SOFA_SHLIB_NAME) + + # Clean up and deinstall. + distclean: +- rm -f $(SOFA_OBS) $(SOFA_LIB_NAME) $(SOFA_INC) $(SOFA_LIB) ++ rm -f $(SOFA_OBS) $(SOFA_LIB_NAME) $(SOFA_INC) $(SOFA_LIB) $(SOFA_SHLIB_NAME) + + # Create the installation directories if not already present. + $(INSTALL_DIRS): +@@ -329,6 +338,10 @@ + $(SOFA_LIB_NAME): $(SOFA_OBS) + ar ru $(SOFA_LIB_NAME) $? + ++$(SOFA_SHLIB_NAME): $(SOFA_OBS) ++ $(CC) $(LDFLAGS) -shared -Wl,-soname,$(SOFA_SHLIB_NAME).0 -lm -o $(SOFA_SHLIB_NAME).0.0 $? ++ ++ + # Install the header files. + $(SOFA_INC) : $(INSTALL_DIRS) $(SOFA_INC_NAMES) + cp $(SOFA_INC_NAMES) $(SOFA_INC_DIR) diff --git a/sci-astronomy/sofa_c/metadata.xml b/sci-astronomy/sofa_c/metadata.xml new file mode 100644 index 000000000000..17260472bb98 --- /dev/null +++ b/sci-astronomy/sofa_c/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-astronomy</herd> +<longdescription lang="en"> + This is a suite of vector/matrix routines and various utilities that + underpin the astronomy algorithms, which include routines for the + following: + * Calendars + * Time Scales + * Earth rotation and sidereal time + * Ephemerides (medium precision) + * Geocentric/geodetic transformations + * Precession, nutation, polar motion + * Star space motion + * Star catalogue conversion + This is the ANSI C version of the library. + The International Astronomical Union's SOFA service has the task of + establishing and maintaining an accessible and authoritative set of + algorithms and procedures that implement standard models used in + fundamental astronomy. +</longdescription> +</pkgmetadata> diff --git a/sci-astronomy/sofa_c/sofa_c-20120301a.ebuild b/sci-astronomy/sofa_c/sofa_c-20120301a.ebuild new file mode 100644 index 000000000000..f10a1ee114c9 --- /dev/null +++ b/sci-astronomy/sofa_c/sofa_c-20120301a.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/sofa_c/sofa_c-20120301a.ebuild,v 1.1 2013/04/23 15:57:06 bicatali Exp $ + +EAPI=5 + +inherit eutils flag-o-matic multilib + +YYYY=${PV:0:4} +MMDD=${PV:4:4} +MYPV=${YYYY}${MMDD}_${PV:8:1} + +DESCRIPTION="Library for algorithms for models in fundamental astronomy" +HOMEPAGE=" http://www.iausofa.org/current_C.html" +SRC_URI="http://www.iausofa.org/${YYYY}_${MMDD}_C/${PN}-${MYPV}.tar.gz" + +LICENSE="SOFA" +SLOT=0 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +RDEPEND="" +DEPEND="" + +S="${WORKDIR}/sofa/${MYPV}/c/src" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-makefile.patch + sed -i -e "s:/lib:/$(get_libdir):" makefile || die + replace-flags -O? -O1 +} + +src_install() { + emake DESTDIR="${ED}" install + cd .. + dodoc 00READ.ME + use doc && dodoc doc/*.lis doc/*.pdf +} |