sys-apps/paludis: Bump to 2.6.0
authorMichał Górny <mgorny@gentoo.org>
Tue, 3 May 2016 18:59:33 +0000 (20:59 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 3 May 2016 20:43:49 +0000 (22:43 +0200)
sys-apps/paludis/Manifest
sys-apps/paludis/paludis-2.6.0.ebuild [new file with mode: 0644]
sys-apps/paludis/paludis-9999.ebuild

index 3c4e861741bebd4e2680b3df3ce9c6c894f55165..a6c2d07584007aac37d9b0ecbab95e0da933fb60 100644 (file)
@@ -3,3 +3,4 @@ DIST paludis-2.0.0.tar.bz2 1787616 SHA256 9e635d86e655658d31adde5813f5fcad2982b5
 DIST paludis-2.2.0.tar.bz2 1786405 SHA256 0b0bcb14a6539874d274c72e6a7b9825aa80fa083c2b61e1d5b14daf24829346 SHA512 9b4dd4613ec31683021d6fc5b5eb094024ceada47c41e09d1f0cb86f1de5b621869756401ba14ec0ec5f5dd20a5f8bf5b596c3891724bb9c245400b5fef4961f WHIRLPOOL 9cd602561b38e1bb6fc3d9baa5452c63a394c1e51faf299d8d1e82dad9a53969f14be542dac3f90974fcdf08c16c267cfdf45273c5244f378f9a2b7b6288bd97
 DIST paludis-2.4.0.tar.bz2 1787689 SHA256 f47b4bb5503dc127022453b15ca811dec22ee2f04c3c3b76ed1c5a83dbe1af1f SHA512 5fbb15d2285c892fdf19288b8838c51ec2439817a9abc685b8692ff4a3ddf76632d3ab51b2e0298c8eacf00f8b00f4e66b47b34db12844cd4eb77cbfb87ca32e WHIRLPOOL d9dc107886b8bf09bb203704d559dd030190b8390607964578c3f2e10a5c5cd4400146ffed894a968143761fc8149796d37597274b34b8414133b26c7252345b
 DIST paludis-2.4.0_p20160112.tar.xz 1296724 SHA256 2b209337b6a4667ffe8b3db431a88314b3b224cf0f9d57a6d4fdd8c2c00f4b19 SHA512 898853bf75e60dcfcb8aca7e45da3b7eeec2bb119db5b77a12e876282abe936bb3064bf52c27b7a7a949ab0865e7fbbfea78dc66408a09d00a02e1a2069153ae WHIRLPOOL 5167ad0d234f874ef304e0725ea78517c7bcd2e0ef09b5e8ac6b6cf4213fcbccd3b6057caf89274ed67bfd7b35efa0f33fc82d479f5b5f31937a0b7c48c37777
+DIST paludis-2.6.0.tar.bz2 1885055 SHA256 bde018c89fce95c2cc793d9171e5a51748ad682d06f839fab394e233257aaf4c SHA512 78a9c0a19703dbbc07934de389b749ab83365454e29b19c323d6c03304162e35ff4d92f7ac1f28067ad853057f2422be43418b3c6a57a193c4b8dd5a4e81eba4 WHIRLPOOL dc4f4ecad0ccbb4b8e6b1b4d0a2c71772b5be244f09dc5456fe42d5510b6b7432ca087f99ae86b2bbbd05b18f70a15371dca1193ead556751faffd01ef227dd6
diff --git a/sys-apps/paludis/paludis-2.6.0.ebuild b/sys-apps/paludis/paludis-2.6.0.ebuild
new file mode 100644 (file)
index 0000000..4bff156
--- /dev/null
@@ -0,0 +1,149 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+# matching profile defaults for now
+RUBY_VER=2.1
+
+inherit bash-completion-r1 eutils python-single-r1 user
+
+DESCRIPTION="paludis, the other package mangler"
+HOMEPAGE="http://paludis.exherbo.org/"
+SRC_URI="http://paludis.exherbo.org/download/${P}.tar.bz2"
+
+IUSE="doc pbins pink python ruby 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-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} )"
+
+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
+
+       epatch_user
+}
+
+src_configure() {
+       local myconf=(
+               --htmldir=/usr/share/doc/${PF}/html
+
+               $(use_enable doc doxygen)
+               $(use_enable test gtest)
+               $(use_enable pbins)
+               $(use_enable pink)
+               $(use_enable python)
+               $(use python && use_enable doc python-doc)
+               $(use_enable ruby)
+               $(use ruby && use_enable doc ruby-doc)
+               --with-ruby-version="${RUBY_VER}"
+               $(use_enable search-index)
+               $(use_enable xml)
+
+               --enable-vim
+               --with-config-framework=eselect
+               --with-environments=default,portage
+               --with-vim-install-dir=/usr/share/vim/vimfiles
+       )
+
+       econf "${myconf[@]}"
+}
+
+src_install() {
+       default
+       prune_libtool_files
+
+       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
+
+       if ! nonfatal emake -k check ; then
+               eerror "Tests failed. Looking for files for you to add to your bug report..."
+               find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
+                       eerror "    $a"
+               done
+               die "Make check failed"
+       fi
+}
+
+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
+}
index d61f74ae79cba9c0a7f9e4eac44e0959702dc7c0..ef50c66b0c2c1caa3a74a6cb4886f59a07a012af 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -7,7 +7,7 @@ EAPI=5
 EGIT_REPO_URI='git://git.exherbo.org/paludis/paludis.git'
 PYTHON_COMPAT=( python2_7 )
 # matching profile defaults for now
-RUBY_VER=2.0
+RUBY_VER=2.1
 
 inherit autotools bash-completion-r1 eutils git-r3 python-single-r1 user
 
@@ -22,7 +22,7 @@ KEYWORDS=""
 
 COMMON_DEPEND="
        >=app-admin/eselect-1.2.13
-       >=app-shells/bash-3.2
+       >=app-shells/bash-3.2:0
        dev-libs/libpcre[cxx]
        sys-apps/file
        pbins? ( >=app-arch/libarchive-3.1.2 )
@@ -39,11 +39,8 @@ DEPEND="${COMMON_DEPEND}
        app-text/xmlto
        >=sys-devel/gcc-4.7
        doc? (
-               || (
-                       >=app-doc/doxygen-1.5.3
-                       <=app-doc/doxygen-1.5.1 )
-               python? (
-               dev-python/sphinx[${PYTHON_USEDEP}] )
+               app-doc/doxygen
+               python? ( dev-python/sphinx[${PYTHON_USEDEP}] )
                ruby? ( dev-ruby/syntax[ruby_targets_ruby${RUBY_VER/./}] )
        )
        virtual/pkgconfig