Gentoo Archives: gentoo-commits

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