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.50.3.ebuild
Date: Sat, 31 Jul 2010 12:02:48
Message-Id: 20100731112739.C34122CC0B@corvid.gentoo.org
1 peper 10/07/31 11:27:39
2
3 Modified: ChangeLog
4 Added: paludis-0.50.3.ebuild
5 Log:
6 Add 0.50.3
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.167 sys-apps/paludis/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.167&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/ChangeLog?rev=1.167&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/ChangeLog?r1=1.166&r2=1.167
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v
19 retrieving revision 1.166
20 retrieving revision 1.167
21 diff -u -r1.166 -r1.167
22 --- ChangeLog 28 Jul 2010 11:16:41 -0000 1.166
23 +++ ChangeLog 31 Jul 2010 11:27:39 -0000 1.167
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.166 2010/07/28 11:16:41 peper Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/paludis/ChangeLog,v 1.167 2010/07/31 11:27:39 peper Exp $
29 +
30 +*paludis-0.50.3 (31 Jul 2010)
31 +
32 + 31 Jul 2010; Piotr JaroszyƄski <peper@g.o> +paludis-0.50.3.ebuild:
33 + Add 0.50.3
34
35 *paludis-0.50.2 (28 Jul 2010)
36
37
38
39
40 1.1 sys-apps/paludis/paludis-0.50.3.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/paludis-0.50.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/paludis/paludis-0.50.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: paludis-0.50.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.50.3.ebuild,v 1.1 2010/07/31 11:27:39 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 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
71 DEPEND="${COMMON_DEPEND}
72 doc? (
73 || ( >=app-doc/doxygen-1.5.3 <=app-doc/doxygen-1.5.1 )
74 media-gfx/imagemagick
75 python-bindings? ( dev-python/epydoc dev-python/pygments )
76 ruby-bindings? ( dev-ruby/syntax dev-ruby/allison )
77 )
78 dev-util/pkgconfig"
79
80 RDEPEND="${COMMON_DEPEND}
81 sys-apps/sandbox"
82
83 # Keep syntax as a PDEPEND. It avoids issues when Paludis is used as the
84 # default virtual/portage provider.
85 PDEPEND="
86 vim-syntax? ( >=app-editors/vim-core-7 )"
87
88 PROVIDE="virtual/portage"
89
90 create-paludis-user() {
91 enewgroup "paludisbuild"
92 enewuser "paludisbuild" -1 -1 "/var/tmp/paludis" "paludisbuild"
93 }
94
95 pkg_setup() {
96 if ! built_with_use dev-libs/libpcre cxx ; then
97 eerror "Paludis needs dev-libs/libpcre built with C++ support"
98 eerror "Please build dev-libs/libpcre with USE=cxx support"
99 die "Rebuild dev-libs/libpcre with USE=cxx"
100 fi
101
102 if use python-bindings && \
103 ! built_with_use --missing true dev-libs/boost python; then
104 eerror "With USE python-bindings you need boost build with the python"
105 eerror "use flag."
106 die "Rebuild dev-libs/boost with USE python"
107 fi
108
109 create-paludis-user
110 }
111
112 src_compile() {
113 local repositories=`echo default unavailable unpackaged | tr -s \ ,`
114 local clients=`echo default accerso adjutrix appareo cave importare inquisitio instruo paludis reconcilio | tr -s \ ,`
115 local environments=`echo default $(usev portage ) | tr -s \ ,`
116 econf \
117 $(use_enable doc doxygen ) \
118 $(use_enable pink ) \
119 $(use_enable ruby-bindings ruby ) \
120 $(useq ruby-bindings && useq doc && echo --enable-ruby-doc ) \
121 $(use_enable python-bindings python ) \
122 $(useq python-bindings && useq doc && echo --enable-python-doc ) \
123 $(use_enable vim-syntax vim ) \
124 $(use_enable visibility ) \
125 $(use_enable xml ) \
126 --with-vim-install-dir=/usr/share/vim/vimfiles \
127 --with-repositories=${repositories} \
128 --with-clients=${clients} \
129 --with-environments=${environments} \
130 || die "econf failed"
131
132 emake || die "emake failed"
133 }
134
135 src_install() {
136 emake DESTDIR="${D}" install || die "install failed"
137 dodoc AUTHORS README NEWS
138
139 BASHCOMPLETION_NAME="adjutrix" dobashcompletion bash-completion/adjutrix
140 BASHCOMPLETION_NAME="paludis" dobashcompletion bash-completion/paludis
141 BASHCOMPLETION_NAME="accerso" dobashcompletion bash-completion/accerso
142 BASHCOMPLETION_NAME="importare" dobashcompletion bash-completion/importare
143 BASHCOMPLETION_NAME="instruo" dobashcompletion bash-completion/instruo
144 BASHCOMPLETION_NAME="reconcilio" dobashcompletion bash-completion/reconcilio
145 BASHCOMPLETION_NAME="inquisitio" dobashcompletion bash-completion/inquisitio
146 BASHCOMPLETION_NAME="cave" dobashcompletion bash-completion/cave
147
148 if use zsh-completion ; then
149 insinto /usr/share/zsh/site-functions
150 doins zsh-completion/_paludis
151 doins zsh-completion/_adjutrix
152 doins zsh-completion/_importare
153 doins zsh-completion/_reconcilio
154 doins zsh-completion/_inquisitio
155 doins zsh-completion/_paludis_packages
156 doins zsh-completion/_cave
157 fi
158 }
159
160 src_test() {
161 # Work around Portage bugs
162 export PALUDIS_DO_NOTHING_SANDBOXY="portage sucks"
163 export BASH_ENV=/dev/null
164
165 if [[ `id -u` == 0 ]] ; then
166 # hate
167 export PALUDIS_REDUCED_UID=0
168 export PALUDIS_REDUCED_GID=0
169 fi
170
171 if ! emake check ; then
172 eerror "Tests failed. Looking for files for you to add to your bug report..."
173 find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
174 eerror " $a"
175 done
176 die "Make check failed"
177 fi
178 }