Gentoo Archives: gentoo-commits

From: "Robert Piasek (dagger)" <dagger@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/paludis: paludis-0.58.2.ebuild ChangeLog
Date: Thu, 03 Feb 2011 09:15:55
Message-Id: 20110203091544.9860C20054@flycatcher.gentoo.org
1 dagger 11/02/03 09:15:44
2
3 Modified: ChangeLog
4 Added: paludis-0.58.2.ebuild
5 Log:
6 Add version 0.58.2
7
8 (Portage version: 2.1.9.35/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.192 sys-apps/paludis/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.192&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.192&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/ChangeLog?r1=1.191&r2=1.192
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v
20 retrieving revision 1.191
21 retrieving revision 1.192
22 diff -u -r1.191 -r1.192
23 --- ChangeLog 23 Jan 2011 20:19:49 -0000 1.191
24 +++ ChangeLog 3 Feb 2011 09:15:44 -0000 1.192
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/paludis
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v 1.191 2011/01/23 20:19:49 peper Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v 1.192 2011/02/03 09:15:44 dagger Exp $
30 +
31 +*paludis-0.58.2 (03 Feb 2011)
32 +
33 + 03 Feb 2011; Robert Piasek <dagger@g.o> +paludis-0.58.2.ebuild:
34 + Add version 0.58.2
35
36 *paludis-0.58.1 (23 Jan 2011)
37
38
39
40
41 1.1 sys-apps/paludis/paludis-0.58.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/paludis-0.58.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/paludis-0.58.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: paludis-0.58.2.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.58.2.ebuild,v 1.1 2011/02/03 09:15:44 dagger Exp $
51
52 inherit bash-completion eutils
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 pbins portage pink python-bindings ruby-bindings search-index vim-syntax visibility xml zsh-completion"
59 LICENSE="GPL-2 vim-syntax? ( vim )"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
62
63 COMMON_DEPEND="
64 >=app-admin/eselect-1.2.13
65 >=app-shells/bash-3.2
66 >=sys-devel/gcc-4.4
67 dev-libs/libpcre
68 sys-apps/file
69 pbins? ( >=app-arch/libarchive-2.8.4 )
70 python-bindings? ( >=dev-lang/python-2.6 >=dev-libs/boost-1.41.0 )
71 ruby-bindings? ( >=dev-lang/ruby-1.8 )
72 xml? ( >=dev-libs/libxml2-2.6 )
73 search-index? ( >=dev-db/sqlite-3 )"
74
75 DEPEND="${COMMON_DEPEND}
76 doc? (
77 || ( >=app-doc/doxygen-1.5.3 <=app-doc/doxygen-1.5.1 )
78 media-gfx/imagemagick
79 python-bindings? ( dev-python/epydoc dev-python/pygments )
80 ruby-bindings? ( dev-ruby/syntax dev-ruby/allison )
81 )
82 dev-util/pkgconfig"
83
84 RDEPEND="${COMMON_DEPEND}
85 sys-apps/sandbox"
86
87 # Keep syntax 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 app-admin/eselect-package-manager"
92
93 PROVIDE="virtual/portage"
94
95 create-paludis-user() {
96 enewgroup "paludisbuild"
97 enewuser "paludisbuild" -1 -1 "/var/tmp/paludis" "paludisbuild,tty"
98 }
99
100 pkg_setup() {
101 if ! built_with_use dev-libs/libpcre cxx ; then
102 eerror "Paludis needs dev-libs/libpcre built with C++ support"
103 eerror "Please build dev-libs/libpcre with USE=cxx support"
104 die "Rebuild dev-libs/libpcre with USE=cxx"
105 fi
106
107 if use python-bindings && \
108 ! built_with_use --missing true dev-libs/boost python; then
109 eerror "With USE python-bindings you need boost build with the python"
110 eerror "use flag."
111 die "Rebuild dev-libs/boost with USE python"
112 fi
113
114 if use pbins && \
115 built_with_use app-arch/libarchive xattr; then
116 eerror "With USE pbins you need libarchive build without the xattr"
117 eerror "use flag."
118 die "Rebuild app-arch/libarchive without USE xattr"
119 fi
120
121 if id paludisbuild >/dev/null 2>/dev/null ; then
122 if ! groups paludisbuild | grep --quiet '\<tty\>' ; then
123 eerror "The 'paludisbuild' user is now expected to be a member of the"
124 eerror "'tty' group. You should add the user to this group before"
125 eerror "upgrading Paludis."
126 die "Please add paludisbuild to tty group"
127 fi
128 fi
129
130 create-paludis-user
131 }
132
133 src_compile() {
134 local repositories=`echo default unavailable unpackaged | tr -s \ ,`
135 local clients=`echo default accerso adjutrix appareo cave importare inquisitio instruo paludis reconcilio | tr -s \ ,`
136 local environments=`echo default $(usev portage ) | tr -s \ ,`
137 econf \
138 $(use_enable doc doxygen ) \
139 $(use_enable pbins ) \
140 $(use_enable pink ) \
141 $(use_enable ruby-bindings ruby ) \
142 $(useq ruby-bindings && useq doc && echo --enable-ruby-doc ) \
143 $(use_enable python-bindings python ) \
144 $(useq python-bindings && useq doc && echo --enable-python-doc ) \
145 $(use_enable vim-syntax vim ) \
146 $(use_enable visibility ) \
147 $(use_enable xml ) \
148 $(use_enable search-index ) \
149 --with-vim-install-dir=/usr/share/vim/vimfiles \
150 --with-repositories=${repositories} \
151 --with-clients=${clients} \
152 --with-environments=${environments} \
153 || die "econf failed"
154
155 emake || die "emake failed"
156 }
157
158 src_install() {
159 emake DESTDIR="${D}" install || die "install failed"
160 dodoc AUTHORS README NEWS
161
162 BASHCOMPLETION_NAME="adjutrix" dobashcompletion bash-completion/adjutrix
163 BASHCOMPLETION_NAME="paludis" dobashcompletion bash-completion/paludis
164 BASHCOMPLETION_NAME="accerso" dobashcompletion bash-completion/accerso
165 BASHCOMPLETION_NAME="importare" dobashcompletion bash-completion/importare
166 BASHCOMPLETION_NAME="instruo" dobashcompletion bash-completion/instruo
167 BASHCOMPLETION_NAME="reconcilio" dobashcompletion bash-completion/reconcilio
168 BASHCOMPLETION_NAME="inquisitio" dobashcompletion bash-completion/inquisitio
169 BASHCOMPLETION_NAME="cave" dobashcompletion bash-completion/cave
170
171 if use zsh-completion ; then
172 insinto /usr/share/zsh/site-functions
173 doins zsh-completion/_paludis
174 doins zsh-completion/_adjutrix
175 doins zsh-completion/_importare
176 doins zsh-completion/_reconcilio
177 doins zsh-completion/_inquisitio
178 doins zsh-completion/_paludis_packages
179 doins zsh-completion/_cave
180 fi
181 }
182
183 src_test() {
184 # Work around Portage bugs
185 export PALUDIS_DO_NOTHING_SANDBOXY="portage sucks"
186 export BASH_ENV=/dev/null
187
188 if [[ `id -u` == 0 ]] ; then
189 # hate
190 export PALUDIS_REDUCED_UID=0
191 export PALUDIS_REDUCED_GID=0
192 fi
193
194 if ! emake check ; then
195 eerror "Tests failed. Looking for files for you to add to your bug report..."
196 find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
197 eerror " $a"
198 done
199 die "Make check failed"
200 fi
201 }
202
203 pkg_postinst() {
204 pm_is_paludis=false
205 if [[ -f ${ROOT}/etc/env.d/50package-manager ]] ; then
206 pm_is_paludis=$( source ${ROOT}/etc/env.d/50package-manager ; [[ ${PACKAGE_MANAGER} == paludis ]] && echo true || echo false )
207 fi
208
209 if ! $pm_is_paludis ; then
210 elog "If you are using paludis or cave as your primary package manager,"
211 elog "you should consider running:"
212 elog " eselect package-manager set paludis"
213 fi
214 }