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-astronomy/montage |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-astronomy/montage')
-rw-r--r-- | sci-astronomy/montage/Manifest | 11 | ||||
-rw-r--r-- | sci-astronomy/montage/files/montage-4.1-fix_format_errors.patch | 23 | ||||
-rw-r--r-- | sci-astronomy/montage/files/montage-4.1-fix_freetype_incude.patch | 13 | ||||
-rw-r--r-- | sci-astronomy/montage/files/montage-4.1-initdistdata.patch | 19 | ||||
-rw-r--r-- | sci-astronomy/montage/files/montage-4.1-use_system_libs.patch | 49 | ||||
-rw-r--r-- | sci-astronomy/montage/files/montage-5.0-fix_freetype_incude.patch | 35 | ||||
-rw-r--r-- | sci-astronomy/montage/metadata.xml | 22 | ||||
-rw-r--r-- | sci-astronomy/montage/montage-4.1.ebuild | 65 | ||||
-rw-r--r-- | sci-astronomy/montage/montage-5.0.ebuild | 67 |
9 files changed, 304 insertions, 0 deletions
diff --git a/sci-astronomy/montage/Manifest b/sci-astronomy/montage/Manifest new file mode 100644 index 000000000000..df12d1820d1e --- /dev/null +++ b/sci-astronomy/montage/Manifest @@ -0,0 +1,11 @@ +AUX montage-4.1-fix_format_errors.patch 705 SHA256 ec2a3d543cefe0096933ede2d070f9dab7f4bd98bde7b9b53318d99fcc04e104 SHA512 16019fcc1c5e352296c2835052ca9f2c6e755a15eb435b74da6d01b1c70bf514f87d5af4c1c85ba0e8b0c28f7fdeca70e8c9f80862cafbfd68ab5bd527708f16 WHIRLPOOL f6733dd9f00d890e0bcdc8f61d37a63fd6ff29cab12b965efcba8332f9392d3594e9c4e35dbaa35c9a20059f8c6c7017e1e6dfb12fa212ec9644c112739252f4 +AUX montage-4.1-fix_freetype_incude.patch 407 SHA256 e3eda784195344df5d44ac5c22b5c04da2cb3092433f934193ae708ba7ef0224 SHA512 8e6eaaf6266a3ea5210a403659333f766fcf40846fc774078d61e45f9d3eea3e98010b1741645790c7d33c0e22e2812f03925cb7421807712c0a3a41ac94126e WHIRLPOOL 9ad2b4207316cf90461adb9e360104acdd24437e7d43865c71c4f085c75cddff359103aa72d69e53524f6af31755f3b8ed11a65e2a5a4fd921fbfd82c9b3718e +AUX montage-4.1-initdistdata.patch 619 SHA256 ab8ff543ed4e9eb659e040d1795f957632c981b52e4a8b851d6d19e08efe56be SHA512 6b4b195f804fb16dd3acdfb53288800ac07af9b05749ad8e8305fe415488e921a65ffb6ce19632da420dea6235eb3ed28826a437a8b7ad22869065a916422ea5 WHIRLPOOL b53b7a974c9e6e69aa6f8bac831012a7de1c3b7f8de9f2d271795658ab0fa3fd77f58cb0dd75b3a0e008791d6d13a099c3e6f5273185aa9ba7f20837867ecc0c +AUX montage-4.1-use_system_libs.patch 2025 SHA256 db13025138ccdd958b2d08582a7903351ad1ce3fc8ee63e38d14a1883564ecbc SHA512 15221debf0f36bbc3f5e91d6429ef8d14934cb7256915aa4d86973b164d408bedceb02d33cbb7e5a61e99b72db0b320088b6eaa6f9bd648f6f3879549cfd6c8e WHIRLPOOL 7286280fb059565cdd796fb161ed74f99ba618fde988d0f307aa28d762a8a08ea28d9b107f82ddb71377a7aa85eb7aa92441f0d1fcb73663e34e50c866c241c4 +AUX montage-5.0-fix_freetype_incude.patch 1164 SHA256 f61f7deb4b8776cad7438215db31429da15269ccff639d707852f6ad34c56deb SHA512 1ca955f06765fc90164190a090ec177a06c9cb359fe93b43b8553af06b8eb4a06c8d2685d76fbee0fc70dad525a184b9a4dfde8acef4f4d9703610fb69b73ad5 WHIRLPOOL a5f192d7adcc6d8dae1cc6fcb946a54e5bfead1d4f366112de1644f2b4e87ebe08e43103f1ec0dc2b3c2575f76815ac3157a0099c7785ac37dfb8ced2f517a72 +DIST Montage_v5.0.tar.gz 14663443 SHA256 72e034adb77c8a05ac40daf9d1923c66e94faa0b08d3d441256d9058fbc2aa34 SHA512 1396c7f846db4844d2e861622d152f2115ad4c684da02bb14116dfe3d01b559feaf29572663d0dfd234aa50843afaca3bb072d9127fbb2b539a14327c48499ae WHIRLPOOL f5fc9d93d88c95ff079932d9e5f0ed61a0f30bec6bd2df5e50abfce6b171cee1b2b3e6dbed2ad1e65a7c69531b4475d62840b14f299ceffa6e65788cd9812579 +DIST montage-4.1.tar.gz 38542751 SHA256 12e463c30de190d6e8e215ef19ee787010194190e3df5ea579b6f3647804a5b4 SHA512 a4e6572c0ce04ca950cb425e2589d85609d037e57c575d4efa67b277cecf5e54a2e6d307914ee99997baaba7c5bdd43c72b1e1893111eacc065785689bfc17fb WHIRLPOOL bfd136b52a9c7b0bdceaaa0110b0476e8cb991c64ab4b646b60250e57f282fbe40c9795cef804b15caf29e0628dcb16157af11a1aa4f7e4f7c66c91f969f6484 +EBUILD montage-4.1.ebuild 1561 SHA256 cbc5287462e074be9815774df3914b8c55ac921d5a80c83a9a2124e03cbec67e SHA512 d7d36bece0e94ad1d07d383b9277529c71ad9303dbd069a34d2e489b052a6d6317bb3f45170d273a25255836e6c5c7a70b570979ce4f9cd53303125d30f35274 WHIRLPOOL 73f99eeb2a162921f43f3b5fba4e885bfc14322020b279769dbc09b6d2b73d5beca3016fd9fc74f52ae937a1a695dbcf55e2aea7331a2358b038f75c713e6fea +EBUILD montage-5.0.ebuild 1583 SHA256 592982dad940c7f5e738baaf1c34cc0b94fbab74a8a4f61af2660942b06825c4 SHA512 d90cc853c3198c2625ff57c46ca12ccff9e75a283fde9e49b23f6b66440ff1643ecd0033c20a8c7d7e600adc85db4b1984b3ae913b0b9d0047398c45c51b83ed WHIRLPOOL e056d5b871c4714493be2b3d94fecaa4afb5f225dc818b1dc7f7da997cd6dc07ec9ef73806d76c604a0f4d22e3c752e73c412d7ef45d5e00119a230d88c113ee +MISC ChangeLog 882 SHA256 8862b05e5381a9ff3caf7cda11e783d2d49dd4701063697077f82e789b16e909 SHA512 86196a1e74f3dd9efeed0c4b96b0150ae5d92e6e44cd24f4e4fd9b1483186a7e32a3d39f0001f4200e353e33f5374e9172231656df527bb7c2744d326ea93a88 WHIRLPOOL 7f4a2087c5d07955659d3406c848160779c1f1757490e095b109ffb51f5ad89fbe7973af0d40f6fb38030ab98dcc0d0dafe3b8ccb9e586904480ae641629020e +MISC metadata.xml 1031 SHA256 fe008fffcd2507de188fba7741a85059807195770fa8448d00078f9a8acaef87 SHA512 b14dfef57d629cce61fda07b98a6dd375f2827d93da714bbd4eb359650d44b726c1cf3d6af181e280b913a8a80ee4a24c6e4e6b83a3219a59400a1257e517b53 WHIRLPOOL ee58a300ae6b56c0d1c2840d1d5e4c7bf77de743061ac68eb62779f9d6b8ff4f8e12e76a38ffa26fc0f836de158e9ba42a75cebbe8ea4ec678a54cb6f6633da0 diff --git a/sci-astronomy/montage/files/montage-4.1-fix_format_errors.patch b/sci-astronomy/montage/files/montage-4.1-fix_format_errors.patch new file mode 100644 index 000000000000..d29429ccfaad --- /dev/null +++ b/sci-astronomy/montage/files/montage-4.1-fix_format_errors.patch @@ -0,0 +1,23 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Fix format security error for (s|f)printf +--- a/grid/Pegasus/hashtable.c ++++ b/grid/Pegasus/hashtable.c +@@ -4,8 +4,6 @@ + + #include <hashtable.h> + +-char *strdup(const char *s1); +- + int HT_debug = 0; + + /********************************************************/ +--- a/lib/src/coord/ccalc.c ++++ b/lib/src/coord/ccalc.c +@@ -25,7 +25,6 @@ + static int ConvertfromDD(char *fmt, char *clongprec, char *clatprec, + char *clon, char *clat, double *lon, double *lat); + static char *downcase(char *s); +-char *strdup(const char *s1); + int ParseUnits(char *cunit, int *chflag, CoordUnit *unit); + int ParsePrec(CoordUnit units, char *cprec, int longflag); + diff --git a/sci-astronomy/montage/files/montage-4.1-fix_freetype_incude.patch b/sci-astronomy/montage/files/montage-4.1-fix_freetype_incude.patch new file mode 100644 index 000000000000..0b27c83784db --- /dev/null +++ b/sci-astronomy/montage/files/montage-4.1-fix_freetype_incude.patch @@ -0,0 +1,13 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Fix freetype include path +--- a/util/Viewer/graphics.c ++++ b/util/Viewer/graphics.c +@@ -1,7 +1,7 @@ + #include <stdio.h> + #include <math.h> + #include <freetype2/ft2build.h> +-#include <freetype.h> ++#include FT_FREETYPE_H + + void labeled_curve (char *face_path, int fontsize, int showLine, + double *xcurve, double *ycurve, int npt, diff --git a/sci-astronomy/montage/files/montage-4.1-initdistdata.patch b/sci-astronomy/montage/files/montage-4.1-initdistdata.patch new file mode 100644 index 000000000000..7344bbebb122 --- /dev/null +++ b/sci-astronomy/montage/files/montage-4.1-initdistdata.patch @@ -0,0 +1,19 @@ +Author: Christoph Deil <Deil.Christoph@gmail.com> +Description: non-void function 'closefitsfile' should return a value + This is copied from macports. +Bug: https://trac.macports.org/ticket/41076 +Url: https://trac.macports.org/attachment/ticket/41076/patch-lib-src-two_plane_v1.1-initdistdata.c.diff +--- a/lib/src/two_plane_v1.1/initdistdata.c ++++ b/lib/src/two_plane_v1.1/initdistdata.c +@@ -33,9 +33,9 @@ + if (I_fits_return_status != 0) + { + fprintf(stderr, "Error closing file\n"); +- return; ++ return -1; + } +- return; ++ return 0; + } + + int initdata_byheader(char *fitsheader, DistCoeff *coeff) diff --git a/sci-astronomy/montage/files/montage-4.1-use_system_libs.patch b/sci-astronomy/montage/files/montage-4.1-use_system_libs.patch new file mode 100644 index 000000000000..4f4ff8d2d748 --- /dev/null +++ b/sci-astronomy/montage/files/montage-4.1-use_system_libs.patch @@ -0,0 +1,49 @@ +From: Sebastien Fabbro <bicatali@gentoo.org> +Date: Tue, 7 Jun 2016 18:25:12 +0000 +Subject: Use system libraries + +--- a/lib/src/Makefile ++++ b/lib/src/Makefile +@@ -1,5 +1,5 @@ + l: +- (cd cfitsio-3.25; ./configure; make; cp libcfitsio.a ../..; cp *.h ../../include) ++# (cd cfitsio-3.25; ./configure; make; cp libcfitsio.a ../..; cp *.h ../../include) + (cd cmd; make; make install) + (cd coord; make; make install) + (cd mtbl; make; make install) +@@ -7,25 +7,25 @@ l: + (cd boundaries; make; make install) + (cd pixbounds; make; make install) + (cd www; make; make install) +- (cd wcstools-3.8.7/libwcs; make; cp libwcs.a ../../..; cp *.h ../../../include) ++# (cd wcstools-3.8.7/libwcs; make; cp libwcs.a ../../..; cp *.h ../../../include) + (cd two_plane_v1.1; make; make install) + (cd lodepng_20140823; make; make install) +- (cd jpeg-8b; ./configure; make; cp .libs/libjpeg.a ../..; cp jpeglib.h jconfig.h jmorecfg.h ../../include) +- (cd freetype-2.5.4; ./configure --prefix=`pwd`/../../freetype --without-png; make; make install) ++# (cd jpeg-8b; ./configure; make; cp .libs/libjpeg.a ../..; cp jpeglib.h jconfig.h jmorecfg.h ../../include) ++# (cd freetype-2.5.4; ./configure --prefix=`pwd`/../../freetype --without-png; make; make install) + (cd ..; ranlib *.a) + chmod 644 ../include/* + + clean: + rm -rf ../include/* ../freetype ../*.a +- (cd cfitsio-3.25; make clean; rm -rf config.log config.cache config.status lib) ++# (cd cfitsio-3.25; make clean; rm -rf config.log config.cache config.status lib) + (cd cmd; make clean) + (cd coord; make clean) + (cd mtbl; make clean) + (cd svc; make clean) + (cd boundaries; make clean) + (cd pixbounds; make clean) +- (cd wcstools-3.8.7/libwcs; make clean) ++# (cd wcstools-3.8.7/libwcs; make clean) + (cd two_plane_v1.1; make clean) + (cd lodepng_20140823; make clean) +- (cd jpeg-8b; make clean) +- (cd freetype-2.5.4; make clean; rm -rf objs/libfreetype.la objs/.libs) ++# (cd jpeg-8b; make clean) ++# (cd freetype-2.5.4; make clean; rm -rf objs/libfreetype.la objs/.libs) +-- +2.8.3 + diff --git a/sci-astronomy/montage/files/montage-5.0-fix_freetype_incude.patch b/sci-astronomy/montage/files/montage-5.0-fix_freetype_incude.patch new file mode 100644 index 000000000000..42fd94950b84 --- /dev/null +++ b/sci-astronomy/montage/files/montage-5.0-fix_freetype_incude.patch @@ -0,0 +1,35 @@ +From: Ole Streicher <olebole@debian.org> +Date: Thu, 22 Dec 2016 14:24:44 +0100 +Subject: Fix freetype include path + +--- + MontageLib/Viewer/mViewer_graphics.c | 2 +- + util/Viewer/graphics.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/MontageLib/Viewer/mViewer_graphics.c b/MontageLib/Viewer/mViewer_graphics.c +index 932ca5f..a50281d 100644 +--- a/MontageLib/Viewer/mViewer_graphics.c ++++ b/MontageLib/Viewer/mViewer_graphics.c +@@ -1,7 +1,7 @@ + #include <stdio.h> + #include <math.h> + #include <freetype2/ft2build.h> +-#include <freetype.h> ++#include FT_FREETYPE_H + + void mViewer_labeledCurve (char *face_path, int fontsize, int showLine, + double *xcurve, double *ycurve, int npt, +diff --git a/util/Viewer/graphics.c b/util/Viewer/graphics.c +index 6bb7d8d..f7a5215 100644 +--- a/util/Viewer/graphics.c ++++ b/util/Viewer/graphics.c +@@ -1,7 +1,7 @@ + #include <stdio.h> + #include <math.h> + #include <freetype2/ft2build.h> +-#include <freetype.h> ++#include FT_FREETYPE_H + + void labeled_curve (char *face_path, int fontsize, int showLine, + double *xcurve, double *ycurve, int npt, diff --git a/sci-astronomy/montage/metadata.xml b/sci-astronomy/montage/metadata.xml new file mode 100644 index 000000000000..54df42e3123b --- /dev/null +++ b/sci-astronomy/montage/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>sci-astronomy@gentoo.org</email> + <name>Gentoo Astronomy Project</name> +</maintainer> +<longdescription lang="en"> + Montage is a toolkit for assembling astronomical images into custom mosaics. + It uses algorithms that preserve the calibration and positional (astrometric) + fidelity of the input images to deliver mosaics that meet user-specified + parameters of projection, coordinates, and spatial scale. It supports all + projections and coordinate systems in use in astronomy. + It contains independent modules for analyzing the geometry of images on the + sky, and for creating and managing mosaics; these modules are powerful tools + in their own right and have applicability outside mosaic production, in areas + such as data validation. +</longdescription> + <upstream> + <remote-id type="github">Caltech-IPAC/Montage</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-astronomy/montage/montage-4.1.ebuild b/sci-astronomy/montage/montage-4.1.ebuild new file mode 100644 index 000000000000..41261e6c583c --- /dev/null +++ b/sci-astronomy/montage/montage-4.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +MYPN=Montage + +DESCRIPTION="Toolkit for assembling FITS images into mosaics" +HOMEPAGE="http://montage.ipac.caltech.edu/" +SRC_URI="https://github.com/Caltech-IPAC/${MYPN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD GPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +SLOT="0" + +IUSE="doc mpi" + +RDEPEND=" + media-libs/freetype:2= + sci-astronomy/wcstools:0= + sci-libs/cfitsio:0= + virtual/jpeg:0 + mpi? ( virtual/mpi )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-fix_format_errors.patch" + "${FILESDIR}/${P}-initdistdata.patch" + "${FILESDIR}/${P}-fix_freetype_incude.patch" + "${FILESDIR}/${P}-use_system_libs.patch" +) + +S="${WORKDIR}/${MYPN}-${PV}" + +src_prepare() { + default + tc-export CC AR + + find . -name Makefile\* | xargs sed -i \ + -e "/^CC.*=/s:\(gcc\|cc\):$(tc-getCC):g" \ + -e "/^CFLAGS.*=/s:-g:${CFLAGS} $($(tc-getPKG_CONFIG) --cflags wcstools):g" \ + -e "s:-I../../lib/freetype/include :$($(tc-getPKG_CONFIG) --cflags freetype2):g" \ + -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:g' \ + -e "s:-lwcs:$($(tc-getPKG_CONFIG) --libs wcstools):g" \ + -e "s:-lcfitsio:$($(tc-getPKG_CONFIG) --libs cfitsio):g" \ + -e 's:-lnsl::g' \ + -e "s:ar q:$(tc-getAR) q:g" || die + + if use mpi; then + sed -e 's:# MPICC:MPICC:' \ + -e 's:# BINS:BINS:' \ + -i Montage/Makefile.* || die + fi +} + +src_install () { + dobin bin/* + dodoc README* ChangeHistory + if use doc; then + insinto /usr/share/doc/${PF} + doins -r man/* + fi +} diff --git a/sci-astronomy/montage/montage-5.0.ebuild b/sci-astronomy/montage/montage-5.0.ebuild new file mode 100644 index 000000000000..91e67534e2fc --- /dev/null +++ b/sci-astronomy/montage/montage-5.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +MYPN=Montage + +DESCRIPTION="Toolkit for assembling FITS images into mosaics" +HOMEPAGE="http://montage.ipac.caltech.edu/" +SRC_URI="http://montage.ipac.caltech.edu/download/${MYPN}_v${PV}.tar.gz" + +LICENSE="BSD GPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +SLOT="0" + +IUSE="doc mpi" + +RDEPEND=" + media-libs/freetype:2= + sci-astronomy/wcstools:0= + sci-libs/cfitsio:0= + virtual/jpeg:0 + mpi? ( virtual/mpi )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-4.1-fix_format_errors.patch + "${FILESDIR}"/${PN}-4.1-initdistdata.patch + "${FILESDIR}"/${PN}-5.0-fix_freetype_incude.patch +) + +S="${WORKDIR}/${MYPN}" + +src_prepare() { + default + sed -e '/cfitsio/d' \ + -e '/wcssubs/d' \ + -e '/jpeg/d' \ + -e '/freetype/d' \ + -i lib/src/Makefile || die + + tc-export CC AR + + find . -name Makefile\* | xargs sed -i \ + -e "/^CC.*=/s:\(gcc\|cc\):$(tc-getCC):g" \ + -e "/^CFLAGS.*=/s:-g:${CFLAGS} $($(tc-getPKG_CONFIG) --cflags wcstools):g" \ + -e "s:-I../../lib/freetype/include :$($(tc-getPKG_CONFIG) --cflags freetype2):g" \ + -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:g' \ + -e "s:-lwcs:$($(tc-getPKG_CONFIG) --libs wcstools):g" \ + -e "s:-lcfitsio:$($(tc-getPKG_CONFIG) --libs cfitsio):g" \ + -e 's:-lnsl::g' \ + -e "s:ar q:$(tc-getAR) q:g" || die + + if use mpi; then + sed -e 's:# MPICC:MPICC:' \ + -e 's:# BINS:BINS:' \ + -i Montage/Makefile.* || die + fi +} + +src_install () { + dobin bin/* + dodoc README* ChangeHistory + use doc && dodoc -r man/* +} |