aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-03-03 00:15:35 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-03-07 21:04:06 +0000
commitb1cb8d17de6fecab3e0001a30e67536d3b4c5137 (patch)
tree6f4deab4f367382099281eeb641e02442467269c
parentsci-astronomy/eye: modified to work with EAPI6 and new repo (diff)
downloadsci-b1cb8d17de6fecab3e0001a30e67536d3b4c5137.tar.gz
sci-b1cb8d17de6fecab3e0001a30e67536d3b4c5137.tar.bz2
sci-b1cb8d17de6fecab3e0001a30e67536d3b4c5137.zip
sci-astronomy/sextractor: modified to work with EAPI6 and new repo
-rw-r--r--sci-astronomy/sextractor/Manifest2
-rw-r--r--sci-astronomy/sextractor/files/sextractor-configure.patch84
-rw-r--r--sci-astronomy/sextractor/sextractor-2.19.5.ebuild73
-rw-r--r--sci-astronomy/sextractor/sextractor-2.8.6-r1.ebuild57
-rw-r--r--sci-astronomy/sextractor/sextractor-9999.ebuild36
5 files changed, 14 insertions, 238 deletions
diff --git a/sci-astronomy/sextractor/Manifest b/sci-astronomy/sextractor/Manifest
deleted file mode 100644
index e22ae77ba..000000000
--- a/sci-astronomy/sextractor/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST sextractor-2.19.5.tar.gz 4317039 SHA256 2a880e018585f905300d5919ab454b18640a5bef13deb5c4f03111ac4710b2c5 SHA512 aadd007facad983ea35bd7496a53520f987aa8e492259e428170354d262212e3c1a17c60bf6ea97b6056136b0bd02793e92e14b21cb40a0f8886245eeeac6f4d WHIRLPOOL cf499f4763ebf07d94ccb630030baa1b1e3e03972a9f214ee965c1f742548ee46fa4ce22203d1a6ee7c0817c2915d36483d1a7d7fcc04348beb559f5b5dd4464
-DIST sextractor-2.8.6.tar.gz 3994622 SHA256 dde34594c2a1324f0951272e404e55d0d4cb0607f8ea18a61f2563bb67f494ac SHA512 c8847f4feb45000eac02ae8fe9747b6c4a1faf0d8722e87f07699c25d71a1bcd44d8cf88df852453a3a45762deb7420cb79aca1d763543f1253755a59f585b70 WHIRLPOOL 4a8be697df11cac64980e8ee828ea61ba839a67219a9918e941a1354fc3294c80d4442eb7f91202d16315d7f454d73897a156921acd090cff836838f8eba2c29
diff --git a/sci-astronomy/sextractor/files/sextractor-configure.patch b/sci-astronomy/sextractor/files/sextractor-configure.patch
deleted file mode 100644
index dc8957ba0..000000000
--- a/sci-astronomy/sextractor/files/sextractor-configure.patch
+++ /dev/null
@@ -1,84 +0,0 @@
---- configure.ac.orig 2009-04-09 14:28:38.000000000 +0100
-+++ configure.ac 2009-07-28 18:25:38.000000000 +0100
-@@ -22,42 +22,19 @@
- # Include macros
- sinclude(acx_atlas.m4)
- sinclude(acx_fftw.m4)
--sinclude(acx_prog_cc_optim.m4)
- sinclude(acx_pthread.m4)
- sinclude(acx_urbi_resolve_dir.m4)
-
- # Display pakage and version number
- AC_MSG_RESULT([*********** Configuring: $PACKAGE $VERSION ($date) **********])
-
--# Initialize the list of compilers to consider
--cclist="cc gcc"
--
--# Backup and reset the input CFLAGS and LDFLAGS
--mycflags="$CFLAGS"
--CFLAGS=""
--myldflags="$LDFLAGS"
--LDFLAGS=""
--
--# Provide special option for the Linux Intel C compiler
--AC_MSG_CHECKING([for Linux Intel C compiler mode])
--AC_ARG_ENABLE(icc,
-- [AC_HELP_STRING([--enable-icc],
-- [Enable special mode for compilation with the Intel compiler \
--(off by default)])],
-- use_icc="yes"
-- cclist="icc $cclist"
-- AC_MSG_RESULT([yes]),
-- use_icc="no"
-- AC_MSG_RESULT([no]))
--
- # Checks for programs.
- # GCC is chosen last because it is likely to yield less optimized code
- AC_LANG(C)
--AC_PROG_CC([$cclist])
-+AC_PROG_CC
- # C Compiler: Check that it is ANSI C and POSIX-compliant
- AM_PROG_CC_STDC
- AC_ISC_POSIX
--ACX_PROG_CC_OPTIM
- AC_DISABLE_STATIC
- #AC_DISABLE_SHARED
- AC_PROG_LIBTOOL
-@@ -160,17 +137,6 @@
- use_gprof="no"
- AC_MSG_RESULT([no]))
-
--# Enable static linking
--AC_MSG_CHECKING([static linking])
--AC_ARG_ENABLE(static,
-- [AC_HELP_STRING([--enable-static],
-- [Enable static linking \
--(off by default)])],
-- use_static="yes"
-- AC_MSG_RESULT([yes]),
-- use_static="no"
-- AC_MSG_RESULT([no]))
--
- ################# Actions to complete in case of multhreading ################
- AC_DEFINE_UNQUOTED(THREADS_NMAX, $n_pthreads,[Maximum number of POSIX threads])
- if test "$use_pthreads" = "yes"; then
-@@ -205,19 +171,9 @@
-
- # Link with gprof option
- if test "$use_gprof" = "yes"; then
-- if test "$use_icc" = "yes"; then
-- CFLAGS="$CFLAGS -pq"
-- else
-- CFLAGS="$CFLAGS -pg"
-- fi
- use_static="no"
- fi
-
--# Static linking option
--if test "$use_static" = "yes"; then
-- LDFLAGS="-static -shared-libgcc $LDFLAGS"
--fi
--
- # Override automatic CFLAGS and LDFLAGS with those of user
- #if test -n "$mycflags"; then
- #CFLAGS="$mycflags"
diff --git a/sci-astronomy/sextractor/sextractor-2.19.5.ebuild b/sci-astronomy/sextractor/sextractor-2.19.5.ebuild
deleted file mode 100644
index 6515bca3a..000000000
--- a/sci-astronomy/sextractor/sextractor-2.19.5.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-if [[ ${PV} == "9999" ]] ; then
- inherit subversion
- ESVN_REPO_URI="https://astromatic.net/pubsvn/software/${PN}/trunk"
- SRC_URI=""
- KEYWORDS=""
-else
- SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
- KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-fi
-
-AUTOTOOLS_IN_SOURCE_BUILD=1
-
-inherit autotools-utils multilib
-
-DESCRIPTION="Extract catalogs of sources from astronomical FITS images"
-HOMEPAGE="http://www.astromatic.net/software/sextractor"
-
-LICENSE="GPL-3"
-SLOT="0"
-
-IUSE="doc modelfit threads"
-
-RDEPEND="
- modelfit? ( sci-libs/atlas[lapack,threads=] sci-libs/fftw:3.0 )"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
- if use modelfit; then
- local mycblas=atlcblas myclapack=atlclapack
- if use threads; then
- [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptcblas.so ]] && \
- mycblas=ptcblas
- [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptclapack.so ]] && \
- myclapack=ptclapack
- fi
- sed -i \
- -e "s/-lcblas/-l${mycblas}/g" \
- -e "s/AC_CHECK_LIB(cblas/AC_CHECK_LIB(${mycblas}/g" \
- -e "s/-llapack/-l${myclapack}/g" \
- -e "s/AC_CHECK_LIB(lapack/AC_CHECK_LIB(${myclapack}/g" \
- acx_atlas.m4 || die
- AUTOTOOLS_AUTORECONF=1
- fi
- autotools-utils_src_prepare
-}
-
-src_configure() {
- local myeconfargs=(
- --with-atlas-incdir="${EPREFIX}/usr/include/atlas"
- $(use_enable modelfit model-fitting)
- $(use_enable threads)
- )
- autotools-utils_src_configure
-}
-
-src_install () {
- autotools-utils_src_install
- CONFDIR=/usr/share/sextractor
- insinto ${CONFDIR}
- doins config/*
- use doc && dodoc doc/*
-}
-
-pkg_postinst() {
- elog "SExtractor examples configuration files are located in"
- elog "${EROOT%/}/${CONFDIR} and are not loaded anymore by default."
-}
diff --git a/sci-astronomy/sextractor/sextractor-2.8.6-r1.ebuild b/sci-astronomy/sextractor/sextractor-2.8.6-r1.ebuild
deleted file mode 100644
index cf3556735..000000000
--- a/sci-astronomy/sextractor/sextractor-2.8.6-r1.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit eutils autotools
-
-DESCRIPTION="Extract catalogs of sources from astronomical FITS images"
-HOMEPAGE="http://www.astromatic.net/software/sextractor"
-SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
-
-LICENSE="CeCILL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc threads"
-
-RDEPEND="
- sci-libs/atlas[lapack]
- sci-libs/fftw:3.0"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-configure.patch
- local mycblas=atlcblas myclapack=atlclapack
- if use threads; then
- [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptcblas.so ]] && \
- mycblas=ptcblas
- [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptclapack.so ]] && \
- myclapack=ptclapack
- fi
- sed -i \
- -e "s/-lcblas/-l${mycblas}/g" \
- -e "s/AC_CHECK_LIB(cblas/AC_CHECK_LIB(${mycblas}/g" \
- -e "s/-llapack/-l${myclapack}/g" \
- -e "s/AC_CHECK_LIB(lapack/AC_CHECK_LIB(${myclapack}/g" \
- acx_atlas.m4 || die "sed acx_atlas.m4 failed"
- eautoreconf
-}
-
-src_configure() {
- econf \
- --with-atlas-incdir="${EPREFIX}/usr/include/atlas" \
- $(use_enable threads)
-}
-
-src_install () {
- default
- CONFDIR=/usr/share/sextractor
- insinto ${CONFDIR}
- doins config/*
- use doc && dodoc doc/*
-}
-
-pkg_postinst() {
- elog "SExtractor examples configuration files are located in"
- elog "${EROOT}/${CONFDIR} and are not loaded anymore by default."
-}
diff --git a/sci-astronomy/sextractor/sextractor-9999.ebuild b/sci-astronomy/sextractor/sextractor-9999.ebuild
index 6515bca3a..7c29244a3 100644
--- a/sci-astronomy/sextractor/sextractor-9999.ebuild
+++ b/sci-astronomy/sextractor/sextractor-9999.ebuild
@@ -1,22 +1,15 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
-if [[ ${PV} == "9999" ]] ; then
- inherit subversion
- ESVN_REPO_URI="https://astromatic.net/pubsvn/software/${PN}/trunk"
- SRC_URI=""
- KEYWORDS=""
-else
- SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
- KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-fi
+inherit subversion autotools
-AUTOTOOLS_IN_SOURCE_BUILD=1
-
-inherit autotools-utils multilib
+ESVN_REPO_URI="https://astromatic.net/pubsvn/software/${PN}/trunk"
+ESVN_OPTIONS="--trust-server-cert-failures=unknown-ca"
+SRC_URI=""
+KEYWORDS=""
DESCRIPTION="Extract catalogs of sources from astronomical FITS images"
HOMEPAGE="http://www.astromatic.net/software/sextractor"
@@ -31,6 +24,7 @@ RDEPEND="
DEPEND="${RDEPEND}"
src_prepare() {
+ default
if use modelfit; then
local mycblas=atlcblas myclapack=atlclapack
if use threads; then
@@ -45,22 +39,20 @@ src_prepare() {
-e "s/-llapack/-l${myclapack}/g" \
-e "s/AC_CHECK_LIB(lapack/AC_CHECK_LIB(${myclapack}/g" \
acx_atlas.m4 || die
- AUTOTOOLS_AUTORECONF=1
+ eautoreconf
fi
- autotools-utils_src_prepare
+ subversion_src_prepare
}
src_configure() {
- local myeconfargs=(
- --with-atlas-incdir="${EPREFIX}/usr/include/atlas"
- $(use_enable modelfit model-fitting)
+ econf \
+ --with-atlas-incdir="${EPREFIX}/usr/include/atlas" \
+ $(use_enable modelfit model-fitting) \
$(use_enable threads)
- )
- autotools-utils_src_configure
}
src_install () {
- autotools-utils_src_install
+ default
CONFDIR=/usr/share/sextractor
insinto ${CONFDIR}
doins config/*