Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/paludis/
Date: Sun, 04 Dec 2016 07:36:05
Message-Id: 1480836937.6161fc8af2a0b8618f1d0814dc2d6667ea4ee3aa.graaff@gentoo
1 commit: 6161fc8af2a0b8618f1d0814dc2d6667ea4ee3aa
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 4 07:35:37 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 4 07:35:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6161fc8a
7
8 sys-apps/paludis: cleanup
9
10 Package-Manager: portage-2.3.0
11
12 sys-apps/paludis/paludis-2.4.0.ebuild | 163 ----------------------------------
13 1 file changed, 163 deletions(-)
14
15 diff --git a/sys-apps/paludis/paludis-2.4.0.ebuild b/sys-apps/paludis/paludis-2.4.0.ebuild
16 deleted file mode 100644
17 index 2549131..00000000
18 --- a/sys-apps/paludis/paludis-2.4.0.ebuild
19 +++ /dev/null
20 @@ -1,163 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -
27 -PYTHON_COMPAT=( python2_7 )
28 -# matching profile defaults for now
29 -RUBY_VER=2.1
30 -
31 -inherit bash-completion-r1 eutils python-single-r1 user
32 -
33 -DESCRIPTION="paludis, the other package mangler"
34 -HOMEPAGE="http://paludis.exherbo.org/"
35 -SRC_URI="http://paludis.exherbo.org/download/${P}.tar.bz2"
36 -
37 -IUSE="doc pbins pink python ruby search-index test +xml"
38 -LICENSE="GPL-2 vim"
39 -SLOT="0"
40 -KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86"
41 -
42 -COMMON_DEPEND="
43 - >=app-admin/eselect-1.2.13
44 - >=app-shells/bash-3.2
45 - dev-libs/libpcre[cxx]
46 - sys-apps/file
47 - pbins? ( >=app-arch/libarchive-3.1.2 )
48 - python? (
49 - ${PYTHON_DEPS}
50 - >=dev-libs/boost-1.41.0[python,${PYTHON_USEDEP}] )
51 - ruby? ( dev-lang/ruby:${RUBY_VER} )
52 - search-index? ( >=dev-db/sqlite-3 )
53 - xml? ( >=dev-libs/libxml2-2.6 )"
54 -
55 -DEPEND="${COMMON_DEPEND}
56 - >=app-text/asciidoc-8.6.3
57 - app-text/htmltidy
58 - app-text/xmlto
59 - >=sys-devel/gcc-4.7
60 - doc? (
61 - || (
62 - >=app-doc/doxygen-1.5.3
63 - <=app-doc/doxygen-1.5.1 )
64 - python? (
65 - dev-python/sphinx[${PYTHON_USEDEP}] )
66 - ruby? ( dev-ruby/syntax[ruby_targets_ruby${RUBY_VER/./}] )
67 - )
68 - virtual/pkgconfig
69 - test? ( >=dev-cpp/gtest-1.6.0-r1 )"
70 -
71 -RDEPEND="${COMMON_DEPEND}
72 - sys-apps/sandbox"
73 -
74 -PDEPEND="app-eselect/eselect-package-manager"
75 -
76 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
77 -RESTRICT="!test? ( test )"
78 -
79 -pkg_pretend() {
80 - if [[ ${MERGE_TYPE} != buildonly ]]; then
81 - if id paludisbuild >/dev/null 2>/dev/null ; then
82 - if ! groups paludisbuild | grep --quiet '\<tty\>' ; then
83 - eerror "The 'paludisbuild' user is now expected to be a member of the"
84 - eerror "'tty' group. You should add the user to this group before"
85 - eerror "upgrading Paludis."
86 - die "Please add paludisbuild to tty group"
87 - fi
88 - fi
89 - fi
90 -
91 - if [[ ${MERGE_TYPE} != binary ]]; then
92 - if [[ $(gcc-major-version) -lt 4
93 - || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ) ]]
94 - then
95 - eerror "Paludis requires at least gcc 4.7 to build. Please switch the active"
96 - eerror "gcc version using gcc-config."
97 - die "Paludis requires at least gcc 4.7"
98 - fi
99 - fi
100 -}
101 -
102 -pkg_setup() {
103 - enewgroup "paludisbuild"
104 - enewuser "paludisbuild" -1 -1 "/var/tmp/paludis" "paludisbuild,tty"
105 -
106 - use python && python-single-r1_pkg_setup
107 -}
108 -
109 -src_prepare() {
110 - # Fix the script shebang on Ruby scripts.
111 - # https://bugs.gentoo.org/show_bug.cgi?id=439372#c2
112 - sed -i -e "1s/ruby/&${RUBY_VER/./}/" ruby/demos/*.rb || die
113 -
114 - epatch_user
115 -}
116 -
117 -src_configure() {
118 - local myconf=(
119 - --htmldir=/usr/share/doc/${PF}/html
120 -
121 - $(use_enable doc doxygen)
122 - $(use_enable test gtest)
123 - $(use_enable pbins)
124 - $(use_enable pink)
125 - $(use_enable python)
126 - $(use python && use_enable doc python-doc)
127 - $(use_enable ruby)
128 - $(use ruby && use_enable doc ruby-doc)
129 - --with-ruby-version="${RUBY_VER}"
130 - $(use_enable search-index)
131 - $(use_enable xml)
132 -
133 - --enable-vim
134 - --with-config-framework=eselect
135 - --with-environments=default,portage
136 - --with-vim-install-dir=/usr/share/vim/vimfiles
137 - )
138 -
139 - econf "${myconf[@]}"
140 -}
141 -
142 -src_install() {
143 - default
144 - prune_libtool_files
145 -
146 - dobashcomp bash-completion/cave
147 -
148 - insinto /usr/share/zsh/site-functions
149 - doins zsh-completion/_cave
150 -}
151 -
152 -src_test() {
153 - # Work around Portage bugs
154 - local -x PALUDIS_DO_NOTHING_SANDBOXY="portage sucks"
155 - local -x BASH_ENV=/dev/null
156 -
157 - if [[ ${EUID} == 0 ]] ; then
158 - # hate
159 - local -x PALUDIS_REDUCED_UID=0
160 - local -x PALUDIS_REDUCED_GID=0
161 - fi
162 -
163 - if ! nonfatal emake -k check ; then
164 - eerror "Tests failed. Looking for files for you to add to your bug report..."
165 - find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
166 - eerror " $a"
167 - done
168 - die "Make check failed"
169 - fi
170 -}
171 -
172 -pkg_postinst() {
173 - local pm
174 - if [[ -f ${ROOT}/etc/env.d/50package-manager ]] ; then
175 - pm=$( source "${ROOT}"/etc/env.d/50package-manager ; echo "${PACKAGE_MANAGER}" )
176 - fi
177 -
178 - if [[ ${pm} != paludis ]] ; then
179 - elog "If you are using paludis or cave as your primary package manager,"
180 - elog "you should consider running:"
181 - elog " eselect package-manager set paludis"
182 - fi
183 -}