Gentoo Archives: gentoo-commits

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