Gentoo Archives: gentoo-commits

From: "Santiago M. Mola (coldwind)" <coldwind@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/paludis: ChangeLog paludis-0.32.1.ebuild paludis-0.32.0_alpha1.ebuild
Date: Mon, 01 Dec 2008 23:18:58
Message-Id: E1L7I2Z-0002GK-GT@stork.gentoo.org
1 coldwind 08/12/01 23:18:55
2
3 Modified: ChangeLog
4 Added: paludis-0.32.1.ebuild
5 Removed: paludis-0.32.0_alpha1.ebuild
6 Log:
7 Version bump, remove old.
8 (Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo-r2 x86_64)
9
10 Revision Changes Path
11 1.112 sys-apps/paludis/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.112&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.112&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/ChangeLog?r1=1.111&r2=1.112
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v
20 retrieving revision 1.111
21 retrieving revision 1.112
22 diff -u -r1.111 -r1.112
23 --- ChangeLog 29 Nov 2008 18:54:09 -0000 1.111
24 +++ ChangeLog 1 Dec 2008 23:18:55 -0000 1.112
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-apps/paludis
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v 1.111 2008/11/29 18:54:09 gentoofan23 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v 1.112 2008/12/01 23:18:55 coldwind Exp $
30 +
31 +*paludis-0.32.1 (01 Dec 2008)
32 +
33 + 01 Dec 2008; Santiago M. Mola <coldwind@g.o>
34 + -paludis-0.32.0_alpha1.ebuild, +paludis-0.32.1.ebuild:
35 + Version bump, remove old.
36
37 29 Nov 2008; Thomas Anderson <gentoofan23@g.o>
38 paludis-0.32.0_alpha1.ebuild:
39
40
41
42 1.1 sys-apps/paludis/paludis-0.32.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/paludis-0.32.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/paludis-0.32.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: paludis-0.32.1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/paludis-0.32.1.ebuild,v 1.1 2008/12/01 23:18:55 coldwind Exp $
52
53 inherit bash-completion eutils flag-o-matic
54
55 DESCRIPTION="paludis, the other package mangler"
56 HOMEPAGE="http://paludis.pioto.org/"
57 SRC_URI="http://paludis.pioto.org/download/${P}.tar.bz2"
58
59 IUSE="doc inquisitio portage pink python qa ruby vim-syntax visibility xml zsh-completion"
60 LICENSE="GPL-2 vim-syntax? ( vim )"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
63
64 COMMON_DEPEND="
65 >=app-admin/eselect-1.0.2
66 >=app-admin/eselect-news-20071201
67 >=app-shells/bash-3
68 inquisitio? ( dev-libs/pcre++ )
69 python? ( >=dev-lang/python-2.4 >=dev-libs/boost-1.33.1-r1 )
70 qa? ( dev-libs/pcre++ >=dev-libs/libxml2-2.6 app-crypt/gnupg )
71 ruby? ( >=dev-lang/ruby-1.8 )
72 xml? ( >=dev-libs/libxml2-2.6 )"
73
74 DEPEND="${COMMON_DEPEND}
75 doc? (
76 || ( >=app-doc/doxygen-1.5.3 <=app-doc/doxygen-1.5.1 )
77 media-gfx/imagemagick
78 python? ( dev-python/epydoc dev-python/pygments )
79 ruby? ( dev-ruby/syntax dev-ruby/allison )
80 )
81 dev-util/pkgconfig"
82
83 RDEPEND="${COMMON_DEPEND}
84 sys-apps/sandbox"
85
86 # Keep this as a PDEPEND. It avoids issues when Paludis is used as the
87 # default virtual/portage provider.
88 PDEPEND="
89 vim-syntax? ( >=app-editors/vim-core-7 )"
90
91 PROVIDE="virtual/portage"
92
93 create-paludis-user() {
94 enewgroup "paludisbuild"
95 enewuser "paludisbuild" "-1" "-1" "/var/tmp/paludis" "paludisbuild"
96 }
97
98 pkg_setup() {
99 replace-flags -Os -O2
100 replace-flags -O3 -O2
101
102 create-paludis-user
103
104 FIXED_MAKEOPTS=""
105 m=$(free -m | sed -n -e '/cache:/s,^[^[:digit:]]\+[[:digit:]]\+[^[:digit:]]\+\([[:digit:]]\+\).*,\1,p')
106 j=$(echo "$MAKEOPTS" | sed -n -e 's,.*-j\([[:digit:]]\+\).*,\1,p' )
107 if [[ -n "${m}" ]] && [[ -n "${j}" ]] && (( ${j} > 1 )); then
108 if (( m < j * 512 )) ; then
109 FIXED_MAKEOPTS="-j$(( m / 512 ))"
110 [[ ${FIXED_MAKEOPTS} == "-j0" ]] && FIXED_MAKEOPTS="-j1"
111 ewarn "Your MAKEOPTS -j is too high. To stop the kernel from throwing a hissy fit"
112 ewarn "when g++ eats all your RAM, we'll use ${FIXED_MAKEOPTS} instead."
113 fi
114 fi
115 }
116
117 src_compile() {
118 local repositories=`echo default unpackaged | tr -s \ ,`
119 local clients=`echo default accerso adjutrix importare \
120 $(usev inquisitio ) instruo paludis reconcilio | tr -s \ ,`
121 local environments=`echo default $(usev portage ) | tr -s \ ,`
122 econf \
123 $(use_enable doc doxygen ) \
124 $(use_enable pink ) \
125 $(use_enable qa ) \
126 $(use_enable ruby ) \
127 $(useq ruby && useq doc && echo --enable-ruby-doc ) \
128 $(use_enable python ) \
129 $(useq python && useq doc && echo --enable-python-doc ) \
130 $(use_enable xml ) \
131 $(use_enable vim-syntax vim ) \
132 $(use_enable visibility ) \
133 --with-vim-install-dir=/usr/share/vim/vimfiles \
134 --enable-sandbox \
135 --with-repositories=${repositories} \
136 --with-clients=${clients} \
137 --with-environments=${environments} \
138 || die "econf failed"
139
140 emake ${FIXED_MAKEOPTS} || die "emake failed"
141 }
142
143 src_install() {
144 emake DESTDIR="${D}" install || die "install failed"
145 dodoc AUTHORS README NEWS
146
147 BASH_COMPLETION_NAME="adjutrix" dobashcompletion bash-completion/adjutrix
148 BASH_COMPLETION_NAME="paludis" dobashcompletion bash-completion/paludis
149 BASH_COMPLETION_NAME="accerso" dobashcompletion bash-completion/accerso
150 BASH_COMPLETION_NAME="importare" dobashcompletion bash-completion/importare
151 BASH_COMPLETION_NAME="instruo" dobashcompletion bash-completion/instruo
152 BASH_COMPLETION_NAME="reconcilio" dobashcompletion bash-completion/reconcilio
153 use qa && \
154 BASH_COMPLETION_NAME="qualudis" \
155 dobashcompletion bash-completion/qualudis
156 use inquisitio && \
157 BASH_COMPLETION_NAME="inquisitio" \
158 dobashcompletion bash-completion/inquisitio
159
160 if use zsh-completion ; then
161 insinto /usr/share/zsh/site-functions
162 doins zsh-completion/_paludis
163 doins zsh-completion/_adjutrix
164 doins zsh-completion/_importare
165 doins zsh-completion/_reconcilio
166 use inquisitio && doins zsh-completion/_inquisitio
167 doins zsh-completion/_paludis_packages
168 fi
169 }
170
171 src_test() {
172 # Work around Portage bugs
173 export PALUDIS_DO_NOTHING_SANDBOXY="portage sucks"
174 export BASH_ENV=/dev/null
175
176 # some people don't have userpriv. they also suck.
177 if [[ `id -u` == 0 ]] ; then
178 ewarn "Can't currently run tests as root"
179 return
180 fi
181
182 if ! emake check ; then
183 eerror "Tests failed. Looking for file for you to add to your bug report..."
184 find . -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
185 eerror " $a"
186 done
187 die "Make check failed."
188 fi
189 }
190
191 pkg_postinst() {
192 # Remove the symlink created by app-admin/eselect-news
193 if [[ -L "${ROOT}/var/lib/paludis/news" ]] ; then
194 rm "${ROOT}/var/lib/paludis/news"
195 fi
196 }