diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/cdf |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/cdf')
-rw-r--r-- | sci-libs/cdf/Manifest | 25 | ||||
-rw-r--r-- | sci-libs/cdf/cdf-3.4.1.ebuild | 122 | ||||
-rw-r--r-- | sci-libs/cdf/cdf-3.5.0.2.ebuild | 122 | ||||
-rw-r--r-- | sci-libs/cdf/files/50cdf | 5 | ||||
-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 | 21 |
8 files changed, 529 insertions, 0 deletions
diff --git a/sci-libs/cdf/Manifest b/sci-libs/cdf/Manifest new file mode 100644 index 000000000000..ab7076e392ec --- /dev/null +++ b/sci-libs/cdf/Manifest @@ -0,0 +1,25 @@ +AUX 50cdf 124 SHA256 030452ff70f6c05eca8776976b7f2ab15c74a189065a6dda1a7b8eb32de953a2 SHA512 4fe515d03379f2b6e1723c771f73e65be9f67365a46e75dbeb3358bbdc6f3446b91efd989363bf229b7ae93a446ddedeefd883a0d59d28c1480a10a8994eeadc WHIRLPOOL f017286eee25e2bfc081fe8d9eb85e30207adedfac4a3687f73a71d2c880e13db84bbf7d83b3d45d929f32b175a4feed449805f09d856a43c506a22f1cfad9f6 +AUX cdf-3.2-soname.patch 738 SHA256 df148aad093d5ac4a51e2d2805f36e3fb3156979a4b1cff34d8e9ba2619741ff SHA512 f3bb09e43b3b36ed346dc7690cc0c75a28e8dcfb2c1ebbf8a0577abdc2d15bbcbce7b0da9c5de23ef65e669bd118692db498aef230e9395dd4b67dba48258a8d WHIRLPOOL 5771aebab646b35bca54ded793a5428dfa22c528e062f60041e0d9cdd60b2ddf0f796081d025675020b6558313362d063e2a6a06180101dbcca7cdd2591942b7 +AUX cdf-3.4-Makefile.patch 3838 SHA256 271962757be1d5f9f87aea8f4f0c4cd1fea44f0297231e2ad79dc945eca3c1ff SHA512 f8eb1b78b5a8e466dff38fa8108ac7316bd171e50e7e9125a99b10482994f02b86656d2d3e34a29c1a384beab6c0fd97ddf6e4697c18657d189620a9efcd1e47 WHIRLPOOL 3fcfa15abe8f69934c461c2d3f172b441eefe0cb37b54d66bd1c9b98a8d20bcae96d15766b22a6f3e210ce4a8ce0871f91a4bed1ed4a4b9d9e944f386d420158 +AUX cdf-3.5.0.2-Makefile.patch 3973 SHA256 e9c8df363f40aa0004d30b8d6bded4b453589cf8a114949506c7bada89a4cd08 SHA512 9842d43d8e2910f8d7cc00c27711f84cde622ab69084ce1c798625475034b73db857410d6fc1311933512bb3a235cfe2fb0808d2eebfc6165e3962e04aaed4e1 WHIRLPOOL b86048ece84df5601d4cc4db1b9ee14f23e940f4ee4a786182d2ed3cc88686877634cd780856945b9bbf9bde3437e6e48689ef52dc8996217d98207b266f9fb3 +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 +EBUILD cdf-3.4.1.ebuild 3160 SHA256 cde2332fffb1ca5594523ac004ba754f9c8a8eeba7d2d873e562ac0929cebefa SHA512 b3ef295ddde4afd851b0693a4a5cc5887c90b04cc5640b866ff06cb5eece5fa890fe2460aa34ab214ebe28f08fe83015180046595f4577c96981b37e63852e04 WHIRLPOOL 290b7012e8ca619e5c8ebc1f30cff40226f9b86e1c92b0724f8401c5d815a66580eaf72e4972463863f9a63ef6c268da554b10b0ef43485a0b102f902dfb47d4 +EBUILD cdf-3.5.0.2.ebuild 3177 SHA256 4248eb131b77904f6a034cfd093e22f5936cdeca5d8f90472fb25359c6e276bf SHA512 00dba2532b21e4dd72970f09e539a3b224acce76250257860b1b53c3d696bc339426e659628326ecb9dd6b4e3d6ac975ecb8501293a5eafdc8f181b1555ca43f WHIRLPOOL 3563ed9e5f438fae547c42363f7fee5cd4fc62fb8741778569a2d8ca37c1a6d43d4d56e7595ca6dab8e8ebb3496408ca60c1d56d43a21d55683a32083802c0ed +MISC ChangeLog 3002 SHA256 c2e315c35d1a4a4761c310bedfbdd5a07b8721a73f321d820bdcae782330061c SHA512 c99d43b10ed8e10d3d6946b1e4e8fa0061d8d2cd0f023f04021b1b0c2b340e53f8cc86564f9835eb91ca02edfd35954c3edbc49348b48a508379518a9164157d WHIRLPOOL e7464b703fe40ef829b3d0f9b7117a7e1ff9305fcfd86ddaa37be2f6b30eb81cb13728400e3152040306f318f88353b8f501bed9ff4b519c3379bb05d1ad946c +MISC ChangeLog-2015 4488 SHA256 94079ad67a97432a81dcc0b21780ec51be9a79d33fe576de8852b8f66d9603c8 SHA512 eded16d769ba54ad6fce24b6461e0ba87b6ea628bc8b2283da4e6cb1783175e8dfde036c1b99f34339d916f4f27aa6709d95c13d7069b2101a1f0d126e1295c7 WHIRLPOOL 775661088074539a90061e6d4a73d84afcb396fc5a157a23d49f49f60e01e1d0a9d7de431bbf27d297293245b11bf8c1e0bce31db3fd79b24a5d1d3e713ba002 +MISC metadata.xml 1025 SHA256 08e91c5299523a6cef0705a4ca03eb22e8ef8ab314a0e96075a0134dc20b702c SHA512 26992a8b0ce0aff229d7dc4e87440dc15e0a0143ef88ba6d910a8e4f6372803ae8e3bd007a53b554509220bdb41fe8a804f9b606a4dca47f03d88d39f2164549 WHIRLPOOL cf6fae853ea68e63e2362be4da53ff977aea52dd01b99b61e9691faa8896c9d6275511ad2540772c22e49803e82bbe52c36d8c6c10fc92d201dd69028a3ab996 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..55a3ace7b646 --- /dev/null +++ b/sci-libs/cdf/cdf-3.4.1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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:0= ) + " +DEPEND="${RDEPEND}" + +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 + dodoc "${DISTDIR}"/${MY_DP}{crm,frm,ifd,prm,ug}.pdf + use java && dodoc "${DISTDIR}"/${MY_DP}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..9956ff0e3fa8 --- /dev/null +++ b/sci-libs/cdf/cdf-3.5.0.2.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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:0= ) + " +DEPEND="${RDEPEND}" + +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 + dodoc "${DISTDIR}"/${MY_DP}{0{crm,frm,prm,ug},ifd}.pdf + use java && dodoc "${DISTDIR}"/${MY_DP}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-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..1021bdd389ce --- /dev/null +++ b/sci-libs/cdf/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <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> |