From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-astronomy/xfitsview/Manifest | 6 +++ .../files/xfitsview-2.2-build_system.patch | 54 ++++++++++++++++++++++ sci-astronomy/xfitsview/metadata.xml | 13 ++++++ sci-astronomy/xfitsview/xfitsview-2.2-r2.ebuild | 34 ++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 sci-astronomy/xfitsview/Manifest create mode 100644 sci-astronomy/xfitsview/files/xfitsview-2.2-build_system.patch create mode 100644 sci-astronomy/xfitsview/metadata.xml create mode 100644 sci-astronomy/xfitsview/xfitsview-2.2-r2.ebuild (limited to 'sci-astronomy/xfitsview') diff --git a/sci-astronomy/xfitsview/Manifest b/sci-astronomy/xfitsview/Manifest new file mode 100644 index 000000000000..ec51c60e0f80 --- /dev/null +++ b/sci-astronomy/xfitsview/Manifest @@ -0,0 +1,6 @@ +AUX xfitsview-2.2-build_system.patch 1316 SHA256 00a7235b5d85d94cf1309be4eecb42321eaab5716a0b94ffd349bf9663c5feb5 SHA512 a8d40252424f7c49fbe7fd3b6d2d6f5fbbdb0b09c01d1aff0854cf55576106dfba29ec63557ac7e3b06971a502413e901e3ccc7bc8443d36937b17495e87cdaf WHIRLPOOL 363b62323c807a70b7068cf38b930f1f97139bcfa9920561da4737a0ff8b93e4c95fe05c042cd25919c459e259b8d4e7d19b7dd578ec4e85a33caa56d9ba179c +DIST xfitsview2.2.tgz 290959 SHA256 f47649ad0091fa555aae13a0c539cd378591df28613b8572195baf77eea74fbb SHA512 01e57f0dd9c7320b86683a2235e7a779828f19c34b9380d5127bad85941e8861fd86f17a276f7ec60038d9e3bc4c8df54cc6291b70f8c7ecce4ef17cfb92b1b9 WHIRLPOOL 2a933d5fd2dcc06b4af949060bcc7094735c8440b3eb24c7b1a8275e3673132e1b1c6733af3eadb944e7f3b4edb38126953246a08d7a2236ba8a5a5fb8220f4c +EBUILD xfitsview-2.2-r2.ebuild 704 SHA256 aff837d8c2ab27995d9e07894efa32b0447a738caf1162742e1d0238b89b8a5f SHA512 b82c13d884fff8ae6b84901075b4de982145d288deec1b95c1e83e62e111d0ef99d435ab8917d8acd653de9dfd40e71d9c3dee2c3a187fd009a6177838aea16e WHIRLPOOL 269f3eb9209d2c263acadc7e510d248a66f8d4bb21e4b4d1eaed6fe3ae3a10bc8713ccef4452f9892d7a3196f060a633699ea5a6f0df06ac1e49289d8e555903 +MISC ChangeLog 3054 SHA256 670006ba8a9f66c6e55ec74f991e9bfa31414629057ebc1e2ff24ecc971733c7 SHA512 98051f16a5fc6bb5911619aa0cfbd5cc6c16e9f05e1a7877b4da2bdf067061df6deee6257b296d6e2488eebf87fc92e1a27cca4a0028eb031f7cbdcc9d787819 WHIRLPOOL 014f87677db07f18794c9a8bff083b588bfe4c73432dcdad4481a9c2cd6a3de3b8e321eb1f1291c3a5feff6ad55ea073ed1211b1f1c38f7976d408219944952e +MISC ChangeLog-2015 1701 SHA256 19a4a159f5a415a5299192b57425ee11086f9a42fb77d57e1146ebd782fb14ed SHA512 902c938245a8e327b8aa2c97349e6754d74f4773333a9459e327be996fd6861f2329b95ba6ad27ed7816463fd31aa207ed9ace01787553d6f630acca103b0111 WHIRLPOOL 3f69bc4bdf8ae2e78444ecde4053b595e5a148ee033cbe88b8e7b313e265cc0fd0f13b4f76e96555858c04998dcbec6fb49ca0306512d0f36787bc31c4a28680 +MISC metadata.xml 499 SHA256 211a1b70396c03c7e9f95af84116ccb02578ab5da7f1f5d14472efac68be8b4c SHA512 581c014fc4159848e631b0bd8b61e5a7f1ddea2660b81e4f004bfe698a4a94e6eb8cec5ad61a850bb60c509b561e75fa5a03d9e14d03d3f62d00ce8908f21d26 WHIRLPOOL 89543d341fd9b8a70fb3e584886041c0382594fb725836599f4a9634e6217ad2b6a78d1d44c13ba4f8b00d1346f8b3906e0e3d001d8d68c6031c5d2dd0d33abe diff --git a/sci-astronomy/xfitsview/files/xfitsview-2.2-build_system.patch b/sci-astronomy/xfitsview/files/xfitsview-2.2-build_system.patch new file mode 100644 index 000000000000..12eaacf4e244 --- /dev/null +++ b/sci-astronomy/xfitsview/files/xfitsview-2.2-build_system.patch @@ -0,0 +1,54 @@ +* Fix parallel build +* Respect LDFLAGS +* Fix build with gmake 3.82 + +http://bugs.gentoo.org/show_bug.cgi?id=337479 + +--- a/Makefile.in ++++ b/Makefile.in +@@ -61,26 +61,26 @@ + LIBDIR = lib/$(ARCH)/ + CFLAGS = -Iinclude -Ifitssubs @MOTIF_CPPFLAGS@ @X_CFLAGS@ \ + $(DEBUG) $(OSFLAGS) @CFLAGS@ +-LIBS = @MOTIF_LIBS@ -lfitsLib +-LDFLAGS = @MOTIF_LDFLAGS@ @X_LIBS@ -L$(LIBDIR) ++LIBS = @MOTIF_LIBS@ @X_LIBS@ -L$(LIBDIR) -lfitsLib ++LDFLAGS = @LDFLAGS@ @MOTIF_LDFLAGS@ + + all: $(TARGETS) + + # update source/object directory + srcupdate: +- cd src; $(MAKE) ++ $(MAKE) -C src + + # update fitssubs source/object directory + fitsupdate: +- cd fitssubs; $(MAKE) ++ $(MAKE) -C fitssubs + + # update fitssubs library directory +-libupdate: +- cd lib; $(MAKE) RANLIB="$(RANLIB)" ++libupdate: fitsupdate srcupdate ++ $(MAKE) RANLIB="$(RANLIB)" -C lib + + # Link Obitview +-XFITSview: lib/$(ARCH)/libfitsLib.a src/*.c XFITSview.c +- $(CC) XFITSview.c -o XFITSview $(CFLAGS) src/*.o $(LDFLAGS) $(LIBS) ++XFITSview: XFITSview.c libupdate ++ $(CC) $(LDFLAGS) XFITSview.c -o XFITSview $(CFLAGS) src/*.o $(LIBS) + + # make gzipped tar backup of directory + backup: +--- a/fitssubs/Makefile.in ++++ b/fitssubs/Makefile.in +@@ -69,7 +69,7 @@ + + + # create library directory if needed +-../lib/$(ARCH): ../lib ++$(LIBDIR): ../lib + mkdir ../lib/$(ARCH) + + clean: diff --git a/sci-astronomy/xfitsview/metadata.xml b/sci-astronomy/xfitsview/metadata.xml new file mode 100644 index 000000000000..72e2a3d58ec3 --- /dev/null +++ b/sci-astronomy/xfitsview/metadata.xml @@ -0,0 +1,13 @@ + + + + + sci-astronomy@gentoo.org + Gentoo Astronomy Project + + + XFITSview is a Graphical User Interface based on the Motif library to + visualize astronomical images in the FITS format. It's a fairly simple + program useful for doing simple astrometry. + + diff --git a/sci-astronomy/xfitsview/xfitsview-2.2-r2.ebuild b/sci-astronomy/xfitsview/xfitsview-2.2-r2.ebuild new file mode 100644 index 000000000000..ff1ebd1455cc --- /dev/null +++ b/sci-astronomy/xfitsview/xfitsview-2.2-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN=XFITSview +MY_P=${MY_PN}${PV} + +DESCRIPTION="Viewer for astronomical images in FITS format" +HOMEPAGE="http://www.nrao.edu/software/fitsview/" +SRC_URI="ftp://ftp.cv.nrao.edu/fits/os-support/unix/xfitsview/${PN}${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND=">=x11-libs/motif-2.3:0" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_PN} + +DOCS=( README changes notes.text ) +PATCHES=( "${FILESDIR}"/${P}-build_system.patch ) + +src_prepare() { + default + find "${S}" -name '*old.c' -delete || die +} + +src_install() { + dobin XFITSview + einstalldocs +} -- cgit v1.2.3