commit:     978a677c6ebe7e5737918a5452af9c3e81766888
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  4 08:39:30 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar  4 11:19:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=978a677c

sys-apps/paludis: Bump to 20180214 snapshot

Bump to a fresh snapshot that apparently includes a few tiny fixes,
including a fix to whirlpool code for 32-bit platforms.

Closes: https://bugs.gentoo.org/649520

 sys-apps/paludis/Manifest                         |   1 +
 sys-apps/paludis/paludis-3.0.0_pre20180214.ebuild | 148 ++++++++++++++++++++++
 2 files changed, 149 insertions(+)

diff --git a/sys-apps/paludis/Manifest b/sys-apps/paludis/Manifest
index 0221a358b5e..8204d0bea72 100644
--- a/sys-apps/paludis/Manifest
+++ b/sys-apps/paludis/Manifest
@@ -1 +1,2 @@
+DIST paludis-57881321fa3d5d82a9260db54afd608fd61dd533.tar.xz 1004012 BLAKE2B 
0bc65918b277ae4203fb5dc66fe3a84caa142b5e97b9e1f1b9a5f2e1b9c27fb4c60109c0bc1c058e095850bcf488075e21ab080bc5c4f2156e4c901923856ddb
 SHA512 
ed9053b933172dea0122c171a14965b0d183affa8d3f2aa2be5cc2a2cf11f81f8a693b30bee93963dd890ebe41f454cf5ec5ab38f0b7924318b8bd8d1c37f5d9
 DIST paludis-f8e58ee1d02d2476ae92ebc3737e42b8b6a36891.tar.xz 1004024 BLAKE2B 
1c34c93815efa41298cc2916c4428971d1f54242cfd759c771972bdcde94986c6af03546372c7eda277a343851b38ee93c0a103e519457b42e48cc7bed87b755
 SHA512 
813592b6f164d7994000ff1740e003049e040e7d58832bb1393a1f4facf428806b57bbf97855b830f75acf4b20e963093e9993b110f76f44e25afb9a8a1eaa1e

diff --git a/sys-apps/paludis/paludis-3.0.0_pre20180214.ebuild 
b/sys-apps/paludis/paludis-3.0.0_pre20180214.ebuild
new file mode 100644
index 00000000000..ddbc8a4e08a
--- /dev/null
+++ b/sys-apps/paludis/paludis-3.0.0_pre20180214.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+RUBY_VER=2.3
+
+inherit bash-completion-r1 cmake-utils python-single-r1 user
+
+MY_P=paludis-57881321fa3d5d82a9260db54afd608fd61dd533
+DESCRIPTION="paludis, the other package mangler"
+HOMEPAGE="http://paludis.exherbo.org/";
+SRC_URI="https://git.exherbo.org/paludis/paludis.git/snapshot/${MY_P}.tar.xz";
+
+IUSE="doc pbins pink python ruby ruby_targets_ruby${RUBY_VER/./} search-index 
test +xml"
+LICENSE="GPL-2 vim"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+COMMON_DEPEND="
+       >=app-admin/eselect-1.2.13
+       >=app-shells/bash-3.2:0
+       dev-libs/libpcre:=[cxx]
+       sys-apps/file:=
+       pbins? ( >=app-arch/libarchive-3.1.2:= )
+       python? (
+               ${PYTHON_DEPS}
+               >=dev-libs/boost-1.41.0:=[python,${PYTHON_USEDEP}] )
+       ruby? ( dev-lang/ruby:${RUBY_VER} )
+       search-index? ( >=dev-db/sqlite-3:= )
+       xml? ( >=dev-libs/libxml2-2.6:= )"
+
+DEPEND="${COMMON_DEPEND}
+       app-arch/xz-utils
+       >=app-text/asciidoc-8.6.3
+       app-text/htmltidy
+       app-text/xmlto
+       >=sys-devel/gcc-4.7
+       doc? (
+               app-doc/doxygen
+               python? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+               ruby? ( dev-ruby/syntax[ruby_targets_ruby${RUBY_VER/./}] )
+       )
+       virtual/pkgconfig
+       test? ( >=dev-cpp/gtest-1.6.0-r1 )"
+
+RDEPEND="${COMMON_DEPEND}
+       sys-apps/sandbox"
+
+PDEPEND="app-eselect/eselect-package-manager"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+       ruby? ( ruby_targets_ruby${RUBY_VER/./} )"
+RESTRICT="!test? ( test )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != buildonly ]]; then
+               if id paludisbuild >/dev/null 2>/dev/null ; then
+                       if ! groups paludisbuild | grep --quiet '\<tty\>' ; then
+                               eerror "The 'paludisbuild' user is now expected 
to be a member of the"
+                               eerror "'tty' group. You should add the user to 
this group before"
+                               eerror "upgrading Paludis."
+                               die "Please add paludisbuild to tty group"
+                       fi
+               fi
+       fi
+}
+
+pkg_setup() {
+       enewgroup "paludisbuild"
+       enewuser "paludisbuild" -1 -1 "/var/tmp/paludis" "paludisbuild,tty"
+
+       use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+       # Fix the script shebang on Ruby scripts.
+       # https://bugs.gentoo.org/show_bug.cgi?id=439372#c2
+       sed -i -e "1s/ruby/&${RUBY_VER/./}/" ruby/demos/*.rb || die
+
+       cmake-utils_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DENABLE_DOXYGEN=$(usex doc)
+               -DENABLE_GTEST=$(usex test)
+               -DENABLE_PBINS=$(usex pbins)
+               -DENABLE_PYTHON=$(usex python)
+               -DENABLE_PYTHON_DOCS=$(usex doc) # USE=python implicit
+               -DENABLE_RUBY=$(usex ruby)
+               -DENABLE_RUBY_DOCS=$(usex doc) # USE=ruby implicit
+               -DENABLE_SEARCH_INDEX=$(usex search-index)
+               -DENABLE_VIM=ON
+               -DENABLE_XML=$(usex xml)
+
+               -DPALUDIS_COLOUR_PINK=$(usex pink)
+               -DRUBY_VERSION=${RUBY_VER}
+               -DPALUDIS_ENVIRONMENTS=all
+               -DPALUDIS_DEFAULT_DISTRIBUTION=gentoo
+               -DPALUDIS_CLIENTS=all
+               -DCONFIG_FRAMEWORK=eselect
+
+               # GNUInstallDirs
+               -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+       )
+
+       cmake-utils_src_configure
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       dobashcomp bash-completion/cave
+
+       insinto /usr/share/zsh/site-functions
+       doins zsh-completion/_cave
+}
+
+src_test() {
+       # Work around Portage bugs
+       local -x PALUDIS_DO_NOTHING_SANDBOXY="portage sucks"
+       local -x BASH_ENV=/dev/null
+
+       if [[ ${EUID} == 0 ]] ; then
+               # hate
+               local -x PALUDIS_REDUCED_UID=0
+               local -x PALUDIS_REDUCED_GID=0
+       fi
+
+       cmake-utils_src_test
+}
+
+pkg_postinst() {
+       local pm
+       if [[ -f ${ROOT}/etc/env.d/50package-manager ]] ; then
+               pm=$( source "${ROOT}"/etc/env.d/50package-manager ; echo 
"${PACKAGE_MANAGER}" )
+       fi
+
+       if [[ ${pm} != paludis ]] ; then
+               elog "If you are using paludis or cave as your primary package 
manager,"
+               elog "you should consider running:"
+               elog "    eselect package-manager set paludis"
+       fi
+}

Reply via email to