diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/cdf | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/cdf')
-rw-r--r-- | sci-libs/cdf/Manifest | 16 | ||||
-rw-r--r-- | sci-libs/cdf/cdf-3.4.1.ebuild | 127 | ||||
-rw-r--r-- | sci-libs/cdf/cdf-3.5.0.2.ebuild | 127 | ||||
-rw-r--r-- | sci-libs/cdf/files/50cdf | 5 | ||||
-rw-r--r-- | sci-libs/cdf/files/cdf-3.2-Makefile.patch | 100 | ||||
-rw-r--r-- | sci-libs/cdf/files/cdf-3.2-soname.patch | 22 | ||||
-rw-r--r-- | sci-libs/cdf/files/cdf-3.4-Makefile.patch | 102 | ||||
-rw-r--r-- | sci-libs/cdf/files/cdf-3.5.0.2-Makefile.patch | 110 | ||||
-rw-r--r-- | sci-libs/cdf/metadata.xml | 18 |
9 files changed, 627 insertions, 0 deletions
diff --git a/sci-libs/cdf/Manifest b/sci-libs/cdf/Manifest new file mode 100644 index 000000000000..56a8849335c6 --- /dev/null +++ b/sci-libs/cdf/Manifest @@ -0,0 +1,16 @@ +DIST cdf34_1-dist-cdf.tar.gz 1045465 SHA256 d4bffe144e2e2c47c38830681a86b417e3426ffce378f0634682953957185117 SHA512 d68e39b521402256205196f09ec9742b7fdcd1d59fb3251b5eb50812fee52f9ae193c39d342b3dcc467d03911972e4e19f1cf157ac102eae6cc77cb6abacac44 WHIRLPOOL 4c8b5ee2ed1af21511c235a2b7204f142b98ac68181026816fee72be33b7b56b33dbfbf91b9923d913c052b26c1018d916857d57fc599c63782aef54a384384d +DIST cdf34_1-dist-java.tar.gz 713180 SHA256 d6efb2e1c06a42e52e3a3a90c0f155b31d3fdac71f781b73e8a6c0ffa85f459e SHA512 1b95110e6ff455cb379370a74b4160098b5dbd3bef8a3854634caad40d93fde9bc804e4f10187cfeb232f9b9a28a69ce6de6caba969c64dc21b89b339e01e112 WHIRLPOOL 410e5b3dbedd3c4a19e3fac85687ec69e5ad605e9b85c45ce679fc2fdd3b28ad353e76990886ccb0ff7fab4a09b287b2b2bd0c14beef6945de43e47273141502 +DIST cdf34crm.pdf 1693915 SHA256 cc3add52cef16be0820b314a0f7928c254e85a870ba11b931f662a6ce545f2e9 SHA512 cbc8a4b6237632147de24c0eecaaff0f7fa6551eec08f68ebc72c79aff71a99608c309874bd07e9dca6203868171159556a29a7669ecb7e45e60a5cef8d81cb4 WHIRLPOOL 35a01d1cae36d683c232fc3de779c3541b209d303edebdec254eebbba88b10063cd632d0a36bf18b82f47e002695ad858801359b75af7fbf7b1282a1f97ea575 +DIST cdf34frm.pdf 1968381 SHA256 a725ee218c00fd544fdce4c7868d49b1c6128077ba60c2eebf19d7357bfbb8a4 SHA512 c5402db80c05192430e1ca7142d356a8224c52f128fe8c1be937767623c12a7ed55d7afaa0955a00e9ebcace87ba5fed977fc8020a71cdac40fb44326c5f8f65 WHIRLPOOL 7ce91654405d8e80c81b775d931fdf676b00987406fc608df19f69278a5f362f83c30c6e8c4986bd064f1f32f3ce48fb03e2cd8e39a785fa53335a95c4a83d7d +DIST cdf34ifd.pdf 415359 SHA256 3bf7b3ec80c8be85425bb632a9da34142eabc7a26f5c1cdb6208eb47095922ec SHA512 1ab42f8677fbbb7cb477c6cbbfe632a8569c6a78fee07dd32c42f549b7d451faaf0ca61ba03f2ea5ba4de2a3a71cc40e4de6ca3dcf86b7caef7594cefc9f2246 WHIRLPOOL adfcd60cdb58799a652cea688e2515d6e336e3ac3913b515afcca7dfd507691cd16471564baaa6690691442ffe6319cd693aa176f23ebea0d573f576dbf1a9f5 +DIST cdf34jrm.pdf 3505200 SHA256 7a08793d023080cedf370f4dc2ff589074b0ef11add2abfd634691790e4efeb3 SHA512 1609f609f7f455bb4749f5f948183f066bc7b6a1367082fccfed669a9768d8c6d8e46f39680e0e99b4accd030c262af92deff9f832e2789ea191874c107df94c WHIRLPOOL 107f852b43b950c2b603299622a1ddec75221cbf6c19520576a9b95e694579545585340d609560eba691f49acf4ec4beae9994bf15ce6a5844752fe975fefc78 +DIST cdf34prm.pdf 1062987 SHA256 157253ec0cfe47eb6e9f76f2f1a1c365abf82303ffd3334dd7b0168448c1d0cd SHA512 f4e95ce93c896147e4c3074caa8a4d564aadebc8e741c6e593a9377fc0fb0e6f3225c2cd9962900a144418a5b445f462fe12d1178857c3f229f2650da4030587 WHIRLPOOL 261dae7cb16a7bf0cf83d3eda4a939b6d0890a3049b8e7f5817a203408320b9ea41445ae46b4ecd4651a5f70f755a7bdba46e4ced1c0d59d03ceaca5bdcaeb25 +DIST cdf34ug.pdf 1307731 SHA256 a23eb912cb1b371e34ba39e4c3d9ea28cd4512b072910ee8cfa6e00c9323775d SHA512 78c4891690494131f1a8793e1e0dbb9aa0d021b88d04489385156dcc25a218555acad3ec727265aa2b749e24c9a66601ad0698ad201bc6f16b74c9266aae4a0f WHIRLPOOL f15dfbeb68574359d9ccee3ab085ddd671d63b8fa46b16df2b9995aaf85281681dbefe5bc6b9e8f6c64bf6ea9fa1911d96dfa3c6d1e54cb3b0593db8e8ededa8 +DIST cdf350crm.pdf 2139671 SHA256 3cc847dbf32d7d86cde4bd7bf2914a2800abc97a38a3d52832b31b7157afe2de SHA512 382c3cfd73b7c75a017f0c563c61473fccc11ca344f33f4f5a543f4c339a52879400532dbff9956ae8c2b7706f63223132666c3154ad7ada281cd4418e48b4dd WHIRLPOOL 22dfa4158c2f206a68caf3fa0a4c31b5099299d590b5427a376796762ad504b4b731b6a79a12b529b2bc48e8972bbfc45df96c84a8b0515e093eab4bfc9c1cbf +DIST cdf350frm.pdf 2194293 SHA256 a4cbe07f14885a1ac0aeb092c00fdd522784cd8b03a6f6ba948464d9495ff3f7 SHA512 1c1db067f42b56ddb01399821103ced7207da1dc191f62f7acf6776a05c15a992f7be060790233e1b94444724aedb6f83ba687f60b7a20b4988f9d591b40d481 WHIRLPOOL b91148ab9c2c47aaaa9f9d29ffd7368db52db8d534b851185d85f6ec39ed7a6d102be67a6ba88943e3a0f77a6597ecd5608af0a1f6b911beb38c86ddddb3c35c +DIST cdf350jrm.pdf 4009791 SHA256 d57b5298de5ca753d31c4c879c7690349f754492a02b148f7587631260f57444 SHA512 cf42de6d94168337936403fc2e504b03fdd676ae8daf8020186d3261bc7331822d47b7c509c804ca5fd637af3696308d09c5db102aaa546138d0630c3df999c3 WHIRLPOOL 6a8ce28712ee20efa9806f5e0de039c91b537a063695697552ddaad71c86845b4d1667eb414737d9cfa431289caab6dc876f50c5052eb24e5e4d4871d5386913 +DIST cdf350prm.pdf 1111201 SHA256 4e95c4377bbc621a03071b4802356f4f745e24c10f95d92bf719a6740bd090bc SHA512 5ab9002dea0d223e5322d3cfbd9faaa4306d701c9e81de77a27b6c28054ffde146ce1fc98c6f8f34d36c684fc65c8007e378af9990cf709f534da35c2ca1ecb4 WHIRLPOOL 52eaa71ec1277d0a1371258c90c31879760ba13cd11453501ec7786cd74a3cfe77440932de2ec7551562b98b44a239ec0b5e94f032d3e7cb77e8634601f87004 +DIST cdf350ug.pdf 1396156 SHA256 835cee3304954c003d0aad86c9a14d06fbb41e3b8e8875a9610f688a22fd79ee SHA512 2c3111cb873f7e59b78e1963923a878564f4dbcd7bd8f54a3b35825e3fcfd162bf19ba6fef3ec1058616cc76bb0c57cdd2f7bf9fd5f4faaac9ba5559d7febe29 WHIRLPOOL fae228f9b72c4d38b8261295303475a8ac4ae558468ec40f8d69fe76463bf40912552e0636f1f422dbfa583ff25837b6845fe9cf942f3f4f0b079563a7a5a78b +DIST cdf35_0-dist-cdf.tar.gz 1137065 SHA256 ffac4885e5ae3a14ea1bb473560678894b4feb586dd94839e5008deaf4ef884b SHA512 f26bd1e298494563cb30c52751bd175124814dca2fe2c05ae056d6c2ad905fb5ddc7da35888c6a07d69914f52481cb4e9fcab9684c9a8a0ca4b80ca449ad3406 WHIRLPOOL 2db7bdb674f8dad9dd94f340d615baaa134718388815ee982d6f2775d269d6ad70ecb67cd3d2e0487c149a7b4feccf3616fd70d96ce5ba1f870574b7b6eae474 +DIST cdf35_0-dist-java.tar.gz 724055 SHA256 5a24cb2cbab78f4857abcfbd4f8a3c420def6927f5118caff4e9a7d9a8c9798d SHA512 2e69447e9c36ced39a6bfcd1f2a5dfa7c36c04e9a5acac12952c1b415c5191471efbf2cc432b5b31eb37c8ee31bda3e27bce0fa266c5549fb1b0ab86c4dd6c4f WHIRLPOOL e9d6e081d4f62dd07c5c8c15d646d970a5ab7818fdfe8d322a066b689072082f365c1a5371eaba0b7886e984c6bbfd30704556eda54d28d3007ee3a189f915c7 +DIST cdf35ifd.pdf 560458 SHA256 652fb65604b7ca32961f04babc2149f6435a60ea16b32635d046492d29839ba5 SHA512 018a524f7fc8dc5b8b3512ed8bdea42bae141eb65d24b4fbbdac6ecebaeac5c458caf3a476fc4b7c0313b17441cbe7dce32d1002f9344d056cd46853ee3cd438 WHIRLPOOL 9f7b606f428ffe216b3b68ff817c951aa9b74890aa150a393635b694a58495fcdc2f719321567d0dabd08cd584930711f974ade580642a27876c03ff59ad15ae diff --git a/sci-libs/cdf/cdf-3.4.1.ebuild b/sci-libs/cdf/cdf-3.4.1.ebuild new file mode 100644 index 000000000000..7db24ca42e7a --- /dev/null +++ b/sci-libs/cdf/cdf-3.4.1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils java-pkg-opt-2 multilib toolchain-funcs versionator + +MY_DP="${PN}$(get_version_component_range 1)$(get_version_component_range 2)" +MY_P="${MY_DP}_$(get_version_component_range 3)" + +DESCRIPTION="Common Data Format I/O library for multi-dimensional data sets" +HOMEPAGE="http://cdf.gsfc.nasa.gov/" +SRC_BASE="ftp://cdaweb.gsfc.nasa.gov/pub/${PN}/dist/${MY_P}/unix" + +SRC_URI="${SRC_BASE}/${MY_P}-dist-${PN}.tar.gz + java? ( ${SRC_BASE}/${MY_P}-dist-java.tar.gz ) + doc? ( + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}crm.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}frm.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}ifd.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}prm.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}ug.pdf + java? ( ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}jrm.pdf ) + )" + +LICENSE="CDF" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" +IUSE="doc examples java ncurses static-libs" + +RDEPEND=" + java? ( >=virtual/jre-1.5 ) + ncurses? ( sys-libs/ncurses ) + " +DEPEND=" + java? ( >=virtual/jdk-1.5 ) + ncurses? ( sys-libs/ncurses ) + " + +S="${WORKDIR}/${MY_P}-dist" + +src_prepare() { + # respect cflags, remove useless scripts + epatch \ + "${FILESDIR}"/${PN}-3.4-Makefile.patch \ + "${FILESDIR}"/${PN}-3.2-soname.patch + # use proper lib dir + sed -i \ + -e "s:\$(INSTALLDIR)/lib:\$(INSTALLDIR)/$(get_libdir):g" \ + Makefile || die "sed failed" +} + +src_compile() { + PV_SO=${PV:0:1} + emake \ + OS=linux \ + CC=$(tc-getCC) \ + ENV=gnu \ + SHARED=yes \ + SHAREDEXT_linux=so.${PV_SO} \ + CURSESLIB_linux_gnu="$(usex ncurses "$($(tc-getPKG_CONFIG) --libs ncurses)" "")" \ + CURSES=$(usex ncurses) \ + ${myconf} \ + all + + if use java; then + export CDF_BASE="${S}" + export CDF_LIB="${S}/src/lib" + cd cdfjava/jni + $(tc-getCC) \ + ${CFLAGS} -fPIC \ + -I${CDF_BASE}/src/include \ + -I$(java-config -O)/include \ + -I$(java-config -O)/include/linux \ + -c cdfNativeLibrary.c \ + -o cdfNativeLibrary.o \ + || die "compiling java lib failed" + $(tc-getCC) \ + ${LDFLAGS} \ + -shared cdfNativeLibrary.o \ + -Wl,-soname=libcdfNativeLibrary.so.${PV_SO} \ + -L${CDF_LIB} -lcdf -lm \ + -o libcdfNativeLibrary.so.${PV_SO} \ + || die "linking java lib failed" + fi +} + +src_test() { + emake -j1 test +} + +src_install() { + dodir /usr/bin /usr/$(get_libdir) + # -j1 (fragile non-autotooled make) + emake -j1 \ + INSTALLDIR="${ED}/usr" \ + SHAREDEXT=so.${PV_SO} \ + install + dosym libcdf.so.${PV_SO} /usr/$(get_libdir)/libcdf.so + use static-libs || rm "${ED}"/usr/$(get_libdir)/libcdf.a + dodoc Release.notes CHANGES.txt Welcome.txt + doenvd "${FILESDIR}"/50cdf + + if use doc; then + insinto /usr/share/doc/${PF} + doins "${DISTDIR}"/${MY_DP}*.pdf + use java || rm "${D}"/usr/share/doc/${PF}/${MY_P}jrm.pdf + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins samples/* + fi + + if use java; then + cd cdfjava || die + dolib.so jni/libcdfNativeLibrary.so.${PV_SO} + dosym libcdfNativeLibrary.so.${PV_SO} \ + /usr/$(get_libdir)/libcdfNativeLibrary.so + java-pkg_dojar */*.jar + if use examples; then + insinto /usr/share/doc/${PF}/examples/java + doins examples/* + fi + fi +} diff --git a/sci-libs/cdf/cdf-3.5.0.2.ebuild b/sci-libs/cdf/cdf-3.5.0.2.ebuild new file mode 100644 index 000000000000..c370eb3e3855 --- /dev/null +++ b/sci-libs/cdf/cdf-3.5.0.2.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils java-pkg-opt-2 multilib toolchain-funcs versionator + +MY_DP="${PN}$(get_version_component_range 1)$(get_version_component_range 2)" +MY_P="${MY_DP}_$(get_version_component_range 3)" + +DESCRIPTION="Common Data Format I/O library for multi-dimensional data sets" +HOMEPAGE="http://cdf.gsfc.nasa.gov/" +SRC_BASE="http://cdaweb.gsfc.nasa.gov/pub/software/${PN}/dist/${MY_P}/unix/" + +SRC_URI="${SRC_BASE}/${MY_P}-dist-${PN}.tar.gz + java? ( ${SRC_BASE}/${MY_P}-dist-java.tar.gz ) + doc? ( + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}0crm.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}0frm.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}ifd.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}0prm.pdf + ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}0ug.pdf + java? ( ${SRC_BASE}/${MY_DP}_documentation/${MY_DP}0jrm.pdf ) + )" + +LICENSE="CDF" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples java ncurses static-libs" + +RDEPEND=" + java? ( >=virtual/jre-1.5 ) + ncurses? ( sys-libs/ncurses ) + " +DEPEND=" + java? ( >=virtual/jdk-1.5 ) + ncurses? ( sys-libs/ncurses ) + " + +S="${WORKDIR}/${MY_P}-dist" + +src_prepare() { + # respect cflags, remove useless scripts + epatch \ + "${FILESDIR}"/${P}-Makefile.patch \ + "${FILESDIR}"/${PN}-3.2-soname.patch + # use proper lib dir + sed -i \ + -e "s:\$(INSTALLDIR)/lib:\$(INSTALLDIR)/$(get_libdir):g" \ + Makefile || die "sed failed" +} + +src_compile() { + PV_SO=${PV:0:1} + emake \ + OS=linux \ + CC=$(tc-getCC) \ + ENV=gnu \ + SHARED=yes \ + SHAREDEXT_linux=so.${PV_SO} \ + CURSESLIB_linux_gnu="$(usex ncurses "$($(tc-getPKG_CONFIG) --libs ncurses)" "")" \ + CURSES=$(usex ncurses) \ + ${myconf} \ + all + + if use java; then + export CDF_BASE="${S}" + export CDF_LIB="${S}/src/lib" + cd cdfjava/jni + $(tc-getCC) \ + ${CFLAGS} -fPIC \ + -I${CDF_BASE}/src/include \ + -I$(java-config -O)/include \ + -I$(java-config -O)/include/linux \ + -c cdfNativeLibrary.c \ + -o cdfNativeLibrary.o \ + || die "compiling java lib failed" + $(tc-getCC) \ + ${LDFLAGS} \ + -shared cdfNativeLibrary.o \ + -Wl,-soname=libcdfNativeLibrary.so.${PV_SO} \ + -L${CDF_LIB} -lcdf -lm \ + -o libcdfNativeLibrary.so.${PV_SO} \ + || die "linking java lib failed" + fi +} + +src_test() { + emake -j1 test +} + +src_install() { + dodir /usr/bin /usr/$(get_libdir) + # -j1 (fragile non-autotooled make) + emake -j1 \ + INSTALLDIR="${ED}/usr" \ + SHAREDEXT=so.${PV_SO} \ + install + dosym libcdf.so.${PV_SO} /usr/$(get_libdir)/libcdf.so + use static-libs || rm "${ED}"/usr/$(get_libdir)/libcdf.a + dodoc Release.notes CHANGES.txt Welcome.txt + doenvd "${FILESDIR}"/50cdf + + if use doc; then + insinto /usr/share/doc/${PF} + doins "${DISTDIR}"/${MY_DP}*.pdf + use java || rm "${D}"/usr/share/doc/${PF}/${MY_P}jrm.pdf + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins samples/* + fi + + if use java; then + cd cdfjava || die + dolib.so jni/libcdfNativeLibrary.so.${PV_SO} + dosym libcdfNativeLibrary.so.${PV_SO} \ + /usr/$(get_libdir)/libcdfNativeLibrary.so + java-pkg_dojar */*.jar + if use examples; then + insinto /usr/share/doc/${PF}/examples/java + doins examples/* + fi + fi +} diff --git a/sci-libs/cdf/files/50cdf b/sci-libs/cdf/files/50cdf new file mode 100644 index 000000000000..d967cbee6f22 --- /dev/null +++ b/sci-libs/cdf/files/50cdf @@ -0,0 +1,5 @@ +CDF_BASE=/usr +CDF_INC=${CDF_BASE}/include +CDF_LIB=${CDF_BASE}/lib +CDF_BIN=${CDF_BASE}/bin +CDF_HELP=${CDF_BASE}/lib/cdf/help diff --git a/sci-libs/cdf/files/cdf-3.2-Makefile.patch b/sci-libs/cdf/files/cdf-3.2-Makefile.patch new file mode 100644 index 000000000000..6333632abb28 --- /dev/null +++ b/sci-libs/cdf/files/cdf-3.2-Makefile.patch @@ -0,0 +1,100 @@ +--- Makefile.orig 2007-12-03 17:38:59.450705131 +0000 ++++ Makefile 2007-12-03 17:46:11.117238346 +0000 +@@ -661,17 +661,17 @@ + "PIC=$(PIC_$(OS)_$(ENV))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ + "LDx=$(LD_$(OS)_$(ENV))" \ +-"COPTIONS=$(UCOPTIONS) $(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSshr_$(OS)_$(ENV))" \ + "SHAREDEXT=$(SHAREDEXT_$(OS))" \ +-"LDOPTIONS=$(LDOPTIONS_$(OS)_$(ENV))" \ ++"LDOPTIONS=$(LDFLAGS) $(LDOPTIONS_$(OS)_$(ENV))" \ + "AROPTIONS=$(AROPTIONS_$(OS))" \ + "RANLIB=$(RANLIB_$(OS))" \ + all + @cd $(TOOLSsrcDIR); $(MAKE) \ + "CURSES=$(AND.$(CURSES).$(CURSES_$(OS)_$(ENV)))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ +-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \ + "CURSESLIB=$(CURSESLIB_$(OS)_$(ENV))" \ +@@ -681,9 +681,9 @@ + "FCx=$(FC_$(OS))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ + "SHARED=$(AND.$(SHARED).$(SHARED_$(OS)))" \ +-"FOPTIONS=$(FOPTIONS_$(OS)) $(FOPTIONS_$(OS)_$(ENV))" \ ++"FOPTIONS=$(FFLAGS) $(FOPTIONS_$(OS)) $(FOPTIONS_$(OS)_$(ENV))" \ + "FOPTIONSld=$(FOPTIONSld_$(OS)) $(FOPTIONSld_$(OS)_$(ENV))" \ +-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \ + "SHAREDEXT=$(SHAREDEXT_$(OS))" \ +@@ -711,12 +711,17 @@ + install.all: install.definitions install.include install.lib \ + install.tools install.help_ notify.user + +-install.definitions: create.bin copy.definitions change.definitions ++install.definitions: create.bin + install.include: create.include copy.include + install.tools: create.bin copy.tools + install.help_: create.help copy.help + + install.lib: create.lib copy.lib.a ++ @if [ -f $(LIBsrcDIR)/libcdf.$(SHAREDEXT) ] ; then \ ++ $(MAKE) "INSTALLDIR=$(INSTALLDIR)" install.lib.so ; \ ++ else \ ++ $(NULL) ; \ ++ fi + @if [ -f $(LIBsrcDIR)/libcdf.so ] ; then \ + $(MAKE) "INSTALLDIR=$(INSTALLDIR)" install.lib.so ; \ + else \ +@@ -811,8 +816,8 @@ + cp $(INCsrcDIR)/cdfconfig.h $(INSTALLDIR)/include + + copy.lib.so: +- @echo cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib +- cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib ++ @echo cp $(LIBsrcDIR)/libcdf.$(SHAREDEXT) $(INSTALLDIR)/lib ++ cp $(LIBsrcDIR)/libcdf.$(SHAREDEXT) $(INSTALLDIR)/lib + + copy.lib.sl: + @echo cp $(LIBsrcDIR)/libcdf.sl $(INSTALLDIR)/lib +@@ -1851,15 +1856,15 @@ + show.supported: + @echo SHARED is $(SUPPORTED.$(SHARED_$(OS))) + @echo CURSES is $(SUPPORTED.$(CURSES_$(OS)_$(ENV))) +- @echo FOPTIONS=$(FOPTIONS_$(OS)) ++ @echo FOPTIONS=$(FFLAGS) $(FOPTIONS_$(OS)) + @echo FOPTIONSld=$(FOPTIONSld_$(OS)) + @echo SHAREDEXT=$(SHAREDEXT_$(OS)) +- @echo LDOPTIONSlibcdf=$(LDOPTIONS_$(OS)_$(ENV)) ++ @echo LDOPTIONSlibcdf=$(LDFLAGS) $(LDOPTIONS_$(OS)_$(ENV)) + @echo RANLIB=$(RANLIB_$(OS)) + @echo FCx=$(FC_$(OS)) + @echo CCx=$(CC_$(OS)_$(ENV)) + @echo PIC=$(PIC_$(OS)_$(ENV)) +- @echo COPTIONS=$(COPTIONS_$(OS)_$(ENV)) ++ @echo COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV)) + @echo COPTIONSld=$(COPTIONSld_$(OS)_$(ENV)) + @echo CURSESLIB=$(CURSESLIB_$(OS)_$(ENV)) + @echo SYSLIBSexe=$(SYSLIBSexe_$(OS)_$(ENV)) +--- src/tools/Makefile.orig 2009-02-02 18:02:55.000000000 +0000 ++++ src/tools/Makefile 2009-02-02 18:07:31.000000000 +0000 +@@ -35,10 +35,10 @@ + INCLUDEcdf= ../include + + CC=$(CCx) +-CFLAGS=$(COPTIONS) -I$(INCLUDEcdf) +-CFLAGSld=$(COPTIONSld) ++CFLAGS:= $(CFLAGS) $(COPTIONS) -I$(INCLUDEcdf) ++CFLAGSld=$(LDFLAGS) $(COPTIONSld) + +-LIBCDFa=../lib/libcdf.a ++LIBCDFa=../lib/libcdf.so.3 + + LIBs1=$(LIBCDFa) $(SYSLIBS) + LIBs2=$(LIBCDFa) $(CURSESLIB) $(SYSLIBS) diff --git a/sci-libs/cdf/files/cdf-3.2-soname.patch b/sci-libs/cdf/files/cdf-3.2-soname.patch new file mode 100644 index 000000000000..e4f28617faca --- /dev/null +++ b/sci-libs/cdf/files/cdf-3.2-soname.patch @@ -0,0 +1,22 @@ +--- src/lib/Makefile.orig 2007-12-03 17:47:58.476149933 +0000 ++++ src/lib/Makefile 2007-12-03 17:50:34.353032850 +0000 +@@ -94,7 +94,7 @@ + + shared.yes: libcdf.$(SHAREDEXT) + +-libcdf.so \ ++libcdf.$(SHAREDEXT) \ + libcdf.dylib \ + libcdf.sl: $(OBJs) + @if [ -f $@ ] ; then rm $@ ; else $(NULL) ; fi +@@ -102,8 +102,8 @@ + echo $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS); \ + $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS); \ + else \ +- echo $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS); \ +- $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS); \ ++ echo $(LD) $(LDFLAGS) -Wl,-soname,libcdf.$(SHAREDEXT) -o $@ $(OBJs) $(SYSLIBS); \ ++ $(LD) $(LDFLAGS) -Wl,-soname,libcdf.$(SHAREDEXT) -o $@ $(OBJs) $(SYSLIBS); \ + fi + + libcdf.o: $(OBJs) diff --git a/sci-libs/cdf/files/cdf-3.4-Makefile.patch b/sci-libs/cdf/files/cdf-3.4-Makefile.patch new file mode 100644 index 000000000000..4a6c0a0ef266 --- /dev/null +++ b/sci-libs/cdf/files/cdf-3.4-Makefile.patch @@ -0,0 +1,102 @@ +diff -Nur cdf34_1-dist.orig/Makefile cdf34_1-dist/Makefile +--- cdf34_1-dist.orig/Makefile 2012-06-19 06:05:21.000000000 -0700 ++++ cdf34_1-dist/Makefile 2012-08-03 10:11:38.672992055 -0700 +@@ -715,17 +715,17 @@ + "PIC=$(PIC_$(OS)_$(ENV))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ + "LDx=$(LD_$(OS)_$(ENV))" \ +-"COPTIONS=$(UCOPTIONS) $(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSshr_$(OS)_$(ENV))" \ + "SHAREDEXT=$(SHAREDEXT_$(OS))" \ +-"LDOPTIONS=$(LDOPTIONS_$(OS)_$(ENV))" \ ++"LDOPTIONS=$(LDFLAGS) $(LDOPTIONS_$(OS)_$(ENV))" \ + "AROPTIONS=$(AROPTIONS_$(OS))" \ + "RANLIB=$(RANLIB_$(OS))" \ + all + @cd $(TOOLSsrcDIR); $(MAKE) \ + "CURSES=$(AND.$(CURSES).$(CURSES_$(OS)_$(ENV)))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ +-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \ + "CURSESLIB=$(CURSESLIB_$(OS)_$(ENV))" \ +@@ -735,9 +735,9 @@ + "FCx=$(FC_$(OS))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ + "SHARED=$(AND.$(SHARED).$(SHARED_$(OS)))" \ +-"FOPTIONS=$(FOPTIONS_$(OS)) $(FOPTIONS_$(OS)_$(ENV))" \ ++"FOPTIONS=$(FFLAGS) $(FOPTIONS_$(OS)) $(FOPTIONS_$(OS)_$(ENV))" \ + "FOPTIONSld=$(FOPTIONSld_$(OS)) $(FOPTIONSld_$(OS)_$(ENV))" \ +-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \ + "SHAREDEXT=$(SHAREDEXT_$(OS))" \ +@@ -773,12 +773,17 @@ + install.all: install.definitions install.include install.lib \ + install.tools install.help_ notify.user copy.leapseconds + +-install.definitions: create.bin copy.definitions change.definitions ++install.definitions: create.bin + install.include: create.include copy.include + install.tools: create.bin copy.tools + install.help_: create.help copy.help + + install.lib: create.lib copy.lib.a ++ @if [ -f $(LIBsrcDIR)/libcdf.$(SHAREDEXT) ] ; then \ ++ $(MAKE) "INSTALLDIR=$(INSTALLDIR)" install.lib.so ; \ ++ else \ ++ $(NULL) ; \ ++ fi + @if [ -f $(LIBsrcDIR)/libcdf.so ] ; then \ + $(MAKE) "INSTALLDIR=$(INSTALLDIR)" install.lib.so ; \ + else \ +@@ -884,8 +889,8 @@ + cp $(INCsrcDIR)/cdfconfig.h $(INSTALLDIR)/include + + copy.lib.so: +- @echo cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib +- cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib ++ @echo cp $(LIBsrcDIR)/libcdf.$(SHAREDEXT) $(INSTALLDIR)/lib ++ cp $(LIBsrcDIR)/libcdf.$(SHAREDEXT) $(INSTALLDIR)/lib + + copy.lib.sl: + @echo cp $(LIBsrcDIR)/libcdf.sl $(INSTALLDIR)/lib +@@ -1964,15 +1969,15 @@ + show.supported: + @echo SHARED is $(SUPPORTED.$(SHARED_$(OS))) + @echo CURSES is $(SUPPORTED.$(CURSES_$(OS)_$(ENV))) +- @echo FOPTIONS=$(FOPTIONS_$(OS)) ++ @echo FOPTIONS=$(FFLAGS) $(FOPTIONS_$(OS)) + @echo FOPTIONSld=$(FOPTIONSld_$(OS)) + @echo SHAREDEXT=$(SHAREDEXT_$(OS)) +- @echo LDOPTIONSlibcdf=$(LDOPTIONS_$(OS)_$(ENV)) ++ @echo LDOPTIONSlibcdf=$(LDFLAGS) $(LDOPTIONS_$(OS)_$(ENV)) + @echo RANLIB=$(RANLIB_$(OS)) + @echo FCx=$(FC_$(OS)) + @echo CCx=$(CC_$(OS)_$(ENV)) + @echo PIC=$(PIC_$(OS)_$(ENV)) +- @echo COPTIONS=$(COPTIONS_$(OS)_$(ENV)) ++ @echo COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV)) + @echo COPTIONSld=$(COPTIONSld_$(OS)_$(ENV)) + @echo CURSESLIB=$(CURSESLIB_$(OS)_$(ENV)) + @echo SYSLIBSexe=$(SYSLIBSexe_$(OS)_$(ENV)) +diff -Nur cdf34_1-dist.orig/src/tools/Makefile cdf34_1-dist/src/tools/Makefile +--- cdf34_1-dist.orig/src/tools/Makefile 2012-06-15 09:22:16.000000000 -0700 ++++ cdf34_1-dist/src/tools/Makefile 2012-08-03 10:11:38.685992724 -0700 +@@ -35,10 +35,10 @@ + INCLUDEcdf= ../include + + CC=$(CCx) +-CFLAGS=$(COPTIONS) -I$(INCLUDEcdf) +-CFLAGSld=$(COPTIONSld) ++CFLAGS:=$(CFLAGS) $(COPTIONS) -I$(INCLUDEcdf) ++CFLAGSld=$(LDFLAGS) $(COPTIONSld) + +-LIBCDFa=../lib/libcdf.a ++LIBCDFa=../lib/libcdf.so.3 + LIBs1=$(LIBCDFa) $(SYSLIBS) + LIBs2=$(LIBCDFa) $(CURSESLIB) $(SYSLIBS) + diff --git a/sci-libs/cdf/files/cdf-3.5.0.2-Makefile.patch b/sci-libs/cdf/files/cdf-3.5.0.2-Makefile.patch new file mode 100644 index 000000000000..3bab69dfc6ac --- /dev/null +++ b/sci-libs/cdf/files/cdf-3.5.0.2-Makefile.patch @@ -0,0 +1,110 @@ + Makefile | 27 ++++++++++++++++----------- + src/tools/Makefile | 6 +++--- + 2 files changed, 19 insertions(+), 14 deletions(-) + +diff --git a/Makefile b/Makefile +index 7f240db..222c4f1 100644 +--- a/Makefile ++++ b/Makefile +@@ -771,17 +771,17 @@ all + "PIC=$(PIC_$(OS)_$(ENV))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ + "LDx=$(LD_$(OS)_$(ENV))" \ +-"COPTIONS=$(UCOPTIONS) $(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSshr_$(OS)_$(ENV))" \ + "SHAREDEXT=$(SHAREDEXT_$(OS))" \ +-"LDOPTIONS=$(LDOPTIONS_$(OS)_$(ENV))" \ ++"LDOPTIONS=$(LDFLAGS) $(LDOPTIONS_$(OS)_$(ENV))" \ + "AROPTIONS=$(AROPTIONS_$(OS))" \ + "RANLIB=$(RANLIB_$(OS))" \ + all + @cd $(TOOLSsrcDIR); $(MAKE) \ + "CURSES=$(AND.$(CURSES).$(CURSES_$(OS)_$(ENV)))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ +-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \ + "CURSESLIB=$(CURSESLIB_$(OS)_$(ENV))" \ +@@ -791,9 +791,9 @@ all + "FCx=$(FC_$(OS))" \ + "CCx=$(CC_$(OS)_$(ENV))" \ + "SHARED=$(AND.$(SHARED).$(SHARED_$(OS)))" \ +-"FOPTIONS=$(FOPTIONS_$(OS)) $(FOPTIONS_$(OS)_$(ENV))" \ ++"FOPTIONS=$(FFLAGS) $(FOPTIONS_$(OS)) $(FOPTIONS_$(OS)_$(ENV))" \ + "FOPTIONSld=$(FOPTIONSld_$(OS)) $(FOPTIONSld_$(OS)_$(ENV))" \ +-"COPTIONS=$(COPTIONS_$(OS)_$(ENV))" \ ++"COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV))" \ + "COPTIONSld=$(COPTIONSld_$(OS)_$(ENV))" \ + "SYSLIBS=$(SYSLIBSexe_$(OS)_$(ENV))" \ + "SHAREDEXT=$(SHAREDEXT_$(OS))" \ +@@ -829,12 +829,17 @@ install: install.$(PART) + install.all: install.definitions install.include install.lib \ + install.tools install.help_ notify.user copy.leapseconds + +-install.definitions: create.bin copy.definitions change.definitions ++install.definitions: create.bin + install.include: create.include copy.include + install.tools: create.bin copy.tools + install.help_: create.help copy.help + + install.lib: create.lib copy.lib.a ++ @if [ -f $(LIBsrcDIR)/libcdf.$(SHAREDEXT) ] ; then \ ++ $(MAKE) "INSTALLDIR=$(INSTALLDIR)" install.lib.so ; \ ++ else \ ++ $(NULL) ; \ ++ fi + @if [ -f $(LIBsrcDIR)/libcdf.so ] ; then \ + $(MAKE) "INSTALLDIR=$(INSTALLDIR)" install.lib.so ; \ + else \ +@@ -940,8 +945,8 @@ copy.include: + cp $(INCsrcDIR)/cdfconfig.h $(INSTALLDIR)/include + + copy.lib.so: +- @echo cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib +- cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib ++ @echo cp $(LIBsrcDIR)/libcdf.$(SHAREDEXT) $(INSTALLDIR)/lib ++ cp $(LIBsrcDIR)/libcdf.$(SHAREDEXT) $(INSTALLDIR)/lib + + copy.lib.sl: + @echo cp $(LIBsrcDIR)/libcdf.sl $(INSTALLDIR)/lib +@@ -2128,15 +2133,15 @@ show.posix.alphaI: show.supported + show.supported: + @echo SHARED is $(SUPPORTED.$(SHARED_$(OS))) + @echo CURSES is $(SUPPORTED.$(CURSES_$(OS)_$(ENV))) +- @echo FOPTIONS=$(FOPTIONS_$(OS)) ++ @echo FOPTIONS=$(FFLAGS) $(FOPTIONS_$(OS)) + @echo FOPTIONSld=$(FOPTIONSld_$(OS)) + @echo SHAREDEXT=$(SHAREDEXT_$(OS)) +- @echo LDOPTIONSlibcdf=$(LDOPTIONS_$(OS)_$(ENV)) ++ @echo LDOPTIONSlibcdf=$(LDFLAGS) $(LDOPTIONS_$(OS)_$(ENV)) + @echo RANLIB=$(RANLIB_$(OS)) + @echo FCx=$(FC_$(OS)) + @echo CCx=$(CC_$(OS)_$(ENV)) + @echo PIC=$(PIC_$(OS)_$(ENV)) +- @echo COPTIONS=$(COPTIONS_$(OS)_$(ENV)) ++ @echo COPTIONS=$(CFLAGS) $(COPTIONS_$(OS)_$(ENV)) + @echo COPTIONSld=$(COPTIONSld_$(OS)_$(ENV)) + @echo CURSESLIB=$(CURSESLIB_$(OS)_$(ENV)) + @echo SYSLIBSexe=$(SYSLIBSexe_$(OS)_$(ENV)) +diff --git a/src/tools/Makefile b/src/tools/Makefile +index 3773c0c..1cabf61 100644 +--- a/src/tools/Makefile ++++ b/src/tools/Makefile +@@ -40,12 +40,12 @@ CURSESLIB=-lncurses + INCLUDEcdf= ../include + + CC=$(CCx) +-CFLAGS=$(COPTIONS) -I$(INCLUDEcdf) +-CFLAGSld=$(COPTIONSld) ++CFLAGS:=$(CFLAGS) $(COPTIONS) -I$(INCLUDEcdf) ++CFLAGSld=$(LDFLAGS) $(COPTIONSld) + + WHICHOS=$(shell uname -a | cut -f1 -d" ") + ifeq ("$(WHICHOS)","Darwin") +- LIBCDFa=../lib/libcdf.a ++ LIBCDFa=../lib/libcdf.so.3 + else + WHICHOS=$(shell uname -a | cut -f7 -d" ") + ifeq ("$(WHICHOS)","Cygwin") diff --git a/sci-libs/cdf/metadata.xml b/sci-libs/cdf/metadata.xml new file mode 100644 index 000000000000..aadf07573aff --- /dev/null +++ b/sci-libs/cdf/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <longdescription lang="en"> +Common Data Format (CDF) is a conceptual data abstraction for storing +multi-dimensional data sets. The basic component of CDF is a software +programming interface that is a device independent view of the CDF data +model. The application developer is insulated from the actual physical +file format for reasons of conceptual simplicity, device independence, +and future expandability. CDF files created on any given platform can +be transported to any other platform on to which CDF is ported and used +with any CDF tools or layered applications. A more detailed introduction +to CDF can be found in the CDF User's Guide. +A comparison between CDF, netCDF, HDF and HDF5 is available at +http://cdf.gsfc.nasa.gov/html/FAQ.html. +</longdescription> +</pkgmetadata> |