Gentoo Archives: gentoo-commits

From: "Ingmar Vanhassel (ingmar)" <ingmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/paludis: ChangeLog paludis-0.28.2.ebuild
Date: Mon, 04 Aug 2008 19:18:29
Message-Id: E1KQ5ZY-00067L-4h@stork.gentoo.org
1 ingmar 08/08/04 19:18:24
2
3 Modified: ChangeLog
4 Added: paludis-0.28.2.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.5.5)
8
9 Revision Changes Path
10 1.101 sys-apps/paludis/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.101&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.101&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/ChangeLog?r1=1.100&r2=1.101
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v
19 retrieving revision 1.100
20 retrieving revision 1.101
21 diff -u -r1.100 -r1.101
22 --- ChangeLog 29 Jul 2008 18:56:39 -0000 1.100
23 +++ ChangeLog 4 Aug 2008 19:18:23 -0000 1.101
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-apps/paludis
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v 1.100 2008/07/29 18:56:39 coldwind Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v 1.101 2008/08/04 19:18:23 ingmar Exp $
29 +
30 +*paludis-0.28.2 (04 Aug 2008)
31 +
32 + 04 Aug 2008; Ingmar Vanhassel <ingmar@g.o> +paludis-0.28.2.ebuild:
33 + Version bump.
34
35 *paludis-0.28.1 (29 Jul 2008)
36
37
38
39
40 1.1 sys-apps/paludis/paludis-0.28.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/paludis-0.28.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/paludis/paludis-0.28.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: paludis-0.28.2.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/paludis-0.28.2.ebuild,v 1.1 2008/08/04 19:18:23 ingmar Exp $
50
51 inherit bash-completion eutils flag-o-matic
52
53 DESCRIPTION="paludis, the other package mangler"
54 HOMEPAGE="http://paludis.pioto.org/"
55 SRC_URI="http://paludis.pioto.org/download/${P}.tar.bz2"
56
57 IUSE="doc glsa inquisitio portage pink python qa ruby vim-syntax zsh-completion visibility"
58 LICENSE="GPL-2 vim-syntax? ( vim )"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
61
62 COMMON_DEPEND="
63 >=app-admin/eselect-1.0.2
64 >=app-admin/eselect-news-20071201
65 >=app-shells/bash-3
66 qa? ( dev-libs/pcre++ >=dev-libs/libxml2-2.6 app-crypt/gnupg )
67 inquisitio? ( dev-libs/pcre++ )
68 glsa? ( >=dev-libs/libxml2-2.6 )
69 ruby? ( >=dev-lang/ruby-1.8 )
70 python? ( >=dev-lang/python-2.4 >=dev-libs/boost-1.33.1-r1 )"
71
72 DEPEND="${COMMON_DEPEND}
73 doc? (
74 || ( >=app-doc/doxygen-1.5.3 <=app-doc/doxygen-1.5.1 )
75 media-gfx/imagemagick
76 )
77 python? ( dev-python/epydoc dev-python/pygments )
78 ruby? ( doc? ( dev-ruby/syntax dev-ruby/allison ) )
79 dev-util/pkgconfig"
80
81 RDEPEND="${COMMON_DEPEND}
82 net-misc/wget
83 net-misc/rsync
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 pkg_setup() {
94 replace-flags -Os -O2
95 replace-flags -O3 -O2
96
97 enewgroup "paludisbuild"
98 enewuser "paludisbuild" "-1" "-1" "/var/tmp/paludis" "paludisbuild"
99
100 FIXED_MAKEOPTS=""
101 m=$(free -m | sed -n -e '/cache:/s,^[^[:digit:]]\+[[:digit:]]\+[^[:digit:]]\+\([[:digit:]]\+\).*,\1,p')
102 j=$(echo "$MAKEOPTS" | sed -n -e 's,.*-j\([[:digit:]]\+\).*,\1,p' )
103 if [[ -n "${m}" ]] && [[ -n "${j}" ]] && (( ${j} > 1 )); then
104 if (( m < j * 512 )) ; then
105 FIXED_MAKEOPTS="-j$(( m / 512 ))"
106 [[ ${FIXED_MAKEOPTS} == "-j0" ]] && FIXED_MAKEOPTS="-j1"
107 ewarn "Your MAKEOPTS -j is too high. To stop the kernel from throwing a hissy fit"
108 ewarn "when g++ eats all your RAM, we'll use ${FIXED_MAKEOPTS} instead."
109 fi
110 fi
111 }
112
113 src_compile() {
114 local repositories=`echo default unpackaged | tr -s \ ,`
115 local clients=`echo default accerso adjutrix contrarius importare \
116 $(usev inquisitio ) instruo paludis reconcilio | tr -s \ ,`
117 local environments=`echo default $(usev portage ) | tr -s \ ,`
118 econf \
119 $(use_enable doc doxygen ) \
120 $(use_enable pink ) \
121 $(use_enable qa ) \
122 $(use_enable ruby ) \
123 $(useq ruby && useq doc && echo --enable-ruby-doc ) \
124 $(use_enable python ) \
125 $(use_enable glsa ) \
126 $(use_enable vim-syntax vim ) \
127 $(use_enable visibility ) \
128 --with-vim-install-dir=/usr/share/vim/vimfiles \
129 --enable-sandbox \
130 --with-repositories=${repositories} \
131 --with-clients=${clients} \
132 --with-environments=${environments} \
133 || die "econf failed"
134
135 emake ${FIXED_MAKEOPTS} || die "emake failed"
136 }
137
138 src_install() {
139 emake DESTDIR="${D}" install || die "install failed"
140 dodoc AUTHORS README ChangeLog NEWS
141
142 BASH_COMPLETION_NAME="adjutrix" dobashcompletion bash-completion/adjutrix
143 BASH_COMPLETION_NAME="paludis" dobashcompletion bash-completion/paludis
144 BASH_COMPLETION_NAME="accerso" dobashcompletion bash-completion/accerso
145 BASH_COMPLETION_NAME="contrarius" dobashcompletion bash-completion/contrarius
146 BASH_COMPLETION_NAME="importare" dobashcompletion bash-completion/importare
147 BASH_COMPLETION_NAME="instruo" dobashcompletion bash-completion/instruo
148 BASH_COMPLETION_NAME="reconcilio" dobashcompletion bash-completion/reconcilio
149 use qa && \
150 BASH_COMPLETION_NAME="qualudis" \
151 dobashcompletion bash-completion/qualudis
152 use inquisitio && \
153 BASH_COMPLETION_NAME="inquisitio" \
154 dobashcompletion bash-completion/inquisitio
155
156 if use zsh-completion ; then
157 insinto /usr/share/zsh/site-functions
158 doins zsh-completion/_paludis
159 doins zsh-completion/_adjutrix
160 doins zsh-completion/_importare
161 doins zsh-completion/_reconcilio
162 use inquisitio && doins zsh-completion/_inquisitio
163 doins zsh-completion/_paludis_packages
164 fi
165 }
166
167 src_test() {
168 # Work around Portage bugs
169 export PALUDIS_DO_NOTHING_SANDBOXY="portage sucks"
170 export BASH_ENV=/dev/null
171
172 emake check || die "Make check failed"
173 }
174
175 pkg_postinst() {
176 # Remove the symlink created by app-admin/eselect-news
177 if [[ -L "${ROOT}/var/lib/paludis/news" ]] ; then
178 rm "${ROOT}/var/lib/paludis/news"
179 fi
180 }