Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-astronomy/weightwatcher/files/, sci-astronomy/weightwatcher/
Date: Mon, 09 Jul 2012 23:47:56
Message-Id: 1341876831.0df5ec71914eb470768f63c1d206b30d7fd9dda3.bicatali@gentoo
1 commit: 0df5ec71914eb470768f63c1d206b30d7fd9dda3
2 Author: Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca>
3 AuthorDate: Mon Jul 9 23:33:51 2012 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 9 23:33:51 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0df5ec71
7
8 sci-astronomy/weightwatcher: live version, prefix keywording
9
10 ---
11 sci-astronomy/weightwatcher/ChangeLog | 10 ++++-
12 .../files/weightwatcher-1.8.10-configure.patch | 41 ++++++++++++++++++++
13 sci-astronomy/weightwatcher/metadata.xml | 4 +-
14 .../weightwatcher/weightwatcher-1.8.10.ebuild | 21 ++++++----
15 .../weightwatcher/weightwatcher-9999.ebuild | 36 +++++++++++++++++
16 5 files changed, 101 insertions(+), 11 deletions(-)
17
18 diff --git a/sci-astronomy/weightwatcher/ChangeLog b/sci-astronomy/weightwatcher/ChangeLog
19 index 7588f6b..7f7b9f5 100644
20 --- a/sci-astronomy/weightwatcher/ChangeLog
21 +++ b/sci-astronomy/weightwatcher/ChangeLog
22 @@ -1,7 +1,15 @@
23 # ChangeLog for sci-astronomy/weightwatcher
24 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 # $Header: $
27
28 +*weightwatcher-9999 (09 Jul 2012)
29 +
30 + 09 Jul 2012; Sébastien Fabbro <bicatali@g.o>
31 + weightwatcher-1.8.10.ebuild, +files/weightwatcher-1.8.10-configure.patch,
32 + +weightwatcher-9999.ebuild, metadata.xml:
33 + Added live version, fixed for respecting flags, keyword amd64-linux,
34 + x86-linux
35 +
36 04 Aug 2011; Sébastien Fabbro <bicatali@g.o> metadata.xml:
37 Switched herd to sci-astronomy
38
39
40 diff --git a/sci-astronomy/weightwatcher/files/weightwatcher-1.8.10-configure.patch b/sci-astronomy/weightwatcher/files/weightwatcher-1.8.10-configure.patch
41 new file mode 100644
42 index 0000000..c86a42b
43 --- /dev/null
44 +++ b/sci-astronomy/weightwatcher/files/weightwatcher-1.8.10-configure.patch
45 @@ -0,0 +1,41 @@
46 +diff -Nur weightwatcher-1.8.10.orig/configure.ac weightwatcher-1.8.10/configure.ac
47 +--- weightwatcher-1.8.10.orig/configure.ac 2012-07-09 16:26:31.554196307 -0700
48 ++++ weightwatcher-1.8.10/configure.ac 2012-07-09 16:27:30.044509170 -0700
49 +@@ -20,36 +20,15 @@
50 + AC_SUBST(DATE3, "$date3")
51 +
52 + # Include macros
53 +-sinclude(acx_prog_cc_optim.m4)
54 + sinclude(acx_urbi_resolve_dir.m4)
55 +
56 + # Display pakage and version number
57 + AC_MSG_RESULT([*********** Configuring: $PACKAGE $VERSION ($date) **********])
58 +
59 +-# Initialize the list of compilers to consider
60 +-cclist="cc gcc"
61 +-
62 +-# Backup and reset the input CFLAGS and LDFLAGS
63 +-mycflags="$CFLAGS"
64 +-CFLAGS=""
65 +-myldflags="$LDFLAGS"
66 +-LDFLAGS=""
67 +-
68 +-# Provide special option for the Linux Intel C compiler
69 +-AC_MSG_CHECKING([for Linux Intel C compiler mode])
70 +-AC_ARG_ENABLE(icc,
71 +- [AC_HELP_STRING([--enable-icc],
72 +- [Enable special mode for compilation with the Intel compiler \
73 +-(off by default)])],
74 +- use_icc="yes"
75 +- cclist="icc $cclist"
76 +- AC_MSG_RESULT([yes]),
77 +- use_icc="no"
78 +- AC_MSG_RESULT([no]))
79 +
80 + # Checks for programs.
81 + # GCC is chosen last because it is likely to yield less optimized code
82 +-AC_PROG_CC([$cclist])
83 ++AC_PROG_CC
84 + # C Compiler: Check that it is ANSI C
85 + AM_PROG_CC_STDC
86 + # C Compiler: Check that it is POSIX-compliant
87
88 diff --git a/sci-astronomy/weightwatcher/metadata.xml b/sci-astronomy/weightwatcher/metadata.xml
89 index 4cb9619..f14b078 100644
90 --- a/sci-astronomy/weightwatcher/metadata.xml
91 +++ b/sci-astronomy/weightwatcher/metadata.xml
92 @@ -1,8 +1,8 @@
93 <?xml version="1.0" encoding="UTF-8"?>
94 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
95 <pkgmetadata>
96 - <herd>sci-astronomy</herd>
97 - <longdescription lang="en">
98 +<herd>sci-astronomy</herd>
99 +<longdescription lang="en">
100 WeightWatcher is a program that combines weight-maps, flag-maps and
101 polygon data in order to produce control maps which can directly be
102 used in astronomical image-processing packages like Drizzle,
103
104 diff --git a/sci-astronomy/weightwatcher/weightwatcher-1.8.10.ebuild b/sci-astronomy/weightwatcher/weightwatcher-1.8.10.ebuild
105 index c4a2770..e8b42de 100644
106 --- a/sci-astronomy/weightwatcher/weightwatcher-1.8.10.ebuild
107 +++ b/sci-astronomy/weightwatcher/weightwatcher-1.8.10.ebuild
108 @@ -1,10 +1,10 @@
109 -# Copyright 1999-2011 Gentoo Foundation
110 +# Copyright 1999-2012 Gentoo Foundation
111 # Distributed under the terms of the GNU General Public License v2
112 # $Header: $
113
114 EAPI=4
115
116 -inherit eutils
117 +inherit eutils autotools
118
119 DESCRIPTION="Combine weight maps and polygon for astronomical images weighting"
120 HOMEPAGE="http://www.astromatic.net/software/weightwatcher/"
121 @@ -12,13 +12,18 @@ SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
122
123 LICENSE="GPL-3"
124 SLOT="0"
125 -KEYWORDS="~amd64 ~x86"
126 -IUSE="doc threads"
127 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
128 +IUSE="doc"
129 +
130 +RDEPEND=""
131 +DEPEND="${RDEPEND}"
132 +
133 +src_prepare() {
134 + epatch "${FILESDIR}"/${P}-configure.patch
135 + eautoreconf
136 +}
137
138 src_install () {
139 default
140 - if use doc; then
141 - insinto /usr/share/doc/${PF}
142 - doins doc/*.pdf
143 - fi
144 + use doc && dodoc doc/*.pdf
145 }
146
147 diff --git a/sci-astronomy/weightwatcher/weightwatcher-9999.ebuild b/sci-astronomy/weightwatcher/weightwatcher-9999.ebuild
148 new file mode 100644
149 index 0000000..0d12ddd
150 --- /dev/null
151 +++ b/sci-astronomy/weightwatcher/weightwatcher-9999.ebuild
152 @@ -0,0 +1,36 @@
153 +# Copyright 1999-2012 Gentoo Foundation
154 +# Distributed under the terms of the GNU General Public License v2
155 +# $Header: $
156 +
157 +EAPI=4
158 +
159 +if [[ ${PV} == "9999" ]] ; then
160 + _SVN=subversion
161 + ESVN_REPO_URI="https://astromatic.net/pubsvn/software/${PN}/trunk"
162 + SRC_URI=""
163 + KEYWORDS=""
164 +else
165 + SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
166 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
167 +fi
168 +
169 +inherit ${_SVN} autotools
170 +
171 +DESCRIPTION="Combine weight maps and polygon for astronomical images weighting"
172 +HOMEPAGE="http://www.astromatic.net/software/weightwatcher/"
173 +
174 +LICENSE="GPL-3"
175 +SLOT="0"
176 +IUSE="doc"
177 +
178 +RDEPEND=""
179 +DEPEND="${RDEPEND}"
180 +
181 +src_prepare() {
182 + eautoreconf
183 +}
184 +
185 +src_install () {
186 + default
187 + use doc && dodoc doc/*
188 +}