parent
5bc1f09e91
commit
93e0dba1bf
@ -0,0 +1,106 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/xenial/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1xenial"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/augeas
|
||||
!app-admin/mcollective
|
||||
!app-admin/puppet
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
!app-emulation/virt-what"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
app-portage/eix
|
||||
sys-apps/dmidecode
|
||||
sys-libs/glibc
|
||||
>=sys-libs/readline-6.0
|
||||
<sys-libs/readline-7.0
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="
|
||||
/opt/puppetlabs/puppet
|
||||
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/engines/*
|
||||
/opt/puppetlabs/puppet/lib/virt-what/*
|
||||
/opt/puppetlabs/puppet/lib/*
|
||||
/opt/puppetlabs/puppet/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
doconfd etc/default/pxp-agent
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
doins etc/logrotate.d/pxp-agent
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
dodir opt/puppetlabs/puppet/cache
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit lib/systemd/system/puppet.service
|
||||
systemd_dounit lib/systemd/system/mcollective.service
|
||||
systemd_dounit lib/systemd/system/pxp-agent.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||
dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||
dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||
dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
|
||||
}
|
@ -0,0 +1,175 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
USE_RUBY="ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software."
|
||||
HOMEPAGE="http://puppetlabs.com/"
|
||||
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
>=dev-ruby/rgen-0.6.5
|
||||
dev-ruby/json:=
|
||||
>=dev-ruby/facter-3.0.0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/mocha
|
||||
dev-ruby/rack
|
||||
dev-ruby/rspec-its
|
||||
)"
|
||||
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
|
||||
DEPEND+=" ${DEPEND}
|
||||
emacs? ( virtual/emacs )
|
||||
xemacs? ( app-editors/xemacs )"
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0"
|
||||
|
||||
SITEFILE="50${PN}-mode-gentoo.el"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# can't be run within portage.
|
||||
epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing spec that need further investigation.
|
||||
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use emacs ; then
|
||||
elisp-compile ext/emacs/puppet-mode.el
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
# Create a separate version for xemacs to be able to install
|
||||
# emacs and xemacs in parallel.
|
||||
mkdir ext/xemacs
|
||||
cp ext/emacs/* ext/xemacs/
|
||||
xemacs-elisp-compile ext/xemacs/puppet-mode.el
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} ext/emacs/puppet-mode.el*
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
|
||||
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||
fi
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
elog
|
||||
|
||||
if [ "$(get_major_version $REPLACING_VERSIONS)" = "3" ]; then
|
||||
elog
|
||||
elog "If you're upgrading from 3.x then please move everything in /etc/puppet to"
|
||||
elog "/etc/puppetlabs/puppet"
|
||||
elog "Also, puppet now uses config directories for modules and manifests."
|
||||
elog "See https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_agent.html"
|
||||
elog "and https://docs.puppetlabs.com/puppet/4.0/reference/upgrade_server.html"
|
||||
elog "for more information."
|
||||
elog
|
||||
fi
|
||||
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 4e7645c..aa3895a 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -180,10 +180,10 @@ setup(name='setools',
|
||||
'build_lex': LexCommand,
|
||||
'build_ext': BuildExtCommand,
|
||||
'build_qhc': QtHelpCommand},
|
||||
- packages=['setools', 'setools.diff', 'setools.policyrep', 'setoolsgui', 'setoolsgui.apol'],
|
||||
- scripts=['apol', 'sediff', 'seinfo', 'seinfoflow', 'sesearch', 'sedta'],
|
||||
+ packages=['setools', 'setools.diff', 'setools.policyrep'],
|
||||
+ scripts=['sediff', 'seinfo', 'seinfoflow', 'sesearch', 'sedta'],
|
||||
data_files=[(join(sys.prefix, 'share/man/man1'), glob.glob("man/*.1"))],
|
||||
- package_data={'': ['*.ui', '*.qhc'], 'setools': ['perm_map']},
|
||||
+ package_data={'setools': ['perm_map']},
|
||||
ext_modules=ext_py_mods,
|
||||
test_suite='tests',
|
||||
license='GPLv2+, LGPLv2.1+',
|
@ -1,4 +1 @@
|
||||
DIST eid-mw-4.1.18-v4.1.18.tar.gz 3480541 SHA256 abc9d3194008f05b2589ddd9a29c45d22d89716bdc8689fcec42b2aa8450ddbf SHA512 18825a06007f7c07609cee034896ebf64b589200e04b72fece2bd65004a738c01cf64475d59f2c94b7242aa1adfc433bf4af6cf8b5d809746f3e9357ac27b98c WHIRLPOOL 584817aff81a1e0b1af24e5b259fa7e40b5a43b27be701242430cdc480d8ba57205faeba6fb787f1321e02916e6f3efa722e01609151fa3798b8e37b13cb159e
|
||||
DIST eid-mw-4.1.4-v4.1.4.tar.gz 3475913 SHA256 2996960ea92504c7cee1953ccf4520ba78979c7771645e2b2c1207f94be0a308 SHA512 efcc4dbd0fa383896df9f5a7492b18beb5259cfa368a919ae18bd996e5976a67d0570c0fbccd5ab38ea95c31f48b92c145c526aa59866217a418a80a550d502f WHIRLPOOL 11e35b3649a0c3bd40e4c901ba4d922305dc2b4098018bd018ee71b963b08898e6295e4f71cb7180b0fc8e64d1afe01ce49bcaa36a60c065c2de84b81d19e398
|
||||
DIST eid-mw-4.1.9-v4.1.9.tar.gz 3475708 SHA256 0c46c73b805884dd4ae739eb6025c137c1055ad119eac1ab37cb83eb32d92953 SHA512 bc61b3f212bfedf6f47f2841bc6c9b1198be5e3c7b382e3e28635c9e6f5c4ed8ccb118b105f668969fba31e49750cb1c5b129cd5b67a2725af122a8eae491b1c WHIRLPOOL 06b1f9780e984ac6c562bacab03936cd759ea1fce45687f09ae314d4fa77edce02c7ba4db5a9bc3fd739392f8b7b182b19b2734c1d21d63f6995c3cd572695d9
|
||||
DIST eid-mw-4.2.0.tar.gz 8508064 SHA256 4d86f4750f973a8dcf700544b92ffc3069a85ff93086538b9f334d76dd5c9747 SHA512 c0785e25c8b3640d0b60110553a520df3c3c5a0774f4f3fba6a4d9329c0d6e6187b0837d8c254a3959ffa798dc6299399e6cb8edfc7a20dabca080b61f532a5f WHIRLPOOL b1dee0c0a1800b81a7f392bc0e13d070a1cbc7fa6eb2f26e9c50903e058f322ff0b2da69469f90bd38240f49520be29bb548ca6954bc052ef5b23bdb4cad2643
|
||||
|
@ -1,83 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools mozextension multilib
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://github.com/Fedict/${PN}.git
|
||||
https://github.com/Fedict/${PN}.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
else
|
||||
MY_P="${P}-v${PV}"
|
||||
SRC_URI="https://downloads.services.belgium.be/eid/${MY_P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64 ~arm"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="LGPL-3"
|
||||
DESCRIPTION="Electronic Identity Card middleware supplied by the Belgian Federal Government"
|
||||
|
||||
HOMEPAGE="http://eid.belgium.be"
|
||||
|
||||
IUSE="+gtk +xpi +dialogs"
|
||||
|
||||
REQUIRED_USE="
|
||||
dialogs? ( gtk )"
|
||||
|
||||
RDEPEND="gtk? ( x11-libs/gtk+:= )
|
||||
>=sys-apps/pcsc-lite-1.2.9
|
||||
xpi? ( || ( >=www-client/firefox-bin-3.6.24
|
||||
>=www-client/firefox-3.6.20 ) )
|
||||
!app-misc/beid-runtime"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
use gtk || epatch "${FILESDIR}"/gtk_not_required_4.1.4.patch
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
# Only in current git. Hopefully, in next release.
|
||||
sed -i -e 's:/beid/rsaref220:/rsaref220:' configure.ac || die
|
||||
sed -i -e 's:/beid::' cardcomm/pkcs11/src/libbeidpkcs11.pc.in || die
|
||||
fi
|
||||
|
||||
if [[ ${PV} == "9999" ]] || ! use gtk ; then
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable dialogs) \
|
||||
--with-gnu-ld \
|
||||
--disable-static \
|
||||
--disable-signed
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if [[ ${PV} != "9999" ]] ; then
|
||||
# Automatically done in current git. Hopefully, in next release.
|
||||
rm doc/sdk/include/rsaref220/win32.h || die
|
||||
doheader -r doc/sdk/include/*
|
||||
fi
|
||||
if use xpi; then
|
||||
declare MOZILLA_FIVE_HOME
|
||||
if has_version '>=www-client/firefox-3.6.20'; then
|
||||
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox"
|
||||
xpi_install "${D}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||||
fi
|
||||
if has_version '>=www-client/firefox-bin-3.6.24'; then
|
||||
MOZILLA_FIVE_HOME="/opt/firefox"
|
||||
xpi_install "${D}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||||
fi
|
||||
fi
|
||||
rm -r "${D}/usr/share" "${D}"/usr/lib*/*.la || die
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools mozextension multilib
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://github.com/Fedict/${PN}.git
|
||||
https://github.com/Fedict/${PN}.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
else
|
||||
MY_P="${P}-v${PV}"
|
||||
SRC_URI="http://eid.belgium.be/en/binaries/${MY_P}.tar_tcm406-270730.gz -> ${MY_P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64 ~arm"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="LGPL-3"
|
||||
DESCRIPTION="Electronic Identity Card middleware supplied by the Belgian Federal Government"
|
||||
|
||||
HOMEPAGE="http://eid.belgium.be"
|
||||
|
||||
IUSE="+gtk +xpi +dialogs"
|
||||
|
||||
REQUIRED_USE="
|
||||
dialogs? ( gtk )"
|
||||
|
||||
RDEPEND="gtk? ( x11-libs/gtk+:= )
|
||||
>=sys-apps/pcsc-lite-1.2.9
|
||||
xpi? ( || ( >=www-client/firefox-bin-3.6.24
|
||||
>=www-client/firefox-3.6.20 ) )
|
||||
!app-misc/beid-runtime"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
use gtk || epatch "${FILESDIR}"/gtk_not_required_${PV}.patch
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
# Only in current git. Hopefully, in next release.
|
||||
sed -i -e 's:/beid/rsaref220:/rsaref220:' configure.ac || die
|
||||
sed -i -e 's:/beid::' cardcomm/pkcs11/src/libbeidpkcs11.pc.in || die
|
||||
fi
|
||||
|
||||
if [[ ${PV} == "9999" ]] || ! use gtk ; then
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable dialogs) --disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if [[ ${PV} != "9999" ]] ; then
|
||||
# Automatically done in current git. Hopefully, in next release.
|
||||
rm doc/sdk/include/rsaref220/win32.h || die
|
||||
doheader -r doc/sdk/include/*
|
||||
fi
|
||||
if use xpi; then
|
||||
declare MOZILLA_FIVE_HOME
|
||||
if has_version '>=www-client/firefox-3.6.20'; then
|
||||
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox"
|
||||
xpi_install "${D}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||||
fi
|
||||
if has_version '>=www-client/firefox-bin-3.6.24'; then
|
||||
MOZILLA_FIVE_HOME="/opt/firefox"
|
||||
xpi_install "${D}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||||
fi
|
||||
fi
|
||||
rm -r "${D}/usr/share" "${D}"/usr/lib*/*.la || die
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools mozextension multilib
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://github.com/Fedict/${PN}.git
|
||||
https://github.com/Fedict/${PN}.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
else
|
||||
MY_P="${P}-v${PV}"
|
||||
SRC_URI="https://downloads.services.belgium.be/eid/${MY_P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64 ~arm"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="LGPL-3"
|
||||
DESCRIPTION="Electronic Identity Card middleware supplied by the Belgian Federal Government"
|
||||
|
||||
HOMEPAGE="http://eid.belgium.be"
|
||||
|
||||
IUSE="+gtk +xpi +dialogs"
|
||||
|
||||
REQUIRED_USE="
|
||||
dialogs? ( gtk )"
|
||||
|
||||
RDEPEND="gtk? ( x11-libs/gtk+:= )
|
||||
>=sys-apps/pcsc-lite-1.2.9
|
||||
xpi? ( || ( >=www-client/firefox-bin-3.6.24
|
||||
>=www-client/firefox-3.6.20 ) )
|
||||
!app-misc/beid-runtime"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
use gtk || epatch "${FILESDIR}"/gtk_not_required_4.1.4.patch
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
# Only in current git. Hopefully, in next release.
|
||||
sed -i -e 's:/beid/rsaref220:/rsaref220:' configure.ac || die
|
||||
sed -i -e 's:/beid::' cardcomm/pkcs11/src/libbeidpkcs11.pc.in || die
|
||||
fi
|
||||
|
||||
if [[ ${PV} == "9999" ]] || ! use gtk ; then
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable dialogs) --disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if [[ ${PV} != "9999" ]] ; then
|
||||
# Automatically done in current git. Hopefully, in next release.
|
||||
rm doc/sdk/include/rsaref220/win32.h || die
|
||||
doheader -r doc/sdk/include/*
|
||||
fi
|
||||
if use xpi; then
|
||||
declare MOZILLA_FIVE_HOME
|
||||
if has_version '>=www-client/firefox-3.6.20'; then
|
||||
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox"
|
||||
xpi_install "${D}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||||
fi
|
||||
if has_version '>=www-client/firefox-bin-3.6.24'; then
|
||||
MOZILLA_FIVE_HOME="/opt/firefox"
|
||||
xpi_install "${D}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/belgiumeid@eid.belgium.be"
|
||||
fi
|
||||
fi
|
||||
rm -r "${D}/usr/share" "${D}"/usr/lib*/*.la || die
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
diff -ur eid-mw-4.1.4-v4.1.4-a/cardcomm/pkcs11/src/Makefile.am eid-mw-4.1.4-v4.1.4-b/cardcomm/pkcs11/src/Makefile.am
|
||||
--- eid-mw-4.1.4-v4.1.4-a/cardcomm/pkcs11/src/Makefile.am 2015-07-27 10:30:34.638418958 +0200
|
||||
+++ eid-mw-4.1.4-v4.1.4-b/cardcomm/pkcs11/src/Makefile.am 2015-08-13 14:12:43.827586821 +0200
|
||||
@@ -164,29 +164,3 @@
|
||||
dialogs/dialogsgtk/dlgs_gtk.cpp \
|
||||
dialogs/dialogsgtk/single_dialog.c
|
||||
endif
|
||||
-
|
||||
-libexec_PROGRAMS = beid-askpin beid-changepin beid-badpin beid-askaccess beid-spr-askpin beid-spr-changepin
|
||||
-
|
||||
-beid_askpin_SOURCES = dialogs/dialogsgtk/parent.c dialogs/dialogsgtk/beid-askpin.c
|
||||
-beid_askpin_CPPFLAGS = -I$(srcdir)/dialogsgtk -I$(srcdir)/../common/src -I$(srcdir)/src @GTK_CFLAGS@
|
||||
-beid_askpin_LDADD = @GTK_LIBS@
|
||||
-
|
||||
-beid_changepin_SOURCES = dialogs/dialogsgtk/parent.c dialogs/dialogsgtk/beid-changepin.c
|
||||
-beid_changepin_CPPFLAGS = -I$(dialogsdir)/dialogsgtk -I$(dialogsdir)/../common/dialogs -I$(dialogsdir)/dialogs @GTK_CFLAGS@
|
||||
-beid_changepin_LDADD = @GTK_LIBS@
|
||||
-
|
||||
-beid_badpin_SOURCES = dialogs/dialogsgtk/parent.c dialogs/dialogsgtk/beid-badpin.c
|
||||
-beid_badpin_CPPFLAGS = -I$(dialogsdir)/dialogsgtk -I$(dialogsdir)/../common/dialogs -I$(dialogsdir)/dialogs @GTK_CFLAGS@
|
||||
-beid_badpin_LDADD = @GTK_LIBS@
|
||||
-
|
||||
-beid_askaccess_SOURCES = dialogs/dialogsgtk/parent.c dialogs/dialogsgtk/beid-askaccess.c
|
||||
-beid_askaccess_CPPFLAGS = -I$(dialogsdir)/dialogsgtk -I$(dialogsdir)/../common/dialogs -I$(dialogsdir)/dialogs @GTK_CFLAGS@
|
||||
-beid_askaccess_LDADD = @GTK_LIBS@
|
||||
-
|
||||
-beid_spr_askpin_SOURCES = dialogs/dialogsgtk/parent.c dialogs/dialogsgtk/beid-spr-askpin.c
|
||||
-beid_spr_askpin_CPPFLAGS = -I$(dialogsdir)/dialogsgtk -I$(dialogsdir)/../common/dialogs -I$(dialogsdir)/dialogs @GTK_CFLAGS@
|
||||
-beid_spr_askpin_LDADD = @GTK_LIBS@
|
||||
-
|
||||
-beid_spr_changepin_SOURCES = dialogs/dialogsgtk/parent.c dialogs/dialogsgtk/beid-spr-changepin.c
|
||||
-beid_spr_changepin_CPPFLAGS = -I$(dialogsdir)/dialogsgtk -I$(dialogsdir)/../common/dialogs -I$(dialogsdir)/dialogs @GTK_CFLAGS@
|
||||
-beid_spr_changepin_LDADD = @GTK_LIBS@
|
||||
diff -ur eid-mw-4.1.4-v4.1.4-a/configure.ac eid-mw-4.1.4-v4.1.4-b/configure.ac
|
||||
--- eid-mw-4.1.4-v4.1.4-a/configure.ac 2015-07-27 10:30:34.641752294 +0200
|
||||
+++ eid-mw-4.1.4-v4.1.4-b/configure.ac 2015-08-13 14:13:51.456736608 +0200
|
||||
@@ -55,11 +55,6 @@
|
||||
fi
|
||||
fi
|
||||
|
||||
-if test x"$have_gtk" = "xno"
|
||||
-then
|
||||
- AC_MSG_ERROR([At least one version of GTK is required.])
|
||||
-fi
|
||||
-
|
||||
###########################################################################
|
||||
####### read user-specific requests from --enable directives ######
|
||||
###########################################################################
|
||||
diff -ur eid-mw-4.1.4-v4.1.4-a/Makefile.am eid-mw-4.1.4-v4.1.4-b/Makefile.am
|
||||
--- eid-mw-4.1.4-v4.1.4-a/Makefile.am 2015-07-27 10:30:34.638418958 +0200
|
||||
+++ eid-mw-4.1.4-v4.1.4-b/Makefile.am 2015-08-13 14:11:43.878340486 +0200
|
||||
@@ -1,7 +1,7 @@
|
||||
ACLOCAL_AMFLAGS = -I scripts/m4
|
||||
EXTRA_DIST = scripts/build-aux/config.rpath debian build-debian.sh rpm doc
|
||||
|
||||
-SUBDIRS=cardcomm/pkcs11/src tests/unit plugins_tools/xpi plugins_tools/aboutmw/gtk
|
||||
+SUBDIRS=cardcomm/pkcs11/src tests/unit plugins_tools/xpi
|
||||
|
||||
xpipackage:
|
||||
$(MAKE) -C plugins_tools/xpi xpipackage
|
@ -1,27 +0,0 @@
|
||||
--- eid-mw-4.1.18-v4.1.18-a/plugins_tools/xpi/src/Makefile.in 2016-05-20 12:58:46.184002742 +0200
|
||||
+++ eid-mw-4.1.18-v4.1.18-b/plugins_tools/xpi/src/Makefile.in 2016-06-18 16:18:57.467199895 +0200
|
||||
@@ -724,24 +724,6 @@
|
||||
@SIGNED_TRUE@ cp $(srcdir)/belgiumeid-1.0.18.1-signed.1-signed.xpi $(XPI_ID).xpi
|
||||
|
||||
@SIGNED_FALSE@xpipackage: $(xpi_files)
|
||||
-# Create a temporary directory $tmp in $TMPDIR (default /tmp).
|
||||
-# Use mktemp if possible; otherwise fall back on mkdir,
|
||||
-# with $RANDOM to make collisions less likely.
|
||||
-@SIGNED_FALSE@ { \
|
||||
-@SIGNED_FALSE@ tmp=` \
|
||||
-@SIGNED_FALSE@ (umask 077 && mktemp -t -d "xpiXXXXXX") 2>/dev/null \
|
||||
-@SIGNED_FALSE@ ` && \
|
||||
-@SIGNED_FALSE@ test -n "$$tmp" && test -d "$$tmp"; \
|
||||
-@SIGNED_FALSE@ } || { \
|
||||
-@SIGNED_FALSE@ tmp=$$TMPDIR/xpi$$RANDOM; \
|
||||
-@SIGNED_FALSE@ umask 077 && $(mkinstalldirs) "$$tmp"; \
|
||||
-@SIGNED_FALSE@ } || exit $$?; \
|
||||
-@SIGNED_FALSE@ $(MAKE) DESTDIR=$$tmp extensionrootdir=/ install; \
|
||||
-@SIGNED_FALSE@ cd $$tmp; \
|
||||
-@SIGNED_FALSE@ rm -f $(abs_builddir)/$(XPI_NAME); \
|
||||
-@SIGNED_FALSE@ @ZIP@ -rq $(abs_builddir)/$(XPI_NAME) .; \
|
||||
-@SIGNED_FALSE@ cd -; \
|
||||
-@SIGNED_FALSE@ rm -rf $$tmp;
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
@ -1,4 +1,2 @@
|
||||
DIST util-linux-2.21-20120228.diff.bz2 43809 SHA256 fc28d4f0e2737b53a4db59072ab0fcf4180a8ece28c79219a21780124798572a SHA512 94135ed18699efd949f5937576da2721957177bbef9be8234ae48ee34f30f4cb65361a541f79c636ed6d6bb5c2786e1096d096407834e1421d82ee78ae0790e9 WHIRLPOOL ba23dccc56fc49d7ad9075537317ad4580ace2a4cd8f6b0250f42035c03ba910f3cafa8e8b1da4c7e5a0960d74c42f2706fda579a3b4a6cadc61dccd2fff3ff0
|
||||
DIST util-linux-2.21.tar.xz 2954504 SHA256 5192e8ba7dcf3cf0dc447f07b3d177f6cb3fb49dfae54ac45d6c8c7d86eeab0f SHA512 aab384db2d1a3e08fd560a3e4d7ed7d6b2ceac61386db94eecae65bd540200a8549e141b99d8dad5c6f96587940b574d0544984acef6a35d1f24870e0072c552 WHIRLPOOL 1968ddd63fd21ef9542bb8afc77292ed2bad6f83e1cd67aa4159db8b320abd80ee0d20a062df35ae2ad91e0bc9068168b9f9e44aa39eaf4861d436dd855bea5d
|
||||
DIST util-linux-2.26-20150310.diff.bz2 41017 SHA256 18d88810d5d6e95313c23162566bcf7e1a7b785bed5dd395127c144127c9e9ef SHA512 c8e7d7a4795d2ed75af5e0513c19510ca649682df86655ecabe1563586bdb46f32bb9abd6cfb09df230f935cfa396e0d63b1545a40a5f4ce47524a82e7dd7ca6 WHIRLPOOL 2ca00b9ec52b64ce1e083b9a706003d1f0445fb5d7f391e28b698c684dba5cb8bc2a590565dcc23ac6527b8099838435b86e7a78097ab8a19491fe14b6c50ca6
|
||||
DIST util-linux-2.26.tar.xz 3847960 SHA256 a23c6f39dea0ed215ccd589509ffc7bb6f706f6e1a04760f493fb0fd7e93c489 SHA512 af07d49a433fce683da7bdf9aea5693ad108aa16166e0147716175bd779fe5090029617dd7db153bc0f5efcf7bdd377761a616efd4cca90a87bf317132ede88c WHIRLPOOL 4f7c9463bfe1523819671824de26e051c496c86884ca34b25208762179345c799fe61e566228ebfcbca2f2b63163539e37b06e438a58f562cf7b53f954564150
|
||||
|
@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
|
||||
inherit eutils toolchain-funcs flag-o-matic autotools
|
||||
|
||||
MY_PV="${PV/_/-}"
|
||||
MY_P="util-linux-${MY_PV}"
|
||||
LOOPAES_PV="${PV}-20120228"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DESCRIPTION="Loop-AES losetup utility"
|
||||
HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/"
|
||||
SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz
|
||||
http://loop-aes.sourceforge.net/updates/util-linux-${LOOPAES_PV}.diff.bz2"
|
||||
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-linux"
|
||||
|
||||
LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
|
||||
SLOT="0"
|
||||
IUSE="nls selinux uclibc static"
|
||||
|
||||
RDEPEND="selinux? ( sys-libs/libselinux )"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
virtual/os-headers"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}"/util-linux-*.diff
|
||||
use uclibc && sed -i -e s/versionsort/alphasort/g -e s/strverscmp.h/dirent.h/g mount/lomount.c
|
||||
eautoreconf
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
lfs_fallocate_test() {
|
||||
# Make sure we can use fallocate with LFS #300307
|
||||
cat <<-EOF > "${T}"/fallocate.c
|
||||
#define _GNU_SOURCE
|
||||
#include <fcntl.h>
|
||||
main() { return fallocate(0, 0, 0, 0); }
|
||||
EOF
|
||||
append-lfs-flags
|
||||
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.c -o /dev/null >/dev/null 2>&1 \
|
||||
|| export ac_cv_func_fallocate=no
|
||||
rm -f "${T}"/fallocate.c
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
lfs_fallocate_test
|
||||
econf \
|
||||
--disable-agetty \
|
||||
--disable-chsh-only-listed \
|
||||
--disable-cramfs \
|
||||
--disable-fallocate \
|
||||
--disable-fsck \
|
||||
--disable-kill \
|
||||
--disable-last \
|
||||
--disable-libmount \
|
||||
--disable-libmount-mount \
|
||||
--disable-libuuid \
|
||||
--disable-login-utils \
|
||||
--disable-makeinstall-chown \
|
||||
--disable-makeinstall-setuid \
|
||||
--disable-mesg \
|
||||
--disable-mountpoint \
|
||||
--disable-partx \
|
||||
--disable-pg-bell \
|
||||
--disable-pivot_root \
|
||||
--disable-raw \
|
||||
--disable-rename \
|
||||
--disable-require-password \
|
||||
--disable-reset \
|
||||
--disable-schedutils \
|
||||
--disable-switch_root \
|
||||
--disable-unshare \
|
||||
--disable-use-tty-group \
|
||||
--disable-uuidd \
|
||||
--disable-wall \
|
||||
--disable-write \
|
||||
--enable-libblkid \
|
||||
--enable-mount \
|
||||
--without-ncurses \
|
||||
--without-udev \
|
||||
$(use_enable nls) \
|
||||
$(use_with selinux) \
|
||||
$(tc-has-tls || echo --disable-tls) \
|
||||
$(use static && echo --enable-static-programs=losetup)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${T}/root"
|
||||
newsbin "${T}/root/sbin/losetup" loop-aes-losetup
|
||||
use static && newsbin "${T}/root/bin/losetup.static" loop-aes-losetup.static
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils multilib-minimal
|
||||
|
||||
DESCRIPTION="Provides a standard configuration setup for installing PKCS#11"
|
||||
HOMEPAGE="https://p11-glue.freedesktop.org/p11-kit.html"
|
||||
SRC_URI="https://p11-glue.freedesktop.org/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="+asn1 debug +libffi +trust"
|
||||
REQUIRED_USE="trust? ( asn1 )"
|
||||
|
||||
RDEPEND="asn1? ( >=dev-libs/libtasn1-3.4[${MULTILIB_USEDEP}] )
|
||||
libffi? ( >=dev-libs/libffi-3.0.0[${MULTILIB_USEDEP}] )
|
||||
trust? ( app-misc/ca-certificates )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
# disable unsafe tests, bug#502088
|
||||
export FAKED_MODE=1
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable trust trust-module) \
|
||||
$(use_with trust trust-paths ${EPREFIX}/etc/ssl/certs/ca-certificates.crt) \
|
||||
$(use_enable debug) \
|
||||
$(use_with libffi) \
|
||||
$(use_with asn1 libtasn1)
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
# re-use provided documentation
|
||||
ln -s "${S}"/doc/manual/html doc/manual/html || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
prune_libtool_files --modules
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
From 0f02761a158a5e9ddbd5801682482af8986dbc35 Mon Sep 17 00:00:00 2001
|
||||
From: albert-github <albert.tests@gmail.com>
|
||||
Date: Wed, 4 Jan 2017 12:24:55 +0100
|
||||
Subject: [PATCH] Bug 776791 - [1.8.13 Regression] Segfault building the
|
||||
breathe docs
|
||||
|
||||
Protected against NULL pointer of variable al
|
||||
---
|
||||
src/xmlgen.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
|
||||
index fe95c7a..70e198a 100644
|
||||
--- a/src/xmlgen.cpp
|
||||
+++ b/src/xmlgen.cpp
|
||||
@@ -620,7 +620,7 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De
|
||||
if (md->isInline()) t << "yes"; else t << "no";
|
||||
t << "\"";
|
||||
|
||||
- if (al->refQualifier!=RefQualifierNone)
|
||||
+ if (al!=0 && al->refQualifier!=RefQualifierNone)
|
||||
{
|
||||
t << " refqual=\"";
|
||||
if (al->refQualifier==RefQualifierLValue) t << "lvalue"; else t << "rvalue";
|
@ -0,0 +1,358 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit elisp-common flag-o-matic multilib readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
|
||||
HOMEPAGE="https://www.gnu.org/software/emacs/"
|
||||
SRC_URI="mirror://gnu-alpha/emacs/pretest/emacs-${PV/_/-}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
|
||||
SLOT="25"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="acl alsa aqua athena cairo dbus games gconf gfile gif gpm gsettings gtk +gtk3 gzip-el hesiod imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source ssl svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm xwidgets zlib"
|
||||
REQUIRED_USE="?? ( aqua X )"
|
||||
|
||||
RDEPEND="sys-libs/ncurses:0=
|
||||
>=app-eselect/eselect-emacs-1.16
|
||||
>=app-emacs/emacs-common-gentoo-1.5[games?,X?]
|
||||
net-libs/liblockfile
|
||||
acl? ( virtual/acl )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
dbus? ( sys-apps/dbus )
|
||||
gpm? ( sys-libs/gpm )
|
||||
hesiod? ( net-dns/hesiod )
|
||||
!inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
|
||||
kerberos? ( virtual/krb5 )
|
||||
libxml2? ( >=dev-libs/libxml2-2.2.0 )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
ssl? ( net-libs/gnutls )
|
||||
zlib? ( sys-libs/zlib )
|
||||
X? (
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-misc/xbitmaps
|
||||
gconf? ( >=gnome-base/gconf-2.26.2 )
|
||||
gsettings? ( >=dev-libs/glib-2.28.6 )
|
||||
gif? ( media-libs/giflib:0= )
|
||||
jpeg? ( virtual/jpeg:0= )
|
||||
png? ( >=media-libs/libpng-1.4:0= )
|
||||
svg? ( >=gnome-base/librsvg-2.0 )
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
imagemagick? ( >=media-gfx/imagemagick-6.6.2:0= )
|
||||
xft? (
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
x11-libs/libXft
|
||||
cairo? ( >=x11-libs/cairo-1.12.18 )
|
||||
m17n-lib? (
|
||||
>=dev-libs/libotf-0.9.4
|
||||
>=dev-libs/m17n-lib-1.5.1
|
||||
)
|
||||
)
|
||||
gtk? (
|
||||
xwidgets? (
|
||||
x11-libs/gtk+:3
|
||||
net-libs/webkit-gtk:3=
|
||||
)
|
||||
!xwidgets? (
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
!gtk3? ( x11-libs/gtk+:2 )
|
||||
)
|
||||
)
|
||||
!gtk? (
|
||||
motif? ( >=x11-libs/motif-2.3:0 )
|
||||
!motif? (
|
||||
Xaw3d? ( x11-libs/libXaw3d )
|
||||
!Xaw3d? ( athena? ( x11-libs/libXaw ) )
|
||||
)
|
||||
)
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
gzip-el? ( app-arch/gzip )
|
||||
pax_kernel? (
|
||||
sys-apps/attr
|
||||
sys-apps/paxctl
|
||||
)"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
!<app-editors/emacs-vcs-${PV}"
|
||||
|
||||
EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
|
||||
SITEFILE="20${PN}-${SLOT}-gentoo.el"
|
||||
# FULL_VERSION keeps the full version number, which is needed in
|
||||
# order to determine some path information correctly for copy/move
|
||||
# operations later on
|
||||
FULL_VERSION="${PV%%_*}"
|
||||
S="${WORKDIR}/emacs-${FULL_VERSION}"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
# Fix filename reference in redirected man page
|
||||
sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
|
||||
|| die "unable to sed ctags.1"
|
||||
|
||||
#AT_M4DIR=m4 eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-flags
|
||||
filter-flags -pie #526948
|
||||
|
||||
if use sh; then
|
||||
replace-flags "-O[1-9]" -O0 #262359
|
||||
elif use ia64; then
|
||||
replace-flags "-O[2-9]" -O1 #325373
|
||||
else
|
||||
replace-flags "-O[3-9]" -O2
|
||||
fi
|
||||
|
||||
local myconf
|
||||
|
||||
if use alsa; then
|
||||
use sound || ewarn \
|
||||
"USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
|
||||
myconf+=" --with-sound=alsa"
|
||||
else
|
||||
myconf+=" --with-sound=$(usex sound oss)"
|
||||
fi
|
||||
|
||||
if use X; then
|
||||
myconf+=" --with-x --without-ns"
|
||||
myconf+=" $(use_with gconf)"
|
||||
myconf+=" $(use_with gsettings)"
|
||||
myconf+=" $(use_with toolkit-scroll-bars)"
|
||||
myconf+=" $(use_with gif)"
|
||||
myconf+=" $(use_with jpeg)"
|
||||
myconf+=" $(use_with png)"
|
||||
myconf+=" $(use_with svg rsvg)"
|
||||
myconf+=" $(use_with tiff)"
|
||||
myconf+=" $(use_with xpm)"
|
||||
myconf+=" $(use_with imagemagick)"
|
||||
|
||||
if use xft; then
|
||||
myconf+=" --with-xft"
|
||||
myconf+=" $(use_with cairo)"
|
||||
myconf+=" $(use_with m17n-lib libotf)"
|
||||
myconf+=" $(use_with m17n-lib m17n-flt)"
|
||||
else
|
||||
myconf+=" --without-xft"
|
||||
myconf+=" --without-cairo"
|
||||
myconf+=" --without-libotf --without-m17n-flt"
|
||||
use cairo && ewarn \
|
||||
"USE flag \"cairo\" has no effect if \"xft\" is not set."
|
||||
use m17n-lib && ewarn \
|
||||
"USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
|
||||
fi
|
||||
|
||||
local f
|
||||
if use gtk; then
|
||||
einfo "Configuring to build with GIMP Toolkit (GTK+)"
|
||||
while read line; do ewarn "${line}"; done <<-EOF
|
||||
Your version of GTK+ will have problems with closing open
|
||||
displays. This is no problem if you just use one display, but
|
||||
if you use more than one and close one of them Emacs may crash.
|
||||
See <https://bugzilla.gnome.org/show_bug.cgi?id=85715>.
|
||||
If you intend to use more than one display, then it is strongly
|
||||
recommended that you compile Emacs with the Athena/Lucid or the
|
||||
Motif toolkit instead.
|
||||
EOF
|
||||
if use xwidgets; then
|
||||
myconf+=" --with-x-toolkit=gtk3 --with-xwidgets"
|
||||
else
|
||||
myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
|
||||
myconf+=" --without-xwidgets"
|
||||
fi
|
||||
for f in motif Xaw3d athena; do
|
||||
use ${f} && ewarn \
|
||||
"USE flag \"${f}\" has no effect if \"gtk\" is set."
|
||||
done
|
||||
elif use motif; then
|
||||
einfo "Configuring to build with Motif toolkit"
|
||||
myconf+=" --with-x-toolkit=motif"
|
||||
for f in Xaw3d athena; do
|
||||
use ${f} && ewarn \
|
||||
"USE flag \"${f}\" has no effect if \"motif\" is set."
|
||||
done
|
||||
elif use athena || use Xaw3d; then
|
||||
einfo "Configuring to build with Athena/Lucid toolkit"
|
||||
myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
|
||||
else
|
||||
einfo "Configuring to build with no toolkit"
|
||||
myconf+=" --with-x-toolkit=no"
|
||||
fi
|
||||
! use gtk && use xwidgets && ewarn \
|
||||
"USE flag \"xwidgets\" has no effect if \"gtk\" is not set."
|
||||
elif use aqua; then
|
||||
einfo "Configuring to build with Nextstep (Cocoa) support"
|
||||
myconf+=" --with-ns --disable-ns-self-contained"
|
||||
myconf+=" --without-x"
|
||||
else
|
||||
myconf+=" --without-x --without-ns"
|
||||
fi
|
||||
|
||||
# Save version information in the Emacs binary. It will be available
|
||||
# in variable "system-configuration-options".
|
||||
myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
|
||||
|
||||
econf \
|
||||
--program-suffix="-${EMACS_SUFFIX}" \
|
||||
--infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
|
||||
--localstatedir="${EPREFIX}"/var \
|
||||
--enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
|
||||
--with-gameuser=":gamestat" \
|
||||
--without-compress-install \
|
||||
--with-file-notification=$(usev inotify || usev gfile || echo no) \
|
||||
$(use_enable acl) \
|
||||
$(use_with dbus) \
|
||||
$(use_with gpm) \
|
||||
$(use_with hesiod) \
|
||||
$(use_with kerberos) $(use_with kerberos kerberos5) \
|
||||
$(use_with libxml2 xml2) \
|
||||
$(use_with selinux) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_with wide-int) \
|
||||
$(use_with zlib) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
|
||||
emake
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" NO_BIN_LINK=t install
|
||||
|
||||
mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \
|
||||
|| die "moving emacs executable failed"
|
||||
mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \
|
||||
|| die "moving emacs man page failed"
|
||||
|
||||
# move info dir to avoid collisions with the dir file generated by portage
|
||||
mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
|
||||
|| die "moving info dir failed"
|
||||
touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
|
||||
docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
|
||||
|
||||
# avoid collision between slots, see bug #169033 e.g.
|
||||
rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
|
||||
rm -rf "${ED}"/usr/share/{appdata,applications,icons}
|
||||
rm -rf "${ED}"/var
|
||||
|
||||
# remove unused <version>/site-lisp dir
|
||||
rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
|
||||
|
||||
# remove COPYING file (except for etc/COPYING used by describe-copying)
|
||||
rm "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp/COPYING
|
||||
|
||||
if use gzip-el; then
|
||||
# compress .el files when a corresponding .elc exists
|
||||
find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
|
||||
-name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
|
||||
assert "gzip .el failed"
|
||||
fi
|
||||
|
||||
local cdir
|
||||
if use source; then
|
||||
cdir="/usr/share/emacs/${FULL_VERSION}/src"
|
||||
insinto "${cdir}"
|
||||
# This is not meant to install all the source -- just the
|
||||
# C source you might find via find-function
|
||||
doins src/*.{c,h,m}
|
||||
elif has installsources ${FEATURES}; then
|
||||
cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
|
||||
fi
|
||||
|
||||
sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF
|
||||
X
|
||||
;;; ${PN}-${SLOT} site-lisp configuration
|
||||
X
|
||||
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
|
||||
Y (setq find-function-C-source-directory
|
||||
Y "${EPREFIX}${cdir}")
|
||||
X (let ((path (getenv "INFOPATH"))
|
||||
X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
|
||||
X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
|
||||
X (and path
|
||||
X ;; move Emacs Info dir before anything else in /usr/share/info
|
||||
X (let* ((p (cons nil (split-string path ":" t))) (q p))
|
||||
X (while (and (cdr q) (not (string-match re (cadr q))))
|
||||
X (setq q (cdr q)))
|
||||
X (setcdr q (cons dir (delete dir (cdr q))))
|
||||
X (setq Info-directory-list (prune-directory-list (cdr p)))))))
|
||||
EOF
|
||||
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||
|
||||
dodoc README BUGS CONTRIBUTE
|
||||
|
||||
if use aqua; then
|
||||
dodir /Applications/Gentoo
|
||||
rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
|
||||
mv nextstep/Emacs.app \
|
||||
"${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
|
||||
fi
|
||||
|
||||
DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
|
||||
through the Emacs eselect module, which also redirects man and info
|
||||
pages. Therefore, several Emacs versions can be installed at the
|
||||
same time. \"man emacs.eselect\" for details.
|
||||
\\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
|
||||
strongly recommended that you use app-admin/emacs-updater to rebuild
|
||||
all byte-compiled elisp files of the installed Emacs packages."
|
||||
use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
|
||||
Installing media-fonts/font-adobe-{75,100}dpi on the X server's
|
||||
machine would satisfy basic Emacs requirements under X11.
|
||||
See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
|
||||
for how to enable anti-aliased fonts."
|
||||
use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
|
||||
\"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink
|
||||
it into /Applications by yourself."
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# move Info dir file to correct name
|
||||
local infodir=/usr/share/info/${EMACS_SUFFIX} f
|
||||
if [[ -f ${ED}${infodir}/dir.orig ]]; then
|
||||
mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
|
||||
elif [[ -d "${ED}"${infodir} ]]; then
|
||||
# this should not happen in EAPI 4
|
||||
ewarn "Regenerating Info directory index in ${infodir} ..."
|
||||
rm -f "${ED}"${infodir}/dir{,.*}
|
||||
for f in "${ED}"${infodir}/*; do
|
||||
if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
|
||||
install-info --info-dir="${ED}"${infodir} "${f}" \
|
||||
|| die "install-info failed"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elisp-site-regen
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use livecd; then
|
||||
# force an update of the emacs symlink for the livecd/dvd,
|
||||
# because some microemacs packages set it with USE=livecd
|
||||
eselect emacs update
|
||||
elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then
|
||||
# refresh symlinks in case any installed files have changed
|
||||
eselect emacs set ${EMACS_SUFFIX}
|
||||
else
|
||||
eselect emacs update ifunset
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
elisp-site-regen
|
||||
eselect emacs update ifunset
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST emacs-common-gentoo-1.5.tar.xz 40844 SHA256 fbec52de8552c6b22f56382a28d469d9346c02c7569c05cdb0db6a54b39995a1 SHA512 61ac2a1bb8bc449480137789f4d93228d81d2a7ea87a255a7fd82072ce98eecf5f585d102db95f0deda06102e27efbd5d9fce8cd21d6b58239f7a2b6d4ee4d55 WHIRLPOOL bb6d58d8afb55c9d6204f82553962190cd50f64d25ea5fb50308827f88ea3b1c42dc0e072155567391ffc7745b8871c733c9aee5042b57bfcbef5e5419d0b6cf
|
||||
DIST emacs-common-gentoo-1.6.tar.xz 61224 SHA256 7f43a198068abba9e0735f7dee3bb642dd1531e33563ded364751319bea8f9ec SHA512 a7daed2241d778ab283482ecc016801e25084eed10fcbbc50e187d5f842df5a0d278a77f94ae950b086c8651e8ca1a18f89c11dffdde9cf9168755288aae926a WHIRLPOOL 7112026dda683d6282807181e7a6e1d666c90df0858b63ae704db05b40ff59b10ab984dd066eeb91fc670cff71eb9bc94cac7b19571409ac166d53a6cec16e39
|
||||
|
@ -0,0 +1,114 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit elisp-common eutils fdo-mime gnome2-utils readme.gentoo-r1 user
|
||||
|
||||
DESCRIPTION="Common files needed by all GNU Emacs versions"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
|
||||
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="games X"
|
||||
|
||||
PDEPEND="virtual/emacs"
|
||||
|
||||
pkg_setup() {
|
||||
use games && enewgroup gamestat 36
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "${SITELISP}"
|
||||
doins subdirs.el
|
||||
newins site-gentoo.el{,.orig}
|
||||
|
||||
keepdir /etc/emacs
|
||||
insinto /etc/emacs
|
||||
doins site-start.el
|
||||
|
||||
if use games; then
|
||||
keepdir /var/games/emacs
|
||||
fowners 0:gamestat /var/games/emacs
|
||||
fperms g+w /var/games/emacs
|
||||
fi
|
||||
|
||||
if use X; then
|
||||
local i
|
||||
domenu emacs.desktop emacsclient.desktop || die
|
||||
|
||||
pushd icons || die
|
||||
newicon sink.png emacs-sink.png
|
||||
newicon emacs25_48.png emacs.png
|
||||
for i in 16 24 32 48 128; do
|
||||
[[ ${i} -le 48 ]] && newicon -s ${i} emacs22_${i}.png emacs22.png
|
||||
newicon -s ${i} emacs23_${i}.png emacs23.png
|
||||
newicon -s ${i} emacs25_${i}.png emacs.png
|
||||
done
|
||||
doicon -s scalable emacs23.svg
|
||||
newicon -s scalable emacs25.svg emacs.svg
|
||||
popd
|
||||
|
||||
gnome2_icon_savelist
|
||||
fi
|
||||
|
||||
DOC_CONTENTS="All site initialisation for Gentoo-installed packages is
|
||||
added to ${SITELISP}/site-gentoo.el. In order for this site
|
||||
initialisation to be loaded for all users automatically, a default
|
||||
site startup file /etc/emacs/site-start.el is installed. You are
|
||||
responsible for maintenance of this file.
|
||||
\n\nAlternatively, individual users can add the following command:
|
||||
\n\n(require 'site-gentoo)
|
||||
\n\nto their ~/.emacs initialisation files, or, for greater
|
||||
flexibility, users may load single package-specific initialisation
|
||||
files from the ${SITELISP}/site-gentoo.d/ directory."
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# make sure that site-gentoo.el exists since site-start.el requires it
|
||||
if [[ ! -f ${ED}${SITELISP}/site-gentoo.el ]]; then #554518
|
||||
mv "${ED}${SITELISP}"/site-gentoo.el{.orig,} || die
|
||||
fi
|
||||
if [[ -d ${EROOT}${SITELISP} ]]; then
|
||||
elisp-site-regen
|
||||
cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die
|
||||
fi
|
||||
|
||||
if use games; then
|
||||
local f
|
||||
for f in /var/games/emacs/{snake,tetris}-scores; do
|
||||
if [[ -e ${EROOT}${f} ]]; then
|
||||
cp "${EROOT}${f}" "${ED}${f}" || die
|
||||
fi
|
||||
touch "${ED}${f}" || die
|
||||
chgrp gamestat "${ED}${f}" || die
|
||||
chmod g+w "${ED}${f}" || die
|
||||
done
|
||||
|
||||
if has 1.4-r1 ${REPLACING_VERSIONS} \
|
||||
&& [[ -d ${EROOT}/var/games/emacs ]]; then
|
||||
elog "Updating owner and permissions of score file directory."
|
||||
chown 0:gamestat "${EROOT}"/var/games/emacs || die
|
||||
chmod 775 "${EROOT}"/var/games/emacs || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use X; then
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use X; then
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST diskimage-builder-1.26.1.tar.gz 260140 SHA256 dd842a364124a59aaa3751fe178f8799c39e29badbc69d1459d2ed35b9042660 SHA512 698c97b7e016a87c2acd83d27400bd009e8148bb76efc737fae3344aa2c860fdf4060f1608eaa38566c24fa68c5fdbf51559ab64f9d9ef26d0adbe3a1b69325f WHIRLPOOL 83e86a6b5a1629041465be971657968fbdad3377ba9c3bb60ce29b2dd658165541f6e3b5a67eaa13727221e0a44032aafb26b30e042453e2a4c4e085cb26f3da
|
||||
DIST diskimage-builder-1.27.0.tar.gz 264590 SHA256 108e6fa41cbab88a018e43b19f5706b20a984b94131d6451876eedc26a26a892 SHA512 63e98c95452f9ddb9ae21f208b7dc840a9a10a02e9dee8d313cac531854b706f7662ea7b907f38a72c58d6ecdead324782d4cbda32fb7a4861b8c4bef9412a56 WHIRLPOOL 586b62729a5577a0ed804c7f457297e0624d1e491ab82ee95c29443ba46d5769814fded9ae88e2b6f7e2ec8d69b208851f24f26f04667717055944d296ccdb9f
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Golden Disk Image builder."
|
||||
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||
dev-python/dib-utils[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flake8-2.5.4[${PYTHON_USEDEP}]
|
||||
<dev-python/flake8-2.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}]
|
||||
app-emulation/qemu
|
||||
sys-block/parted
|
||||
sys-fs/multipath-tools"
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic toolchain-funcs readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="Radio Shack TRS-80 emulator"
|
||||
HOMEPAGE="http://www.tim-mann.org/xtrs.html"
|
||||
SRC_URI="http://www.tim-mann.org/trs80/${P}.tar.gz
|
||||
ls-dos? (
|
||||
http://www.tim-mann.org/trs80/ld4-631.zip
|
||||
https://dev.gentoo.org/~ulm/distfiles/ld4-631l.xd3
|
||||
)"
|
||||
|
||||
LICENSE="xtrs ls-dos? ( freedist )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
|
||||
IUSE="ls-dos"
|
||||
RESTRICT="ls-dos? ( bindist )"
|
||||
|
||||
RDEPEND="sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
x11-libs/libX11"
|
||||
DEPEND="${RDEPEND}
|
||||
ls-dos? ( app-arch/unzip dev-util/xdelta:3 )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' Makefile || die
|
||||
eapply_user
|
||||
if use ls-dos; then
|
||||
cd "${WORKDIR}" || die
|
||||
xdelta3 -d -s ld4-631.dsk "${DISTDIR}"/ld4-631l.xd3 out.dsk || die
|
||||
mv out.dsk ld4-631.dsk || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
case $(tc-endian) in
|
||||
little) ;;
|
||||
big) append-flags -Dbig_endian ;;
|
||||
*) die ;;
|
||||
esac
|
||||
emake CC="$(tc-getCC)" DEBUG="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/bin /usr/share/xtrs/disks /usr/share/man/man1
|
||||
emake PREFIX="${D}"/usr install
|
||||
|
||||
insopts -m0444
|
||||
insinto /usr/share/xtrs/disks
|
||||
doins cpmutil.dsk utility.dsk
|
||||
|
||||
if use ls-dos; then
|
||||
doins "${WORKDIR}"/ld4-631.dsk
|
||||
dosym disks/ld4-631.dsk /usr/share/xtrs/disk4p-0
|
||||
dosym disks/utility.dsk /usr/share/xtrs/disk4p-1
|
||||
fi
|
||||
|
||||
dodoc ChangeLog README xtrsrom4p.README cpmutil.html dskspec.html
|
||||
|
||||
DOC_CONTENTS="For copyright reasons, xtrs does not include actual ROM
|
||||
images. Because of this, unless you supply your own ROM, xtrs will
|
||||
not function in any mode except 'Model 4p' mode (a minimal free ROM
|
||||
is included for this), which can be run like this:
|
||||
\n\nxtrs -model 4p -diskdir /usr/share/xtrs
|
||||
\n\nIf you already own a copy of the ROM software (e.g., if you have
|
||||
a TRS-80 with this ROM), then you can make yourself a copy of this
|
||||
for use with xtrs, using utilities available on the web. To load
|
||||
your own ROM, specify the '-romfile' option, or the 'Xtrs.romfile'
|
||||
X resource. ROM files can be in Intel hex or binary format."
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST enca-1.13.tar.bz2 532000 SHA256 6c091455d524b3ddae3533fe9bb375092f60ad6fe252e0777c873bd7869c7432 SHA512 7c5cb7b28eea271c4c94135082c1aa3f312bf790aaa4f51c954fd87ed734fae04ec07be99b20e7dfa3a668349c17d97f1eeea1ee553f9b841e74bfafc5a5906a WHIRLPOOL 0080ce92c22c5ad8b34eea767133602d73e3ebcbcb5084794e5e5da37edceab1bba9785f3884aa5c84749be89116eecf7bc59faa0ebb7118e97411f97e97e4a8
|
||||
DIST enca-1.14.tar.bz2 560982 SHA256 7f33e3953fbbdac8ed144b31bbab1bb3bf181150db6ba4cd812fd958ce5f4b58 SHA512 9d0582cc8187f3e868339c3e13ca2c654359b240dd564b64a31615aeffb0ec7ae025659576cc72f6cab73b0bfa22286060f665f2c952f8dfe702cf97a39d2245 WHIRLPOOL 921038e3c6a612b38820d7314a7afe83c231e48396cd801dcbeb3f64afe157b0b5009ada00ae59f35ee4a882c4a40f46ac3346139c99da00611b073b561cfbee
|
||||
DIST enca-1.19.tar.xz 465412 SHA256 3a487eca40b41021e2e4b7a6440b97d822e6532db5464471f572ecf77295e8b8 SHA512 6678639992685180457bbef7b0da6e475071ec6935dfd672188fc242ef80b906e75eff9a206e07989893d0ef4ae5eb500f1d0bbd6b4d58146c94bb143b5fb296 WHIRLPOOL 56a4ed0027ae2f68d769f1bf3201b57127be5b7e42ca35fa2e92dd755cf0691163ec0fbc7cdee57e6a2b528b36d0471bdd1666a42224e82e1d157b4f92598c1d
|
||||
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=2.52
|
||||
inherit eutils toolchain-funcs autotools-utils
|
||||
|
||||
DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
|
||||
HOMEPAGE="http://gitorious.org/enca"
|
||||
SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc +recode"
|
||||
|
||||
DEPEND="recode? ( >=app-text/recode-3.6_p15 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch
|
||||
# fix crosscompilation, bug #424473
|
||||
if tc-is-cross-compiler; then
|
||||
sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
|
||||
fi
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-external
|
||||
--disable-static
|
||||
$(use_with recode librecode "${EPREFIX}"/usr)
|
||||
$(use_enable doc gtk-doc)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if tc-is-cross-compiler; then
|
||||
pushd "${AUTOTOOLS_BUILD_DIR}"/tools > /dev/null
|
||||
$(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
|
||||
popd > /dev/null
|
||||
fi
|
||||
autotools-utils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=2.52
|
||||
|
||||
inherit eutils toolchain-funcs autotools-multilib
|
||||
|
||||
DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
|
||||
HOMEPAGE="http://gitorious.org/enca"
|
||||
SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc +recode"
|
||||
|
||||
DEPEND="recode? ( >=app-text/recode-3.6_p15 )
|
||||
sys-devel/gettext"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch
|
||||
epatch "${FILESDIR}"/${P}-automake-1.13.patch
|
||||
rm missing # too old, automake will update it
|
||||
# fix crosscompilation, bug #424473
|
||||
if tc-is-cross-compiler; then
|
||||
sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
|
||||
fi
|
||||
autotools-multilib_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-external
|
||||
--disable-static
|
||||
$(use_with recode librecode "${EPREFIX}"/usr)
|
||||
$(use_enable doc gtk-doc)
|
||||
)
|
||||
autotools-multilib_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
if tc-is-cross-compiler; then
|
||||
pushd "${BUILD_DIR}"/tools > /dev/null
|
||||
$(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
|
||||
popd > /dev/null
|
||||
fi
|
||||
# It will fail if we run these twice...
|
||||
if ! multilib_is_native_abi ; then
|
||||
sed -i -e 's/ src / /' Makefile || die
|
||||
sed -i -e '/SUBDIRS/s/ test//' Makefile || die
|
||||
sed -i -e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die
|
||||
fi
|
||||
autotools-utils_src_compile
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=2.52
|
||||
|
||||
inherit eutils toolchain-funcs autotools-multilib
|
||||
|
||||
DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
|
||||
HOMEPAGE="http://gitorious.org/enca"
|
||||
SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ~ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc +recode"
|
||||
|
||||
RDEPEND="recode? ( >=app-text/recode-3.6_p15 )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch \
|
||||
"${FILESDIR}"/${P}-automake-1.13.patch \
|
||||
"${FILESDIR}"/${P}-gcc4.8-avx-bug.patch
|
||||
rm missing # too old, automake will update it
|
||||
# fix crosscompilation, bug #424473
|
||||
if tc-is-cross-compiler; then
|
||||
sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
|
||||
fi
|
||||
autotools-multilib_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-external
|
||||
--disable-static
|
||||
$(use_with recode librecode "${EPREFIX}"/usr)
|
||||
$(use_enable doc gtk-doc)
|
||||
)
|
||||
autotools-multilib_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
if tc-is-cross-compiler; then
|
||||
pushd "${BUILD_DIR}"/tools > /dev/null
|
||||
$(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
|
||||
popd > /dev/null
|
||||
fi
|
||||
# It will fail if we run these twice...
|
||||
if ! multilib_is_native_abi ; then
|
||||
sed -i -e 's/ src / /'\
|
||||
-e '/SUBDIRS/s/ test//' Makefile\
|
||||
-e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die
|
||||
fi
|
||||
autotools-utils_src_compile
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 956763d..6a624ab 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -24,7 +24,7 @@ AC_CONFIG_FILES( \
|
||||
test/Makefile \
|
||||
tools/Makefile)
|
||||
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
AM_INIT_AUTOMAKE([1.8 gnits check-news dist-bzip2])
|
||||
AM_ACLOCAL_INCLUDE(m4)
|
||||
AM_MAINTAINER_MODE
|
||||
@@ -40,7 +40,7 @@ AC_GNU_SOURCE
|
||||
AC_AIX
|
||||
AC_ISC_POSIX
|
||||
AC_PROG_LIBTOOL
|
||||
-AM_PROG_CC_STDC
|
||||
+AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
diff --git a/m4/typevar.m4 b/m4/typevar.m4
|
||||
index ce9578d..66077eb 100644
|
||||
--- a/m4/typevar.m4
|
||||
+++ b/m4/typevar.m4
|
||||
@@ -6,7 +6,6 @@
|
||||
## defined in errno.h
|
||||
AC_DEFUN([ye_CHECK_VAR_PROGRAM_INVOCATION_SHORT_NAME],
|
||||
[AC_REQUIRE([AC_PROG_CC])dnl
|
||||
-AC_REQUIRE([AM_PROG_CC_STDC])dnl
|
||||
dnl
|
||||
|
||||
dnl Check for program_invocation_short_name (present on GNU systems only?)
|
@ -1,15 +0,0 @@
|
||||
Avoid gcc-4.8.4 bug when built with -O3 -march=core-avx2
|
||||
https://bugs.gentoo.org/501386
|
||||
diff --git a/lib/multibyte.c b/lib/multibyte.c
|
||||
index d0d0680..d511f88 100644
|
||||
--- a/lib/multibyte.c
|
||||
+++ b/lib/multibyte.c
|
||||
@@ -520,7 +520,7 @@ looks_like_ucs2(EncaAnalyserState *analyser)
|
||||
static int
|
||||
looks_like_ucs4(EncaAnalyserState *analyser)
|
||||
{
|
||||
- static const EncaSurface PERMS[] = {
|
||||
+ /*static*/ const EncaSurface PERMS[] = {
|
||||
ENCA_SURFACE_PERM_4321,
|
||||
ENCA_SURFACE_PERM_21
|
||||
};
|
@ -1,19 +0,0 @@
|
||||
diff -Naur enca-1.13.orig//configure.ac enca-1.13/configure.ac
|
||||
--- enca-1.13.orig//configure.ac 2010-02-09 05:23:03.000000000 -0500
|
||||
+++ enca-1.13/configure.ac 2012-06-29 18:04:51.000000000 -0400
|
||||
@@ -97,15 +97,6 @@
|
||||
dnl Check for good random number sources
|
||||
AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom)
|
||||
|
||||
-dnl Dirty path hack. Helps some people with badly set up search paths.
|
||||
-if test "$prefix" = "NONE"; then
|
||||
- LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib"
|
||||
- CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include"
|
||||
-else
|
||||
- LDFLAGS="$LDFLAGS -L$prefix/lib"
|
||||
- CPPFLAGS="$CPPFLAGS -I$prefix/include"
|
||||
-fi
|
||||
-
|
||||
dnl Checks for libraries.
|
||||
ye_CHECK_LIBM
|
||||
|
@ -1,3 +1,2 @@
|
||||
DIST opencc-0.3.0_pre20120819.tar.xz 363528 SHA256 3ed46594547b86f1326b07c3ea910148b1c58b74c9d21c8d4e11ec30e2254fae SHA512 0ca231b5fd7b314111a76bfaa8e288fc2d43e02dbbb2a7c7e9312c1f1f0aed1a0d3b67b04b0cc3634d1b48b8fe6983e6219db053f3a2114abadec1af00b9f8d5 WHIRLPOOL 268d331479bffefdc6e1f58600422a36a32abb7d4dd873eeb216977daca05f4a4775ca547bb301bc16ea8fc702ef04cfd5d8f88c90d10e224a585575129e67c6
|
||||
DIST opencc-0.4.3.tar.gz 535151 SHA256 7bdcf9e38ac05a16750d5276494d810db107c8a8b5f8b87e2357ee167a13a587 SHA512 ac31c3c018467cf047e077d399903560feb0f8c214accd1ef45d0b1477d011af8e9bf2dbde4497c133daef61b6508460e9b2b04c0b5f336c2d67fc840a1d07e6 WHIRLPOOL 316857e7720e962c9fde27c04327c0c6b5137ca7290b170cc1ead86dcd0c6f14202ac2386f6e565ad12ebca99c939a511447902054792203edeabed88e149a2e
|
||||
DIST opencc-1.0.4.tar.gz 1597309 SHA256 0553b7461ebd379d118d45d7f40f8a6e272750115bdbc49267595a05ee3481ac SHA512 682cc621fddb6495f26675863faefe7c9f584d2c60676cee0a3ff2120828a09a5e71671f5537030c2cc874f55b7f22af70d9d376f17b83e30cb04dcd5f6bba8a WHIRLPOOL 964180d27db85df6ffb4310ea6cae7b6c294c163bce68d05a5a21e8e736be6c11b44f8a2a856481b47e14c8c1104d244fc294259cbfa2f3160912743ac933cd6
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils multilib eutils
|
||||
|
||||
DESCRIPTION="Libraries for conversion between Traditional and Simplified Chinese"
|
||||
HOMEPAGE="https://github.com/BYVoid/OpenCC"
|
||||
SRC_URI="https://opencc.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="+nls static-libs"
|
||||
|
||||
DEPEND="nls? ( sys-devel/gettext )"
|
||||
RDEPEND="nls? ( virtual/libintl )"
|
||||
|
||||
DOCS="AUTHORS NEWS.md README.md"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
"$(cmake-utils_use_enable nls GETTEXT)"
|
||||
-DCMAKE_INSTALL_LIBDIR="${EPREFIX}"/usr/$(get_libdir)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.la' -o -name '*.a' -exec rm {} +
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST webgen-1.3.0.gem 198656 SHA256 0e50e515d1cd0f07b8d1bb72735b7a8fa162906d36541f9bcf10c41d2b1695a6 SHA512 921ffe9788ccf719eab7e8225b328990762ff04e928fbc699d4ab40170b437b54fe526887fd0de7209c6b7c2f50e0791ffe88eaebd73f77ef5a3df4c2235ba11 WHIRLPOOL be0bc1d3d1189847548b4aae83811d5f429badb724d21f5880c67d06d4ca21b7ca668c02f3b879344a123e5f2ed9f0cd949ab4c2c99002e0444360c09ddecb9b
|
||||
DIST webgen-1.4.0.gem 200192 SHA256 76be494c1eee2d1afdbff9f9d8f5bab694f5700c6c6573e7f7b9f850726271cb SHA512 4f18c247b96a159925769c44379e8fce1ff55d4a901f55e81ba102cb57b4a59c5f7428c491391f23fab4450dc3884463924274e34d4c40fe9487efbe25e4fac1 WHIRLPOOL 3ff7522acbd2a792d7d39f18bd07bc78351537a11efe5ef6f0ef41e7516ac68221d9c708fd34e1857d77b6d924306565a1bad194427619c5755df09e62c057e2
|
||||
|
@ -1,39 +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"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="htmldoc/rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="AUTHORS THANKS"
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="data"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A template-based static website generator"
|
||||
HOMEPAGE="http://webgen.gettalong.org"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="builder highlight markdown"
|
||||
|
||||
ruby_add_bdepend "doc? ( dev-ruby/rdoc )
|
||||
test? ( dev-ruby/kramdown
|
||||
dev-ruby/minitest:5
|
||||
dev-ruby/rdiscount
|
||||
>=dev-ruby/sass-3.2:0 )"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/cmdparse-2.0.0:0
|
||||
dev-ruby/systemu
|
||||
dev-ruby/kramdown
|
||||
builder? ( >=dev-ruby/builder-2.1.0 )
|
||||
highlight? ( >=dev-ruby/coderay-0.8.312 )
|
||||
markdown? ( dev-ruby/maruku )"
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doman man/man1/webgen.1
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST Firebird-2.5.3.26780-0.tar.bz2 13798872 SHA256 0c4b500d189aa9b4c12a7d2cf310a0b770118967c37ebe0edf8581cbcdad7aad SHA512 b8a0bef492d15739ea9a156225ac738687241a11571ce52ee6c644e5017dcff03007945aeb19b0537aadd1de01b339645871ff1905edf41c65679db377c69e98 WHIRLPOOL 0321763e79882dcdd2175191e1cbf6c82d656bb16e5ebd4a3bf0f08c77ee0494f06ffb08205b583c4a9990c33d652ac2fa73683e4c7ccebe900236975c8d60a5
|
||||
DIST Firebird-2.5.6.27020-0.tar.bz2 13610463 SHA256 8e416f2f9a8f1fce2aa872925ca2016010878265ec56fe0a32a73e0080378826 SHA512 db336877bf53503f882f18fbd4c1ef080543d617432c48340a3ac2a9970d960e99d1ca76609c0b3037b2f457ac7c6e23f119e618919b86b52cff89db8aaf3062 WHIRLPOOL c6264f68e917def39eb1ea2ce167e24e6a5903593cb174da656ea7739fbef6ea0a5928a68c772336df10e69440f0cdb6a37c09c98cee6898a43b2f9dc85af671
|
||||
DIST ib_b60_doc.zip 10530848 SHA256 8c0158678b2a2fe3ba3abfea1f5487fc5af2644d66837ab8a558f5ad6b6cfd6d SHA512 59eccf1d6b1f0410eddbc5967fd77a3d00e09749640b3f81e2f8b624f5a45461dffad4af5ec61488e941fb3d3af266fe86c0b56e6b7e023239537cb6557a145a WHIRLPOOL 5c3e17eec64d835bac8832a51acefe04c3a5ff818d1d1e69a032bae1a730fd73996a2be073d2e22bcd4ad4ee1ba2247da8271cd3a03c0326acf46eef1073033f
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff -Naur Firebird-2.5.5.26952-0_orig/src/burp/burp.cpp Firebird-2.5.5.26952-0/src/burp/burp.cpp
|
||||
--- Firebird-2.5.5.26952-0_orig/src/burp/burp.cpp 2016-03-01 16:46:48.418536462 -0500
|
||||
+++ Firebird-2.5.5.26952-0/src/burp/burp.cpp 2016-03-01 16:48:19.511690164 -0500
|
||||
@@ -460,7 +460,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
- BURP_print(true, 137, sw.c_str());
|
||||
+ BURP_error(137, true, sw.c_str());
|
||||
// msg 137 unknown switch %s
|
||||
}
|
||||
}
|
@ -0,0 +1,284 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools flag-o-matic user versionator
|
||||
|
||||
MY_P=${PN/f/F}-$(replace_version_separator 4 -)
|
||||
|
||||
DESCRIPTION="Relational database offering many ANSI SQL:2003 and some SQL:2008 features"
|
||||
HOMEPAGE="https://www.firebirdsql.org/"
|
||||
SRC_URI="
|
||||
mirror://sourceforge/firebird/${MY_P}.tar.bz2
|
||||
doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
|
||||
|
||||
LICENSE="IDPL Interbase-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="debug doc examples +superserver xinetd"
|
||||
REQUIRED_USE="?? ( superserver xinetd )"
|
||||
|
||||
CDEPEND="
|
||||
dev-libs/icu:=
|
||||
dev-libs/libedit
|
||||
"
|
||||
DEPEND="${CDEPEND}
|
||||
>=dev-util/btyacc-3.0-r2
|
||||
doc? ( app-arch/unzip )
|
||||
"
|
||||
RDEPEND="${CDEPEND}
|
||||
xinetd? ( virtual/inetd )
|
||||
!sys-cluster/ganglia
|
||||
"
|
||||
|
||||
RESTRICT="userpriv"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.5.3.26780.0-deps-flags.patch
|
||||
"${FILESDIR}"/${P}-CVE-2016-1569.patch
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup firebird 450
|
||||
enewuser firebird 450 /bin/sh /usr/$(get_libdir)/firebird firebird
|
||||
}
|
||||
|
||||
check_sed() {
|
||||
MSG="sed of $3, required $2 line(s) modified $1"
|
||||
einfo "${MSG}"
|
||||
[[ $1 -ge $2 ]] || die "${MSG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack "${MY_P}.tar.bz2"
|
||||
if use doc; then
|
||||
# Unpack docs
|
||||
mkdir "manuals" || die
|
||||
cd "manuals" || die
|
||||
unpack ib_b60_doc.zip
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
! use xinetd && eapply "${FILESDIR}"/${PN}-2.5.1.26351.0-superclassic.patch
|
||||
|
||||
default
|
||||
|
||||
# Rename references to isql to fbsql
|
||||
# sed vs patch for portability and addtional location changes
|
||||
check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \
|
||||
src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line
|
||||
check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
|
||||
src/msgs/history2.sql | wc -l)" "4" "src/msgs/history2.sql" # 4 lines
|
||||
check_sed "$(sed -i -e 's:--- ISQL:--- FBSQL:w /dev/stdout' \
|
||||
-e 's:isql :fbsql :w /dev/stdout' \
|
||||
-e 's:ISQL :FBSQL :w /dev/stdout' \
|
||||
src/msgs/messages2.sql | wc -l)" "6" "src/msgs/messages2.sql" # 6 lines
|
||||
|
||||
# Fix libfbintl SONAME which clashes with libintl
|
||||
check_sed "$(sed -i -e \
|
||||
's:LIB_LINK_SONAME,libintl.\$(SHRLIB_EXT):LIB_LINK_SONAME,libfbintl.\$(SHRLIB_EXT):w /dev/stdout' \
|
||||
builds/posix/make.defaults | wc -l)" "1" "builds/posix/make.defaults" # 1 line
|
||||
|
||||
find "${S}" -name \*.sh -exec chmod +x {} + || die
|
||||
rm -r "${S}"/extern/{btyacc,editline,icu} || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
filter-flags -fprefetch-loop-arrays
|
||||
filter-mfpmath sse
|
||||
|
||||
econf \
|
||||
--prefix=/usr/$(get_libdir)/firebird \
|
||||
$(use_enable superserver) \
|
||||
$(use_enable debug) \
|
||||
--with-editline \
|
||||
--with-system-editline \
|
||||
--with-system-icu \
|
||||
--with-fbbin=/usr/bin \
|
||||
--with-fbsbin=/usr/sbin \
|
||||
--with-fbconf=/etc/${PN} \
|
||||
--with-fblib=/usr/$(get_libdir) \
|
||||
--with-fbinclude=/usr/include \
|
||||
--with-fbdoc=/usr/share/doc/${P} \
|
||||
--with-fbudf=/usr/$(get_libdir)/${PN}/UDF \
|
||||
--with-fbsample=/usr/share/doc/${P}/examples \
|
||||
--with-fbsample-db=/usr/share/doc/${P}/examples/db \
|
||||
--with-fbhelp=/usr/$(get_libdir)/${PN}/help \
|
||||
--with-fbintl=/usr/$(get_libdir)/${PN}/intl \
|
||||
--with-fbmisc=/usr/share/${PN} \
|
||||
--with-fbsecure-db=/etc/${PN} \
|
||||
--with-fbmsg=/usr/$(get_libdir)/${PN} \
|
||||
--with-fblog=/var/log/${PN}/ \
|
||||
--with-fbglock=/var/run/${PN} \
|
||||
--with-fbplugins=/usr/$(get_libdir)/${PN}/plugins \
|
||||
--with-gnu-ld \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
MAKEOPTS="${MAKEOPTS/-j*/-j1} ${MAKEOPTS/-j/CPU=}"
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "gen/${PN}" || die
|
||||
|
||||
if use doc; then
|
||||
dodoc "${S}"/doc/*.pdf
|
||||
find "${WORKDIR}"/manuals -type f -iname "*.pdf" -exec dodoc '{}' + || die
|
||||
fi
|
||||
|
||||
doheader include/*
|
||||
|
||||
rm lib/libfbstatic.a || die "failed to remove libfbstatic.a"
|
||||
|
||||
insinto /usr/$(get_libdir)
|
||||
dolib.so lib/*.so*
|
||||
|
||||
# links for backwards compatibility
|
||||
dosym libfbclient.so /usr/$(get_libdir)/libgds.so
|
||||
dosym libfbclient.so /usr/$(get_libdir)/libgds.so.0
|
||||
dosym libfbclient.so /usr/$(get_libdir)/libfbclient.so.1
|
||||
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
doins *.msg
|
||||
|
||||
einfo "Renaming isql -> fbsql"
|
||||
mv bin/isql bin/fbsql || die "failed to rename isql -> fbsql"
|
||||
|
||||
local bins="fbsql fbsvcmgr fbtracemgr gbak gdef gfix gpre gsec gstat nbackup qli"
|
||||
for bin in ${bins}; do
|
||||
dobin bin/${bin}
|
||||
done
|
||||
|
||||
dosbin bin/fb_lock_print
|
||||
# SuperServer
|
||||
if use superserver ; then
|
||||
dosbin bin/{fbguard,fbserver}
|
||||
# ClassicServer
|
||||
elif use xinetd ; then
|
||||
dosbin bin/fb_inet_server
|
||||
# SuperClassic
|
||||
else
|
||||
dosbin bin/{fbguard,fb_smp_server}
|
||||
|
||||
#Temp should not be necessary, need to patch/fix
|
||||
dosym ../../libib_util.so /usr/$(get_libdir)/${PN}/lib/libib_util.so
|
||||
fi
|
||||
|
||||
exeinto /usr/bin/${PN}
|
||||
exeopts -m0755
|
||||
doexe bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
|
||||
|
||||
insinto /usr/$(get_libdir)/${PN}/help
|
||||
doins help/help.fdb
|
||||
|
||||
exeinto /usr/$(get_libdir)/firebird/intl
|
||||
dolib.so intl/libfbintl.so
|
||||
dosym ../../libfbintl.so /usr/$(get_libdir)/${PN}/intl/fbintl
|
||||
dosym libfbintl.so /usr/$(get_libdir)/libfbintl.so.1
|
||||
dosym /etc/firebird/fbintl.conf /usr/$(get_libdir)/${PN}/intl/fbintl.conf
|
||||
|
||||
exeinto /usr/$(get_libdir)/${PN}/plugins
|
||||
dolib.so plugins/libfbtrace.so
|
||||
dosym ../../libfbtrace.so /usr/$(get_libdir)/${PN}/plugins/libfbtrace.so
|
||||
dosym libfbtrace.so /usr/$(get_libdir)/libfbtrace.so.0
|
||||
|
||||
exeinto /usr/$(get_libdir)/${PN}/UDF
|
||||
doexe UDF/*.so
|
||||
|
||||
insinto /usr/share/${PN}/upgrade
|
||||
doins -r "${S}"/src/misc/upgrade/v2/*
|
||||
|
||||
insinto /etc/${PN}
|
||||
insopts -m0644 -o firebird -g firebird
|
||||
doins ../install/misc/*.conf
|
||||
insopts -m0660 -o firebird -g firebird
|
||||
doins security2.fdb
|
||||
|
||||
if use xinetd ; then
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}/${PN}.xinetd" ${PN}
|
||||
else
|
||||
newinitd "${FILESDIR}/${PN}.init.d.2.5" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.conf.d.2.5" ${PN}
|
||||
fperms 640 /etc/conf.d/${PN}
|
||||
fi
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
fperms 0644 /etc/logrotate.d/${PN}
|
||||
|
||||
diropts -m 755 -o firebird -g firebird
|
||||
dodir /var/log/${PN}
|
||||
keepdir /var/log/${PN}
|
||||
|
||||
use examples && docinto examples
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Hack to fix ownership/perms
|
||||
chown -fR firebird:firebird "${ROOT}/etc/${PN}" "${ROOT}/usr/$(get_libdir)/${PN}"
|
||||
chmod 750 "${ROOT}/etc/${PN}"
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# if found /etc/security.gdb from previous install, backup, and restore as
|
||||
# /etc/security2.fdb
|
||||
if [[ -f "${ROOT}/etc/firebird/security.gdb" ]] ; then
|
||||
# if we have scurity2.fdb already, back it 1st
|
||||
if [[ -f "${ROOT}/etc/firebird/security2.fdb" ]] ; then
|
||||
cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old" || die
|
||||
fi
|
||||
gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk" || die
|
||||
gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb" || die
|
||||
mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old" || die
|
||||
rm "${ROOT}/etc/firebird/security.gbk" || die
|
||||
|
||||
# make sure they are readable only to firebird
|
||||
chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}" || die
|
||||
chmod 660 "${ROOT}/etc/firebird/{security.*,security2.*}" || die
|
||||
|
||||
echo
|
||||
einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
|
||||
einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
|
||||
einfo "it's backed to security2.fdb.old (all under ${ROOT}/etc/firebird)."
|
||||
echo
|
||||
fi
|
||||
|
||||
# we need to enable local access to the server
|
||||
if [[ ! -f "${ROOT}/etc/hosts.equiv" ]] ; then
|
||||
touch "${ROOT}/etc/hosts.equiv" || die
|
||||
chown root:0 "${ROOT}/etc/hosts.equiv" || die
|
||||
chmod u=rw,go=r "${ROOT}/etc/hosts.equiv" || die
|
||||
fi
|
||||
|
||||
# add 'localhost.localdomain' to the hosts.equiv file...
|
||||
if grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" ; then
|
||||
echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv" || die
|
||||
einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv"
|
||||
fi
|
||||
|
||||
# add 'localhost' to the hosts.equiv file...
|
||||
if grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" ; then
|
||||
echo "localhost" >> "${ROOT}/etc/hosts.equiv" || die
|
||||
einfo "Added localhost to ${ROOT}/etc/hosts.equiv"
|
||||
fi
|
||||
|
||||
HS_NAME=`hostname`
|
||||
if grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" ; then
|
||||
echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv" || die
|
||||
einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv"
|
||||
fi
|
||||
|
||||
einfo "If you're using UDFs, please remember to move them"
|
||||
einfo "to /usr/$(get_libdir)/firebird/UDF"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue