Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/sex/, sci-astronomy/sextractor/
Date: Wed, 12 Oct 2016 18:52:25
Message-Id: 1476298308.e2c302f09eee6d172696ae49db977758f8ee6736.wizardedit@gentoo
1 commit: e2c302f09eee6d172696ae49db977758f8ee6736
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 12 18:49:40 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 12 18:51:48 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2c302f0
7
8 games-misc/sex / sci-astronomy/sextractor: add softblockers
9
10 They conflict on /usr/bin/sex
11
12 Gentoo-Bug: https://bugs.gentoo.org/596966
13
14 games-misc/sex/sex-1.0-r2.ebuild | 31 +++++++++
15 .../sextractor/sextractor-2.19.5-r1.ebuild | 74 ++++++++++++++++++++++
16 2 files changed, 105 insertions(+)
17
18 diff --git a/games-misc/sex/sex-1.0-r2.ebuild b/games-misc/sex/sex-1.0-r2.ebuild
19 new file mode 100644
20 index 00000000..46b1dcc
21 --- /dev/null
22 +++ b/games-misc/sex/sex-1.0-r2.ebuild
23 @@ -0,0 +1,31 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=6
29 +
30 +DESCRIPTION="Spouts silly mad-lib-style porn-like text"
31 +HOMEPAGE="http://spatula.net/software/sex/"
32 +SRC_URI="http://spatula.net/software/sex/${P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
37 +IUSE=""
38 +
39 +RDEPEND="!sci-astronomy/sextractor"
40 +
41 +src_prepare() {
42 + default
43 + rm -f Makefile
44 +}
45 +
46 +src_compile() {
47 + emake sex
48 +}
49 +
50 +src_install() {
51 + dobin sex
52 + doman sex.6
53 + dodoc README
54 +}
55
56 diff --git a/sci-astronomy/sextractor/sextractor-2.19.5-r1.ebuild b/sci-astronomy/sextractor/sextractor-2.19.5-r1.ebuild
57 new file mode 100644
58 index 00000000..c4f2d5e
59 --- /dev/null
60 +++ b/sci-astronomy/sextractor/sextractor-2.19.5-r1.ebuild
61 @@ -0,0 +1,74 @@
62 +# Copyright 1999-2016 Gentoo Foundation
63 +# Distributed under the terms of the GNU General Public License v2
64 +# $Id$
65 +
66 +EAPI=6
67 +
68 +AUTOTOOLS_AUTO_DEPEND=no
69 +
70 +inherit autotools
71 +
72 +DESCRIPTION="Extract catalogs of sources from astronomical FITS images"
73 +HOMEPAGE="http://www.astromatic.net/software/sextractor"
74 +SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
75 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
76 +
77 +LICENSE="GPL-3"
78 +SLOT="0"
79 +
80 +IUSE="doc modelfit test threads"
81 +
82 +RDEPEND="
83 + !games-misc/sex
84 + modelfit? ( sci-libs/atlas[lapack,threads=] sci-libs/fftw:3.0 )"
85 +DEPEND="${RDEPEND}
86 + modelfit? ( ${AUTOTOOLS_DEPEND} )"
87 +
88 +REQUIRED_USE="test? ( modelfit )"
89 +
90 +PATCHES=(
91 + "${FILESDIR}/${P}-fix-format-errors.patch"
92 + "${FILESDIR}/${P}-have-malloc.patch"
93 + "${FILESDIR}/${P}-have-mmap.patch"
94 + "${FILESDIR}/${P}-sigbus.patch"
95 +)
96 +
97 +src_prepare() {
98 + default
99 + if use modelfit; then
100 + local mycblas=atlcblas myclapack=atlclapack
101 + if use threads; then
102 + [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptcblas.so ]] && \
103 + mycblas=ptcblas
104 + [[ -e "${EPREFIX}"/usr/$(get_libdir)/libptclapack.so ]] && \
105 + myclapack=ptclapack
106 + fi
107 + sed -i \
108 + -e "s/-lcblas/-l${mycblas}/g" \
109 + -e "s/AC_CHECK_LIB(cblas/AC_CHECK_LIB(${mycblas}/g" \
110 + -e "s/-llapack/-l${myclapack}/g" \
111 + -e "s/AC_CHECK_LIB(lapack/AC_CHECK_LIB(${myclapack}/g" \
112 + acx_atlas.m4 || die
113 + eautoreconf
114 + fi
115 +}
116 +
117 +src_configure() {
118 + econf \
119 + --with-atlas-incdir="${EPREFIX}/usr/include/atlas" \
120 + $(use_enable modelfit model-fitting) \
121 + $(use_enable threads)
122 +}
123 +
124 +src_install () {
125 + default
126 + CONFDIR=/usr/share/sextractor
127 + insinto ${CONFDIR}
128 + doins config/*
129 + use doc && dodoc doc/*
130 +}
131 +
132 +pkg_postinst() {
133 + elog "SExtractor examples configuration files are located in"
134 + elog "${EROOT%/}/${CONFDIR} and are not loaded anymore by default."
135 +}