parent
93d4ea3d72
commit
d0e23a5538
@ -1 +1,2 @@
|
||||
DIST sepolgen-1.2.3.tar.gz 367644 SHA256 3ee1745257fa55301070219c77978c7c9eeb9aa595ce0b6b29c3baa4687d5cf0 SHA512 5fe023f983dc0fe1855da24835cb9bb466ac6c44d07fa939416740ca64968c039be2febff79b2a4c593e54c5ae81448dd06020e9160e4f84eea95d8c0d2b910f WHIRLPOOL 65c663a3398f1ae64e8bf233828701481ac2ee68fa75f2271596628c7dcc80c1193166cfb950f8faa86988c0b309cfbb59f15f38131a9f1f2680b754518bba11
|
||||
DIST sepolgen-2.6-rc1.tar.gz 367934 SHA256 5d1ee9a86d75f08b3443e4f17a9098bf3bdc7d2a77a64dcdd5d6230f6d4621cb SHA512 80fe7a3a30d632d0736ca69527ecacded1a35cc2115fcaab526f8eed56f12d77b453dc0eb7230790d5774631ee2d7c3fdae54fb734da30de46faea6fd9c96711 WHIRLPOOL 35d3d32e29f967e691658f8a30ce274c34d2e656bff3a1df04ba3b054631afe8e717f76dbd8524e91a0c9c45e64471b398af85b1ab20a4beac87f70ca62b3ca8
|
||||
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit python-r1
|
||||
|
||||
MY_P="${P//_/-}"
|
||||
MY_RELEASEDATE="20160930"
|
||||
|
||||
DESCRIPTION="SELinux policy generation library"
|
||||
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
|
||||
S="${WORKDIR}/${MY_P}/${PN}"
|
||||
else
|
||||
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~mips ~x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=sys-libs/libselinux-2.4[python]
|
||||
>=app-admin/setools-4.0[${PYTHON_USEDEP}]
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999 ]] ; then
|
||||
# If needed for live ebuilds please use /etc/portage/patches
|
||||
eapply "${FILESDIR}/0030-default-path-for-tests-also-needed-bug-467264.patch"
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
|
||||
python_copy_sources
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if has_version sec-policy/selinux-base-policy; then
|
||||
invoke_sepolgen_test() {
|
||||
emake test
|
||||
}
|
||||
python_foreach_impl invoke_sepolgen_test
|
||||
else
|
||||
ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests."
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install
|
||||
python_optimize
|
||||
}
|
||||
python_foreach_impl installation
|
||||
|
||||
# Create sepolgen.conf with different devel location definition
|
||||
if [[ -f /etc/selinux/config ]];
|
||||
then
|
||||
local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config);
|
||||
mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory";
|
||||
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
|
||||
else
|
||||
local selinuxtype="${POLICY_TYPES%% *}";
|
||||
if [[ -n "${selinuxtype}" ]];
|
||||
then
|
||||
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
|
||||
else
|
||||
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf;
|
||||
fi
|
||||
fi
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md ROADMAP.md STANDARD_RESPONSES.md"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="ext"
|
||||
|
||||
inherit ruby-fakegem eutils multilib
|
||||
|
||||
DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
|
||||
HOMEPAGE="http://nokogiri.org/"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
>=dev-libs/libxml2-2.9.2:=
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
DEPEND="${DEPEND}
|
||||
>=dev-libs/libxml2-2.9.2
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
|
||||
ruby_add_bdepend "
|
||||
dev-ruby/hoe
|
||||
>=dev-ruby/pkg-config-1.1.7
|
||||
dev-ruby/rexical
|
||||
dev-ruby/rdoc
|
||||
dev-ruby/racc
|
||||
test? ( dev-ruby/minitest )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i \
|
||||
-e '/tasks\/cross_compile/s:^:#:' \
|
||||
-e '/:test.*prerequisites/s:^:#:' \
|
||||
-e '/license/ s:^:#:' \
|
||||
Rakefile || die
|
||||
# Remove the cross compilation options since they interfere with
|
||||
# native building.
|
||||
sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
|
||||
sed -i -e '/cross_config_options/d' Rakefile || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
|
||||
${RUBY} -Cext/${PN} extconf.rb \
|
||||
--with-zlib-include="${EPREFIX}"/usr/include \
|
||||
--with-zlib-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-iconv-include="${EPREFIX}"/usr/include \
|
||||
--with-iconv-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
|
||||
--with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-xslt-dir="${EPREFIX}"/usr \
|
||||
--with-iconvlib=iconv \
|
||||
|| die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
|
||||
fi
|
||||
|
||||
if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
|
||||
fi
|
||||
|
||||
emake -Cext/${PN} \
|
||||
V=1 \
|
||||
CFLAGS="${CFLAGS} -fPIC" \
|
||||
archflag="${LDFLAGS}" || die "make extension failed"
|
||||
cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
# Clean up "ext" directory before installing it. nokogumbo expects
|
||||
# the header files and shared object to be in ext.
|
||||
rm -rf ext/java ext/nokogiri/*.o ext/nokogiri/{mkmf.log,Makefile} || die
|
||||
|
||||
each_fakegem_install
|
||||
}
|
@ -1,9 +1,6 @@
|
||||
DIST rspec-core-2.14.8-git.tgz 195949 SHA256 757febdcc4465b62fb41572e1fb7e0deb86f903127cb2941ea65d2c1d4ac29db SHA512 2be487f0a820cb959771b0c2a725aa7a43cd80a76f85ed42f3341420cefa4ba6413b5dbd86e8fba9f5515afef3e895e0f1f2f8239d50f0b764f037d5f0791095 WHIRLPOOL 5b2422d7f1d087caf654ea04d81f269ae90be63eb73135d34691839c27e6dfa152aac425f64a860b3af50ef0bf513ac7f4a68c979c254083f187e57a96c20fe3
|
||||
DIST rspec-core-2.99.2-git.tgz 212935 SHA256 75794e3f94f3323b1212b93e827d37d6ab2813dea2f5f927929b40e9ee170c43 SHA512 e13bc3384fd85c367481a8651c14be4a412cba5f58e12a8f4ab14b5d2768a7b92191b81e000e7dbf6a28275b41044d8b3eb70a04e4b30b5bf88db98cbec4cc44 WHIRLPOOL 5584be2da2310688155c4fe600a4a36f68434440ebc00b063e9fcdcb3188138831a210f482ac86a469984fcf9838d795511ea02433020ecc6bc1d6aacc8c72bd
|
||||
DIST rspec-core-3.3.2-git.tgz 332730 SHA256 aef9a2867a435aa7be57826c850e88e593232077dc42f12bfed89a92c7704d26 SHA512 6cadfa43d63df8d24105d88d6e8b22a495a30f04b289c71c8887ea3fead9ec8f071a6c734a140b1e4910f25094fd36c7c37b54a0724e734233ca584202f0cf32 WHIRLPOOL 1e385223ea8c9b32bfc6ecc93146ccad793441bae3426f6cb4acc07d7a1f2bc6e20be11597fcd27f3c6bb207482213e2eaf214835041df631d06b9bc524e5b70
|
||||
DIST rspec-core-3.4.3-git.tgz 355961 SHA256 9dea290b7a1e30e483d61451e968554591a0ce385b66bc75d27d0f9eed7455e3 SHA512 26973fb7de7e2055cfafece0b3d68c2dab3498f6e3705bc2a4d41633b18783d142c7c9bee82fbec0d577b7d97d85c747c8cbdeb0cf8d2b5c017009fa087f2ec2 WHIRLPOOL f52dfaa2dc83efb49f66693e7b9eff20d5237d0593985ed88283247d50e2fa24d6f3739d9c01c0a4fa298b9da1072a01b055b0d4618eadeb8de9e7403cccb7be
|
||||
DIST rspec-core-3.4.4-git.tgz 355992 SHA256 a1f3cbf0748ac87a5b3b5bea2428121e1c6ab6a2133f466da81dfbb49bb22785 SHA512 f73eda7bab8622f7457286e4c2a19d8ee231f484743d9963cd4a020d149eaad19007e8d5d4eb049e4fe62ead4f7a84de55e63ac1ac26e2c7b6d599d14eaa17b7 WHIRLPOOL 1c25e860ce672da49e3d5d95b92ceef9d92fcb44095401926e166463ea8b21ac6cdcdc615cdec6b33bdb48e5ca7689febdfa41f18ae9254536e6b958d37eb780
|
||||
DIST rspec-core-3.5.0-git.tgz 365231 SHA256 519402638aebb8cd584f34dacd2f1ffda5237f24fd57a4810d8bb257fa398519 SHA512 043ef9cd7ea064e3f12b786c333b1478bbce2eef7d1c781ec47cc46305bb37bf602eb900ef83486b8f7f90bc329ef45a4d4e271801ea59d2587a6b221b4a897d WHIRLPOOL 119d12cbb5f60f3beb6778b88d1f83dae24a1d7e2ddb9a65b1617c38e28f469829c934f2a5c837a8ff54ba8ef3bc2726bb555ccf000b969a8b2eb53455da32cf
|
||||
DIST rspec-core-3.5.1-git.tgz 366192 SHA256 935415b2d594692cdd18c669d915996a78b25d1c6e0351621a9548d7f42903de SHA512 090a1a88dcf1f7e668ffd5beb851bc671606bcb74f3b9da002b02826532d48784ad5935fe2ea850431f31bcdfd978cdae63722d9973730bfc2c5c52deb170dcc WHIRLPOOL 099887faea84b7c2970a8a796f1a75a82e6fd02a7b82e26df30feba609ae3c158f7e029ab9a060b3e1af79ad768188cca8041d806fc3ff5fcb7eff3d5873ee13
|
||||
DIST rspec-core-3.5.2-git.tgz 366746 SHA256 e7fa77e5fc447edea002787039ae7485a8b97a1bc2072ce015c13ddcc5d1bd67 SHA512 4f6e759a5866074c9df1d49cb0a540bc967872e24ed4eab6d88a4ae125f73e8e00cbf33e288e18ddc85c79e1ac63894682bfdbc839f9d1d20d52b9eaeceafad5 WHIRLPOOL 1e2711aa99fdab2a16278c8208d32188f59fe21c594645bd86717f77a23b2e24f98b21c9d2f6481c4fb37675c7c8f49357cc2137082a5c9f9e49f66ff584e64c
|
||||
DIST rspec-core-3.5.3-git.tgz 368960 SHA256 26a5788977ba1ce6889924e6e944d1a08becb059593f297b4f4dd58b600b037a SHA512 c8f983018e33bd111c75671d7208b38704dd0fddb22cca2b08a59a1e5ceb0939ed56ee4015df758f5d766fbe2390279c1d670f6fff4eef222f44621f48c581ef WHIRLPOOL 86afe335378b5e9e94ee53546d6e87c531bee71cc1ed5a79f1549d593f6912a6a07dfac2b783aaaaf808bba8405e6e1cbc5b20fc275ca80ce504bed1b4991fd2
|
||||
DIST rspec-core-3.5.4-git.tgz 369170 SHA256 6e7f0cbccf13f774936b25100f743682bb4359040f926a7aa83dce9d7e80209e SHA512 c672381e9233b6f8c6e92ed70d084ff7a558edd6ca7d5a09a28fff1554975b952b6fab94483324b5bd6a62ff7aac576e7a216dbb3972749ef0210fe1cd05411d WHIRLPOOL 816b9dc1648afd11965457b147a5748ea50fd9cef8b5e266a83131b532642f5882bde9099e037ee9f5bea2fa2bc2bca1140494d33f252ea7819b033a4b8dda99
|
||||
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
# Also install this custom path since internal paths depend on it.
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="exe"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="https://github.com/rspec/rspec-core"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="highlight"
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*
|
||||
!!<dev-ruby/rspec-core-2.14.8-r4
|
||||
highlight? ( >=dev-ruby/coderay-1.0.9 )
|
||||
"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/nokogiri-1.5.2
|
||||
>=dev-ruby/coderay-1.0.9
|
||||
dev-ruby/syntax
|
||||
>=dev-ruby/thread_order-1.1.0
|
||||
>=dev-ruby/rspec-expectations-3.3.0:3
|
||||
>=dev-ruby/rspec-mocks-2.99.0:3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Avoid dependency on cucumber since we can't run the features anyway.
|
||||
sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
|
||||
|
||||
# Duplicate exe also in bin. We can't change it since internal stuff
|
||||
# also depends on this and fixing that is going to be fragile. This
|
||||
# way we can at least install proper bin scripts.
|
||||
cp -R exe bin || die
|
||||
|
||||
# Avoid unneeded dependency on git.
|
||||
sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die
|
||||
|
||||
# Avoid aruba dependency so that we don't end up in dependency hell.
|
||||
sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
|
||||
rm spec/integration/{failed_line_detection,filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
|
||||
|
||||
# Avoid a spec failing due to path issues
|
||||
sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
|
||||
spec/rspec/core/configuration_spec.rb || die
|
||||
|
||||
# Avoid specs for older coderay version which is no longer packaged
|
||||
sed -i -e '/highlights the syntax of the provided lines/ s/do/,skip: true do/' \
|
||||
-e '/dynamically adjusts to changing color config/ s/do/,skip: true do/' \
|
||||
spec/rspec/core/source/syntax_highlighter_spec.rb
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
|
||||
|
||||
# case ${RUBY} in
|
||||
# *ruby22)
|
||||
# # The rubygems version bundled with ruby 2.2 causes warnings.
|
||||
# sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
|
||||
# ;;
|
||||
# esac
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
yardoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
# Also install this custom path since internal paths depend on it.
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="exe"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="https://github.com/rspec/rspec-core"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="highlight"
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*
|
||||
!!<dev-ruby/rspec-core-2.14.8-r4
|
||||
highlight? ( >=dev-ruby/coderay-1.0.9 )
|
||||
"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/nokogiri-1.5.2
|
||||
>=dev-ruby/coderay-1.0.9
|
||||
dev-ruby/syntax
|
||||
>=dev-ruby/thread_order-1.1.0
|
||||
>=dev-ruby/rspec-expectations-3.3.0:3
|
||||
>=dev-ruby/rspec-mocks-2.99.0:3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Avoid dependency on cucumber since we can't run the features anyway.
|
||||
sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
|
||||
|
||||
# Duplicate exe also in bin. We can't change it since internal stuff
|
||||
# also depends on this and fixing that is going to be fragile. This
|
||||
# way we can at least install proper bin scripts.
|
||||
cp -R exe bin || die
|
||||
|
||||
# Avoid unneeded dependency on git.
|
||||
sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die
|
||||
|
||||
# Avoid aruba dependency so that we don't end up in dependency hell.
|
||||
sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
|
||||
rm spec/integration/{failed_line_detection,filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
|
||||
|
||||
# Avoid a spec failing due to path issues
|
||||
sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
|
||||
spec/rspec/core/configuration_spec.rb || die
|
||||
|
||||
# Avoid specs for older coderay version which is no longer packaged
|
||||
sed -i -e '/highlights the syntax of the provided lines/ s/do/,skip: true do/' \
|
||||
-e '/dynamically adjusts to changing color config/ s/do/,skip: true do/' \
|
||||
spec/rspec/core/source/syntax_highlighter_spec.rb
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
|
||||
|
||||
# case ${RUBY} in
|
||||
# *ruby22)
|
||||
# # The rubygems version bundled with ruby 2.2 causes warnings.
|
||||
# sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
|
||||
# ;;
|
||||
# esac
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
yardoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
|
||||
|
||||
# Also install this custom path since internal paths depend on it.
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="exe"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="https://github.com/rspec/rspec-core"
|
||||
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="highlight"
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-support-${SUBVERSION}*
|
||||
!!<dev-ruby/rspec-core-2.14.8-r4
|
||||
highlight? ( >=dev-ruby/coderay-1.0.9 )
|
||||
"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/nokogiri-1.5.2
|
||||
>=dev-ruby/coderay-1.0.9
|
||||
dev-ruby/syntax
|
||||
>=dev-ruby/thread_order-1.1.0
|
||||
>=dev-ruby/rspec-expectations-3.3.0:3
|
||||
>=dev-ruby/rspec-mocks-2.99.0:3
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Avoid dependency on cucumber since we can't run the features anyway.
|
||||
sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
|
||||
|
||||
# Duplicate exe also in bin. We can't change it since internal stuff
|
||||
# also depends on this and fixing that is going to be fragile. This
|
||||
# way we can at least install proper bin scripts.
|
||||
cp -R exe bin || die
|
||||
|
||||
# Avoid unneeded dependency on git.
|
||||
sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die
|
||||
|
||||
# Avoid aruba dependency so that we don't end up in dependency hell.
|
||||
sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
|
||||
rm spec/integration/{failed_line_detection,filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
|
||||
|
||||
# Avoid a spec failing due to path issues
|
||||
sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
|
||||
spec/rspec/core/configuration_spec.rb || die
|
||||
|
||||
# Avoid specs for older coderay version which is no longer packaged
|
||||
sed -i -e '/highlights the syntax of the provided lines/ s/do/,skip: true do/' \
|
||||
-e '/dynamically adjusts to changing color config/ s/do/,skip: true do/' \
|
||||
spec/rspec/core/source/syntax_highlighter_spec.rb
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
|
||||
|
||||
# case ${RUBY} in
|
||||
# *ruby22)
|
||||
# # The rubygems version bundled with ruby 2.2 causes warnings.
|
||||
# sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
|
||||
# ;;
|
||||
# esac
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
yardoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
inherit virtualx ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby VTE bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND+=" x11-libs/vte:2.91"
|
||||
RDEPEND+=" x11-libs/vte:2.91"
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}"
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-gtk3-${PV}"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/system/,/^ end/ s:^:#:' test/run-test.rb || die
|
||||
|
||||
# Avoid tests that require a real pty.
|
||||
rm -f test/test-pty.rb || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
VIRTUALX_COMMAND="${RUBY} test/run-test.rb"
|
||||
virtualmake || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
inherit virtualx ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby VTE bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND+=" x11-libs/vte:2.91"
|
||||
RDEPEND+=" x11-libs/vte:2.91"
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}"
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-gtk3-${PV}"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/system/,/^ end/ s:^:#:' test/run-test.rb || die
|
||||
|
||||
# Avoid tests that require a real pty.
|
||||
rm -f test/test-pty.rb || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
VIRTUALX_COMMAND=${RUBY}
|
||||
virtualmake test/run-test.rb || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
}
|
@ -0,0 +1,257 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools eutils flag-o-matic linux-info multilib systemd user
|
||||
|
||||
DESCRIPTION="The Music Player Daemon (mpd)"
|
||||
HOMEPAGE="http://www.musicpd.org"
|
||||
SRC_URI="http://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~x64-macos"
|
||||
IUSE="adplug +alsa ao audiofile bzip2 cdio +curl debug +eventfd expat faad
|
||||
+fifo +ffmpeg flac fluidsynth +glib gme +icu +id3tag +inotify +ipv6 jack
|
||||
lame mms libav libmpdclient libsamplerate libsoxr +mad mikmod modplug
|
||||
mpg123 musepack +network nfs ogg openal opus oss pipe pulseaudio recorder
|
||||
samba selinux sid +signalfd sndfile soundcloud sqlite systemd tcpd twolame
|
||||
unicode upnp vorbis wavpack wildmidi zeroconf zip zlib"
|
||||
|
||||
OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pulseaudio recorder"
|
||||
DECODER_PLUGINS="adplug audiofile faad ffmpeg flac fluidsynth mad mikmod
|
||||
modplug mpg123 musepack ogg flac sid vorbis wavpack wildmidi"
|
||||
ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
|
||||
|
||||
REQUIRED_USE="|| ( ${OUTPUT_PLUGINS} )
|
||||
|| ( ${DECODER_PLUGINS} )
|
||||
ao? ( glib )
|
||||
gme? ( glib )
|
||||
jack? ( glib )
|
||||
network? ( || ( ${ENCODER_PLUGINS} )
|
||||
glib )
|
||||
recorder? ( || ( ${ENCODER_PLUGINS} ) )
|
||||
sid? ( glib )
|
||||
soundcloud? ( glib )
|
||||
sqlite? ( glib )
|
||||
opus? ( ogg )
|
||||
upnp? ( expat )
|
||||
vorbis? ( glib )
|
||||
wavpack? ( glib )"
|
||||
|
||||
CDEPEND="!<sys-cluster/mpich2-1.4_rc2
|
||||
adplug? ( media-libs/adplug )
|
||||
alsa? ( media-sound/alsa-utils
|
||||
media-libs/alsa-lib )
|
||||
ao? ( media-libs/libao[alsa?,pulseaudio?] )
|
||||
audiofile? ( media-libs/audiofile )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdio? ( dev-libs/libcdio-paranoia )
|
||||
curl? ( net-misc/curl )
|
||||
expat? ( dev-libs/expat )
|
||||
faad? ( media-libs/faad2 )
|
||||
ffmpeg? (
|
||||
libav? ( media-video/libav:0= )
|
||||
!libav? ( media-video/ffmpeg:0= )
|
||||
)
|
||||
flac? ( media-libs/flac[ogg?] )
|
||||
fluidsynth? ( media-sound/fluidsynth )
|
||||
glib? ( dev-libs/glib:2 )
|
||||
gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
|
||||
icu? ( dev-libs/icu:= )
|
||||
id3tag? ( media-libs/libid3tag )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
lame? ( network? ( media-sound/lame ) )
|
||||
libmpdclient? ( media-libs/libmpdclient )
|
||||
libsamplerate? ( media-libs/libsamplerate )
|
||||
mad? ( media-libs/libmad )
|
||||
mikmod? ( media-libs/libmikmod:0 )
|
||||
mms? ( media-libs/libmms )
|
||||
modplug? ( media-libs/libmodplug )
|
||||
mpg123? ( >=media-sound/mpg123-1.12.2 )
|
||||
musepack? ( media-sound/musepack-tools )
|
||||
network? ( >=media-libs/libshout-2
|
||||
!lame? ( !vorbis? ( media-libs/libvorbis ) ) )
|
||||
nfs? ( net-fs/libnfs )
|
||||
ogg? ( media-libs/libogg )
|
||||
openal? ( media-libs/openal )
|
||||
opus? ( media-libs/opus )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
samba? ( || ( <net-fs/samba-4.0.25[smbclient] >=net-fs/samba-4.0.25 ) )
|
||||
sid? ( || ( media-libs/libsidplay:2 media-libs/libsidplayfp ) )
|
||||
sndfile? ( media-libs/libsndfile )
|
||||
soundcloud? ( >=dev-libs/yajl-2 )
|
||||
libsoxr? ( media-libs/soxr )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
twolame? ( media-sound/twolame )
|
||||
upnp? ( net-libs/libupnp )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
wavpack? ( media-sound/wavpack )
|
||||
wildmidi? ( media-sound/wildmidi )
|
||||
zeroconf? ( net-dns/avahi[dbus] )
|
||||
zip? ( dev-libs/zziplib )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-libs/boost
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-mpd )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.18.conf.patch
|
||||
"${FILESDIR}"/${PN}-0.9.15-systemd.patch # bug 584742
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use network || ewarn "Icecast and Shoutcast streaming needs networking."
|
||||
use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream."
|
||||
|
||||
enewuser mpd "" "" "/var/lib/mpd" audio
|
||||
|
||||
if use eventfd; then
|
||||
CONFIG_CHECK+=" ~EVENTFD"
|
||||
ERROR_EVENTFD="${P} requires eventfd in-kernel support."
|
||||
fi
|
||||
if use signalfd; then
|
||||
CONFIG_CHECK+=" ~SIGNALFD"
|
||||
ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
|
||||
fi
|
||||
if use inotify; then
|
||||
CONFIG_CHECK+=" ~INOTIFY_USER"
|
||||
ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
|
||||
fi
|
||||
if use eventfd || use signalfd || use inotify; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
|
||||
elog "If you will be starting mpd via /etc/init.d/mpd, please make
|
||||
sure that MPD's pid_file is _set_."
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cp -f doc/mpdconf.example doc/mpdconf.dist || die "cp failed"
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mpdconf="--enable-database --disable-roar --disable-documentation
|
||||
--enable-dsd --enable-largefile --disable-osx --disable-shine-encoder
|
||||
--disable-solaris-output --enable-tcp --enable-un --disable-werror
|
||||
--docdir=${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
if use network; then
|
||||
mpdconf+=" --enable-shout $(use_enable vorbis vorbis-encoder)
|
||||
--enable-httpd-output $(use_enable lame lame-encoder)
|
||||
$(use_enable twolame twolame-encoder)
|
||||
$(use_enable audiofile wave-encoder)"
|
||||
else
|
||||
mpdconf+=" --disable-shout --disable-vorbis-encoder
|
||||
--disable-httpd-output --disable-lame-encoder
|
||||
--disable-twolame-encoder --disable-wave-encoder"
|
||||
fi
|
||||
|
||||
if use samba || use upnp; then
|
||||
mpdconf+=" --enable-neighbor-plugins"
|
||||
fi
|
||||
|
||||
append-lfs-flags
|
||||
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders"
|
||||
|
||||
econf \
|
||||
$(use_enable eventfd) \
|
||||
$(use_enable signalfd) \
|
||||
$(use_enable libmpdclient) \
|
||||
$(use_enable expat) \
|
||||
$(use_enable upnp) \
|
||||
$(use_enable adplug) \
|
||||
$(use_enable alsa) \
|
||||
$(use_enable ao) \
|
||||
$(use_enable audiofile) \
|
||||
$(use_enable zlib) \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable cdio cdio-paranoia) \
|
||||
$(use_enable curl) \
|
||||
$(use_enable samba smbclient) \
|
||||
$(use_enable nfs) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable ffmpeg) \
|
||||
$(use_enable fifo) \
|
||||
$(use_enable flac) \
|
||||
$(use_enable fluidsynth) \
|
||||
$(use_enable gme) \
|
||||
$(use_enable id3tag id3) \
|
||||
$(use_enable inotify) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable cdio iso9660) \
|
||||
$(use_enable jack) \
|
||||
$(use_enable soundcloud) \
|
||||
$(use_enable tcpd libwrap) \
|
||||
$(use_enable libsamplerate lsr) \
|
||||
$(use_enable libsoxr soxr) \
|
||||
$(use_enable mad) \
|
||||
$(use_enable mikmod) \
|
||||
$(use_enable mms) \
|
||||
$(use_enable modplug) \
|
||||
$(use_enable musepack mpc) \
|
||||
$(use_enable mpg123) \
|
||||
$(use_enable openal) \
|
||||
$(use_enable opus) \
|
||||
$(use_enable oss) \
|
||||
$(use_enable pipe pipe-output) \
|
||||
$(use_enable pulseaudio pulse) \
|
||||
$(use_enable recorder recorder-output) \
|
||||
$(use_enable sid sidplay) \
|
||||
$(use_enable sndfile sndfile) \
|
||||
$(use_enable sqlite) \
|
||||
$(use_enable systemd) \
|
||||
$(use_enable vorbis) \
|
||||
$(use_enable wavpack) \
|
||||
$(use_enable wildmidi) \
|
||||
$(use_enable zip zzip) \
|
||||
$(use_enable icu) \
|
||||
$(use_enable glib) \
|
||||
$(use_enable faad aac) \
|
||||
$(use_with zeroconf zeroconf avahi) \
|
||||
--with-systemdsystemunitdir=$(systemd_get_systemunitdir) \
|
||||
${mpdconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
insinto /etc
|
||||
newins doc/mpdconf.dist mpd.conf
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}2.init ${PN}
|
||||
|
||||
systemd_newuserunit systemd/${PN}.service ${PN}.service
|
||||
sed -i '/WantedBy=/c WantedBy=default.target' \
|
||||
"${ED}"/usr/lib/systemd/user/mpd.service || die "sed failed"
|
||||
|
||||
if use unicode; then
|
||||
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \
|
||||
"${ED}"/etc/mpd.conf || die "sed failed"
|
||||
fi
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/${PN}.logrotate ${PN}
|
||||
|
||||
use prefix || diropts -m0755 -o mpd -g audio
|
||||
dodir /var/lib/mpd
|
||||
keepdir /var/lib/mpd
|
||||
dodir /var/lib/mpd/music
|
||||
keepdir /var/lib/mpd/music
|
||||
dodir /var/lib/mpd/playlists
|
||||
keepdir /var/lib/mpd/playlists
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# also change the homedir if the user has existed before
|
||||
usermod -d "/var/lib/mpd" mpd
|
||||
}
|
@ -1 +1 @@
|
||||
Mon, 03 Oct 2016 05:40:37 +0000
|
||||
Mon, 03 Oct 2016 07:40:43 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon, 03 Oct 2016 05:40:37 +0000
|
||||
Mon, 03 Oct 2016 07:40:43 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue