parent
f5de7a9b93
commit
5adf6faea3
@ -1,2 +1,3 @@
|
||||
DIST puppetserver-2.7.1.tar.gz 33989388 SHA256 9e2ad86fedb719e824d42055383dbbbb4f66c621e21c4c285e70b5c1dbc158c0 SHA512 91fd1ee7bf9726e3d2fca9a81227756076b1945b3ad6fd63bf5be85957cdda81601cd707af2533c53fe182fe6945ec48c75b0f7cfef5a64e81643adf633df778 WHIRLPOOL 3661d09f04e85db94320acf6afc842557bde66d969a7e3164edcc9f74e4f1f8a5849b7a766fcf98339d47652d6ae4cda1d766e5a09e5a54d062b27306863aa1d
|
||||
DIST puppetserver-2.8.0.tar.gz 34015599 SHA256 0f6f49b149639b80c3caecaeced44c7c0cb98728da7ce12f6725b061f3152812 SHA512 7023278fe501614f1ff9650f72b9193054cb79888ce03f29932a10fa826ee07d67e96eee80a3f2c19007b8bae14008846ea850fb98544bcd39e1ada11fadd22c WHIRLPOOL 6319b7aaefd45b5c49189e15eb06575841c8ca24f3032739515f48f35efcc0ea4d3490f84b2325ff864b57e1a789263596d7f6095a4b35171d3b17a77b07ae68
|
||||
DIST puppetserver-5.0.0.tar.gz 66380485 SHA256 b1b62c31d31a69cf1912d6b785f53cbff219a98e0e7300b7f50114694b06ccbf SHA512 1dd7b332871abf12981a7ef33ee92a813275c86ca0cd72a24c3853679c3e93aaf264b76bf4108bf62c04021889e0b7ee0bb46963bd1f3df1f8e67c48e41698e8 WHIRLPOOL 89d15509f3afc96ccdae5370346c101dc48daa68dddbfc98b51151d0e706945858b4485d7358710223c43760f317b5aa6a27b247db3fa02d80077694b0ee4a9c
|
||||
|
@ -0,0 +1,113 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib systemd user
|
||||
|
||||
DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents."
|
||||
HOMEPAGE="http://docs.puppetlabs.com/puppetserver/"
|
||||
SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="puppetdb"
|
||||
# will need the same keywords as puppet
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND+="
|
||||
>=virtual/jdk-1.7.0
|
||||
app-admin/puppet-agent[puppetdb?]"
|
||||
DEPEND+=""
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /opt/puppetlabs/server/data/puppetserver "puppet"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/sysconfig\/puppetserver/systemd\/system\/puppetserver\.service\.d\/gentoo\.conf/g' ext/redhat/puppetserver.service || die
|
||||
sed -i 's/sysconfig\/puppetserver/systemd\/system\/puppetserver\.service\.d\/gentoo\.conf/g' ext/bin/puppetserver || die
|
||||
sed -i 's/sysconfig\/puppetserver/systemd\/system\/puppetserver\.service\.d\/gentoo\.conf/g' install.sh || die
|
||||
sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die
|
||||
sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die
|
||||
sed -i 's/var\/run/run/g' install.sh || die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "not compiling"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver
|
||||
insopts -m0774
|
||||
doins ext/ezbake-functions.sh
|
||||
insopts -m0644
|
||||
doins ext/ezbake.manifest
|
||||
doins puppet-server-release.jar
|
||||
insinto /etc/puppetlabs/puppetserver
|
||||
doins ext/config/logback.xml
|
||||
doins ext/config/request-logging.xml
|
||||
insinto /etc/puppetlabs/puppetserver/services.d
|
||||
doins ext/system-config/services.d/bootstrap.cfg
|
||||
doins ext/config/services.d/ca.cfg
|
||||
insinto /etc/puppetlabs/puppetserver/conf.d
|
||||
doins ext/config/conf.d/puppetserver.conf
|
||||
doins ext/config/conf.d/auth.conf
|
||||
doins ext/config/conf.d/global.conf
|
||||
doins ext/config/conf.d/web-routes.conf
|
||||
doins ext/config/conf.d/webserver.conf
|
||||
insopts -m0755
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/scripts
|
||||
doins install.sh
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps
|
||||
doins ext/cli/irb
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/gem
|
||||
doins ext/cli/ruby
|
||||
doins ext/cli/reload
|
||||
doins ext/cli/start
|
||||
doins ext/cli/stop
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/bin
|
||||
doins ext/bin/puppetserver
|
||||
insopts -m0644
|
||||
dodir /opt/puppetlabs/server/bin
|
||||
dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver
|
||||
dodir /opt/puppetlabs/bin
|
||||
dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver
|
||||
dosym ../../opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver
|
||||
dodir /opt/puppetlabs/server/apps/puppetserver/config/services.d
|
||||
# other sys stuff
|
||||
dodir /etc/puppetlabs/code
|
||||
# needed for systemd
|
||||
dodir /var/log/puppetlabs/puppetserver
|
||||
dodir /etc/puppetlabs/puppet/ssl
|
||||
fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl
|
||||
fperms -R 771 /etc/puppetlabs/puppet/ssl
|
||||
# init type tasks
|
||||
newconfd ext/default puppetserver
|
||||
newinitd "${FILESDIR}/puppetserver.initd" puppetserver
|
||||
# systemd type things
|
||||
insinto /etc/systemd/system/puppetserver.service.d/
|
||||
newins ext/default gentoo.conf
|
||||
systemd_dounit ext/redhat/puppetserver.service
|
||||
# misc
|
||||
insinto /etc/logrotate.d
|
||||
newins ext/puppetserver.logrotate.conf puppetserver
|
||||
# cleanup
|
||||
dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems
|
||||
fowners -R puppet:puppet /opt/puppetlabs/server/data
|
||||
fperms -R 775 /opt/puppetlabs/server/data/puppetserver
|
||||
fperms -R 700 /var/log/puppetlabs/puppetserver
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "to install you may want to run the following:"
|
||||
elog
|
||||
elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver"
|
||||
elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver"
|
||||
elog "puppet config set --section master rundir /run/puppetlabs/puppetserver"
|
||||
elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid"
|
||||
elog "puppet config set --section master codedir /etc/puppetlabs/code"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST sudo-1.8.20p2.tar.gz 2930769 SHA256 bd42ae1059e935f795c69ea97b3de09fe9410a58a74b5d5e6836eb5067a445d9 SHA512 8bf67e687f7a84605fdef8d547b5cd661141b6c8fd25820c33c7e37e97ca7f21f564c3bae691f8a8cd08df7d80338e36a8f06bb5086cc104509d71d6ab1bceda WHIRLPOOL 4e9b6ddaba8cdb4d82358e01252136af56ae50f656f9802285471c7c1e5c831d26aa07cb78205f63ea6098f98846911938681a89256afe5419372039d0e4e792
|
||||
DIST sudo-1.8.21.tar.gz 2973939 SHA256 126e9214613e842e19a02658f060186fe6a5927948679d64895b17ed933bb523 SHA512 f3e4a39b6d5a58bc94e1d8ce997460fc317abd7ff8dce75c23a37668cba96ff3edbac76580b4d8bfec585013c6ff30b004d9eda6fe775700abe54ba9eaa9f31f WHIRLPOOL 7add1abf9badc68ec7ef10d99cd6c57cd6d279a66e342ad544f511e7f0c8d59bc1ddbf7d5d7cc91b72fe71d23d3f3005e5b60df1d0f6e2bf08c2b12745d093c2
|
||||
DIST sudo-1.8.21p1.tar.gz 2975522 SHA256 ee50d3a249a96b1c5c8d3d21380eb96c63c6e61a888b13e3c2b941b23ab7c808 SHA512 081dff35cbc2724b0481139490601665b7e10e19c8cffcd00918cb51a914f1b7103c7d04b3361e229b63d404c68c47598ca6f59a7c3c00a5b3b7aed74bae9e45 WHIRLPOOL 13f8dba536f7e70b8025bddbe25ca73859d062f3ffe7f3137fc4393453f59863a7984cd0de250e6c6fa4a34e2a1e2f617932e506cca4327d64ae49f8913bbe92
|
||||
|
@ -0,0 +1,216 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils pam multilib libtool
|
||||
|
||||
MY_P=${P/_/}
|
||||
MY_P=${MY_P/beta/b}
|
||||
|
||||
uri_prefix=
|
||||
case ${P} in
|
||||
*_beta*|*_rc*) uri_prefix=beta/ ;;
|
||||
esac
|
||||
|
||||
DESCRIPTION="Allows users or groups to run commands as other users"
|
||||
HOMEPAGE="http://www.sudo.ws/"
|
||||
SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
|
||||
ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
|
||||
|
||||
# Basic license is ISC-style as-is, some files are released under
|
||||
# 3-clause BSD license
|
||||
LICENSE="ISC BSD"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris"
|
||||
fi
|
||||
IUSE="gcrypt ldap nls pam offensive openssl selinux skey +sendmail"
|
||||
|
||||
CDEPEND="
|
||||
gcrypt? ( dev-libs/libgcrypt:= )
|
||||
openssl? ( dev-libs/openssl:0= )
|
||||
pam? ( virtual/pam )
|
||||
skey? ( >=sys-auth/skey-1.1.5-r1 )
|
||||
ldap? (
|
||||
>=net-nds/openldap-2.1.30-r1
|
||||
dev-libs/cyrus-sasl
|
||||
)
|
||||
sys-libs/zlib
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-sudo )
|
||||
ldap? ( dev-lang/perl )
|
||||
pam? ( sys-auth/pambase )
|
||||
>=app-misc/editor-wrapper-3
|
||||
virtual/editor
|
||||
sendmail? ( virtual/mta )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="
|
||||
pam? ( !skey )
|
||||
skey? ( !pam )
|
||||
?? ( gcrypt openssl )
|
||||
"
|
||||
|
||||
MAKEOPTS+=" SAMPLES="
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
set_rootpath() {
|
||||
# FIXME: secure_path is a compile time setting. using ROOTPATH
|
||||
# is not perfect, env-update may invalidate this, but until it
|
||||
# is available as a sudoers setting this will have to do.
|
||||
einfo "Setting secure_path ..."
|
||||
|
||||
# first extract the default ROOTPATH from build env
|
||||
ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
|
||||
if [[ -z ${ROOTPATH} ]] ; then
|
||||
ewarn " Failed to find ROOTPATH, please report this"
|
||||
fi
|
||||
|
||||
# then remove duplicate path entries
|
||||
cleanpath() {
|
||||
local newpath thisp IFS=:
|
||||
for thisp in $1 ; do
|
||||
if [[ :${newpath}: != *:${thisp}:* ]] ; then
|
||||
newpath+=:$thisp
|
||||
else
|
||||
einfo " Duplicate entry ${thisp} removed..."
|
||||
fi
|
||||
done
|
||||
ROOTPATH=${newpath#:}
|
||||
}
|
||||
cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
|
||||
|
||||
# finally, strip gcc paths #136027
|
||||
rmpath() {
|
||||
local e newpath thisp IFS=:
|
||||
for thisp in ${ROOTPATH} ; do
|
||||
for e ; do [[ $thisp == $e ]] && continue 2 ; done
|
||||
newpath+=:$thisp
|
||||
done
|
||||
ROOTPATH=${newpath#:}
|
||||
}
|
||||
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
|
||||
|
||||
einfo "... done"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local ROOTPATH
|
||||
set_rootpath
|
||||
|
||||
# audit: somebody got to explain me how I can test this before I
|
||||
# enable it.. - Diego
|
||||
# plugindir: autoconf code is crappy and does not delay evaluation
|
||||
# until `make` time, so we have to use a full path here rather than
|
||||
# basing off other values.
|
||||
myeconfargs=(
|
||||
--enable-zlib=system
|
||||
--with-editor="${EPREFIX}"/usr/libexec/editor
|
||||
--with-env-editor
|
||||
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
|
||||
--with-rundir="${EPREFIX}"/var/run/sudo
|
||||
--with-secure-path="${ROOTPATH}"
|
||||
--with-vardir="${EPREFIX}"/var/db/sudo
|
||||
--without-linux-audit
|
||||
--without-opie
|
||||
$(use_enable gcrypt)
|
||||
$(use_enable nls)
|
||||
$(use_enable openssl)
|
||||
$(use_with offensive insults)
|
||||
$(use_with offensive all-insults)
|
||||
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
|
||||
$(use_with ldap)
|
||||
$(use_with pam)
|
||||
$(use_with skey)
|
||||
$(use_with selinux)
|
||||
$(use_with sendmail)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use ldap ; then
|
||||
dodoc README.LDAP
|
||||
dosbin plugins/sudoers/sudoers2ldif
|
||||
|
||||
cat <<-EOF > "${T}"/ldap.conf.sudo
|
||||
# See ldap.conf(5) and README.LDAP for details
|
||||
# This file should only be readable by root
|
||||
|
||||
# supported directives: host, port, ssl, ldap_version
|
||||
# uri, binddn, bindpw, sudoers_base, sudoers_debug
|
||||
# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
|
||||
EOF
|
||||
|
||||
insinto /etc
|
||||
doins "${T}"/ldap.conf.sudo
|
||||
fperms 0440 /etc/ldap.conf.sudo
|
||||
|
||||
insinto /etc/openldap/schema
|
||||
newins doc/schema.OpenLDAP sudo.schema
|
||||
fi
|
||||
|
||||
pamd_mimic system-auth sudo auth account session
|
||||
|
||||
keepdir /var/db/sudo
|
||||
fperms 0700 /var/db/sudo
|
||||
|
||||
# Don't install into /var/run as that is a tmpfs most of the time
|
||||
# (bug #504854)
|
||||
rm -rf "${D}"/var/run
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use ldap ; then
|
||||
ewarn
|
||||
ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
|
||||
ewarn
|
||||
if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
|
||||
ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
|
||||
ewarn "configured in /etc/nsswitch.conf."
|
||||
ewarn
|
||||
ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
|
||||
ewarn " sudoers: ldap files"
|
||||
ewarn
|
||||
fi
|
||||
fi
|
||||
if use prefix ; then
|
||||
ewarn
|
||||
ewarn "To use sudo, you need to change file ownership and permissions"
|
||||
ewarn "with root privileges, as follows:"
|
||||
ewarn
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
|
||||
ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
|
||||
ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
elog "To use the -A (askpass) option, you need to install a compatible"
|
||||
elog "password program from the following list. Starred packages will"
|
||||
elog "automatically register for the use with sudo (but will not force"
|
||||
elog "the -A option):"
|
||||
elog ""
|
||||
elog " [*] net-misc/ssh-askpass-fullscreen"
|
||||
elog " net-misc/x11-ssh-askpass"
|
||||
elog ""
|
||||
elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
|
||||
elog "variable to the program you want to use."
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST dar-2.4.20.tar.gz 1804634 SHA256 f0f66108692de8b27e76b1832d9013d9d1dbf45d2aaaaf5c222dde3c6f1b308d SHA512 1ed2e43df05082c01f6a53aa8c1c7328cb27fc3d84115d3f4a07de943fc814b614155f673464cd1a455e3b8c21e30f95da03ed9f72883b58ae005e3696de8143 WHIRLPOOL b3ce8c59efe2f9f988133613b73fe1ec14af39746e7c5fff0c83fa2146218fad3e912f586e9b677af809696105fa9d72dc35122ec3b3ca3ad63b2cdd75fce954
|
||||
DIST dar-2.4.24.tar.gz 1820097 SHA256 cb9f0935f4aa1c10daaceef3fbcf165ca73524fd6ce50948cb91e926080825f0 SHA512 3e5fbaaac7ab8e25776d20c11accba94c30abcbc898e7700e9faa98dee94995e742a9481740f2d286149a198ce661d876d2737fed85f1a2555073436175c5f10 WHIRLPOOL 659ac04d22c4781595863b22372755a357f060ab7325623d54e7d258aa36701111c026a884775444c2cea232fc3a0410d6c85c06a5f56a14cc39022c72237fe6
|
||||
DIST dar-2.5.10.tar.gz 1888334 SHA256 771c8462b9e65bf646699a14a4e156c75b5bda4301ebf6f5e03bd82c2486a4d8 SHA512 90727f206634fc7d8ab7ca1faf588cfdb504d7474096b2965fde18a0a3cc54f603f0df3ddd1b00d331951d5d4688a1adb861eec71034e92aa1428e5ba9e665f1 WHIRLPOOL cdfaf5ee6535083e49aef2992010b960650b9804426cc6a52cf0839225d54e7537b8e356acfb398210b480eebf73551875f01ae016d04221c2ac18cc65ee4f05
|
||||
DIST dar-2.5.11.tar.gz 1891928 SHA256 ad9d4b32b7a1240d9ae74155ff0aab3848065bee65ce01a022a234c02be73989 SHA512 36b90218a34ac7f41ce9ca0a2167cfb2fd243b23b8e84350153e8804f0faabf87291b4e4b061533bcb0ca079f087c074eeaa12a54ee8084dd386a072ac503847 WHIRLPOOL 4e52c72a98d56b402cb546b96c5d09233910558322dca9344242ab5829f1c39e68fca31221db4f90dc6d20c216199ebce1329fd9dc214d548a78457178ab4cf5
|
||||
DIST dar-2.5.12.tar.gz 1893694 SHA256 19bd60000a681a20386ee079b9a6ea05028020053eaeddbff175a8d22563fba2 SHA512 58eafe69c730d8f3974a1b1e8f7ca67feee82babde9ba9577ef29c422861db2b29afa835c9b55160e5d226efb634b539a580845e429d08fd84beeb6f0d39be7e WHIRLPOOL d16a861c4f5e88ac93854085e9b62cc357643ba1cab0d3f822a699fa192574cbf45c8254308cddfc928839169e096fa55f229a33ab9735d7f582f5ca346c280f
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>junghans@gentoo.org</email>
|
||||
<name>Christoph Junghans</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>sci-chemistry@gentoo.org</email>
|
||||
<name>Gentoo Chemistry Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">votca/csg-manuel</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="ninja"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
IUSE=""
|
||||
DEPEND="=sci-chemistry/csg-${PV} )"
|
||||
if [ "${PV}" != "9999" ]; then
|
||||
SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
|
||||
S="${WORKDIR}/${P#votca-}"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN/-//}.git"
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
DESCRIPTION="Manual for votca-csg"
|
||||
HOMEPAGE="http://www.votca.org"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
DEPEND="
|
||||
app-doc/doxygen[dot]
|
||||
dev-texlive/texlive-latexextra
|
||||
virtual/latex-base
|
||||
dev-tex/pgf
|
||||
>=app-text/txt2tags-2.5
|
||||
=sci-chemistry/votca-csg-${PV}"
|
@ -1 +1,2 @@
|
||||
DIST kile-2.1.3.tar.bz2 4911212 SHA256 a063ec4fca1ba5a063ffdcdb538967af35ade01d71fa7db6ea691ba2cf88cea2 SHA512 820cb5e2579f243ce87409aa4d483a58b0a2cf1d86bff72dd12264570bfe72e7819c88aa4333080f8281e54e8315e2c11f961b41f13a6215913dfa4f7bd3feda WHIRLPOOL 1bc56ad82c72807fcf93ffeb4dbd4222a7660c00e852378a9007c7aa4a96a5130497ca23815a74c92f631fcb261dbf35f7d5453e849f6fb82c9f3c802058ab31
|
||||
DIST kile-2.9.91.tar.bz2 3461524 SHA256 08cb54cddc54c851d98b339f386d9aa20b3d71ff98ef078242fd52f684712d93 SHA512 08075adad7d75309148016bbd7f2c4b6f1d5c67808037666deffa49ac26d76cf4329ea39288c23122dabfbb6c83d15bf4f0a2bdaf1479d41064fa63098aba947 WHIRLPOOL 4767669228f59b9b8d88e75d1f33bcb7890556326a82b86ce779407a75f559cb69277800de7fb6fbceaa8c58468ec80774a8a716993d40724fc7100a5db76166
|
||||
|
@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="forceoptional"
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="Latex Editor and TeX shell based on KDE Frameworks"
|
||||
HOMEPAGE="http://kile.sourceforge.net/"
|
||||
[[ ${PV} != *9999* ]] && SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="FDL-1.2 GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+pdf +png"
|
||||
|
||||
DEPEND="
|
||||
$(add_frameworks_dep kconfig)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep kcrash)
|
||||
$(add_frameworks_dep kdbusaddons)
|
||||
$(add_frameworks_dep kdoctools)
|
||||
$(add_frameworks_dep kguiaddons)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kiconthemes)
|
||||
$(add_frameworks_dep kinit)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kparts)
|
||||
$(add_frameworks_dep ktexteditor)
|
||||
$(add_frameworks_dep kwindowsystem)
|
||||
$(add_frameworks_dep kxmlgui)
|
||||
$(add_kdeapps_dep okular)
|
||||
$(add_qt_dep qtdbus)
|
||||
$(add_qt_dep qtscript)
|
||||
$(add_qt_dep qttest)
|
||||
$(add_qt_dep qtwidgets)
|
||||
pdf? ( app-text/poppler[qt5] )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!app-editors/kile:4
|
||||
$(add_kdeapps_dep konsole)
|
||||
$(add_kdeapps_dep okular 'pdf?')
|
||||
virtual/latex-base
|
||||
virtual/tex-base
|
||||
pdf? (
|
||||
|| (
|
||||
app-text/dvipdfmx
|
||||
>=app-text/texlive-core-2014
|
||||
)
|
||||
app-text/ghostscript-gpl
|
||||
)
|
||||
png? (
|
||||
app-text/dvipng
|
||||
|| ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[imagemagick,png] )
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( kile-remote-control.txt )
|
||||
|
||||
src_prepare() {
|
||||
kde5_src_prepare
|
||||
|
||||
# I know upstream wants to help us but it doesn't work..
|
||||
sed -e '/INSTALL( FILES AUTHORS/s/^/#DISABLED /' \
|
||||
-i CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_find_package pdf Poppler)
|
||||
)
|
||||
|
||||
kde5_src_configure
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="General-purpose command-line pipe buffer"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
SRC_URI="http://www.glines.org/bin/pk/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-perl.patch" )
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
default
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST mosquitto-1.4.10.tar.gz 359569 SHA256 437648d68a4a781dd8d913814cd5451f59ab4a5fcf84cccaf7c36e6a07459770 SHA512 fe5d6d7196a137a496ba6881c77d852396baefb4f0b83ccd9a22175fc05b09e48a09ea249e30ec7db966e11de134ebcc4e2e9b1fd40b31dc59fb0fa2f60b75a1 WHIRLPOOL 9510060701259e78c39bf88989ce8142d11e0b53348a20c1a71ffc69b98d7c1725c9315026d392d8d86d131bc55c86492a91ddde94eca0d353f1d3ab6ef6900f
|
||||
DIST mosquitto-1.4.11.tar.gz 361468 SHA256 ca47533bbc1b7c5e15d6e5d96d3efc59677f2515b6692263c34b7c48f33280c5 SHA512 c05ca8679b9a6f540868f4ccf701257fcabc114d5450ac0bbbe80b91bb7cd4fc52668773e945506760c7a5bd8a494e0a56100714112e5d2713d57bfab8951587 WHIRLPOOL d4418b951ff55eaba1fc67b324f1ecdd0d55c0eea066be9793de30e8561d0fe0e36537adb688fc98764758998086eb64b827041e76160ddc858c6066f83e8f21
|
||||
DIST mosquitto-1.4.14.tar.gz 365596 SHA256 156b1fa731d12baad4b8b22f7b6a8af50ba881fc711b81e9919ec103cf2942d1 SHA512 dc75a971354f87deeb79f32435acfae9bc561a1a24a75ee4940a35176ff91758071930d2105d8dee2a090e07527dbfaa5692bece67e03cc87e8b4b8b46f846c2 WHIRLPOOL 428494b277869d6d8d100663f1fd8f14e21028d0b2f802da634a2f033a9df4383246d6ad0802b27b41dfad7a50d3120830018dd7592888b468976798b8a2f0bf
|
||||
|
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils systemd user python-any-r1
|
||||
|
||||
DESCRIPTION="An Open Source MQTT v3 Broker"
|
||||
HOMEPAGE="http://mosquitto.org/"
|
||||
SRC_URI="http://mosquitto.org/files/source/${P}.tar.gz"
|
||||
LICENSE="EPL-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm x86"
|
||||
IUSE="bridge examples +persistence +srv ssl tcpd"
|
||||
|
||||
RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
|
||||
ssl? ( dev-libs/openssl:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
srv? ( net-dns/c-ares )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mosquitto
|
||||
enewuser mosquitto -1 -1 -1 mosquitto
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-conditional-tests.patch"
|
||||
if use persistence; then
|
||||
sed -i -e "s:^#autosave_interval:autosave_interval:" \
|
||||
-e "s:^#persistence false$:persistence true:" \
|
||||
-e "s:^#persistence_file:persistence_file:" \
|
||||
-e "s:^#persistence_location$:persistence_location /var/lib/mosquitto/:" \
|
||||
mosquitto.conf || die
|
||||
fi
|
||||
python_setup
|
||||
python_fix_shebang test
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
LIBDIR=$(get_libdir)
|
||||
QA_PRESTRIPPED="/usr/sbin/mosquitto
|
||||
/usr/bin/mosquitto_passwd
|
||||
/usr/bin/mosquitto_sub
|
||||
/usr/bin/mosquitto_pub
|
||||
/usr/${LIBDIR}/libmosquittopp.so.1
|
||||
/usr/${LIBDIR}/libmosquitto.so.1"
|
||||
|
||||
makeopts=(
|
||||
"LIB_SUFFIX=${LIBDIR:3}"
|
||||
"WITH_BRIDGE=$(usex bridge)"
|
||||
"WITH_PERSISTENCE=$(usex persistence)"
|
||||
"WITH_SRV=$(usex srv)"
|
||||
"WITH_TLS=$(usex ssl)"
|
||||
"WITH_WRAP=$(usex tcpd)"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${makeopts[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake "${makeopts[@]}" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${makeopts[@]}" DESTDIR="${D}" prefix=/usr install
|
||||
keepdir /var/lib/mosquitto
|
||||
fowners mosquitto:mosquitto /var/lib/mosquitto
|
||||
dodoc readme.md CONTRIBUTING.md ChangeLog.txt
|
||||
doinitd "${FILESDIR}"/mosquitto
|
||||
insinto /etc/mosquitto
|
||||
doins mosquitto.conf
|
||||
systemd_dounit "${FILESDIR}/mosquitto.service"
|
||||
|
||||
if use examples; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ""
|
||||
elog "The Python module has been moved out of mosquitto."
|
||||
elog "See http://mosquitto.org/documentation/python/"
|
||||
elog ""
|
||||
elog "To start the mosquitto daemon at boot, add it to the default runlevel with:"
|
||||
elog ""
|
||||
elog " rc-update add mosquitto default"
|
||||
elog " or"
|
||||
elog " systemctl enable mosquitto"
|
||||
}
|
@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils systemd user toolchain-funcs python-any-r1
|
||||
|
||||
DESCRIPTION="An Open Source MQTT v3 Broker"
|
||||
HOMEPAGE="http://mosquitto.org/"
|
||||
SRC_URI="http://mosquitto.org/files/source/${P}.tar.gz"
|
||||
LICENSE="EPL-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm"
|
||||
IUSE="bridge examples +persistence +srv ssl tcpd websockets"
|
||||
|
||||
RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
|
||||
ssl? ( dev-libs/openssl:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
srv? ( net-dns/c-ares )
|
||||
websockets? ( net-libs/libwebsockets )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mosquitto
|
||||
enewuser mosquitto -1 -1 -1 mosquitto
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-1.4.10-conditional-tests.patch"
|
||||
if use persistence; then
|
||||
sed -i -e "s:^#autosave_interval:autosave_interval:" \
|
||||
-e "s:^#persistence false$:persistence true:" \
|
||||
-e "s:^#persistence_file:persistence_file:" \
|
||||
-e "s:^#persistence_location$:persistence_location /var/lib/mosquitto/:" \
|
||||
mosquitto.conf || die
|
||||
fi
|
||||
|
||||
# Remove prestripping
|
||||
sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\
|
||||
client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die
|
||||
|
||||
python_setup
|
||||
python_fix_shebang test
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
LIBDIR=$(get_libdir)
|
||||
makeopts=(
|
||||
"CC=$(tc-getCC)"
|
||||
"LIB_SUFFIX=${LIBDIR:3}"
|
||||
"WITH_BRIDGE=$(usex bridge)"
|
||||
"WITH_PERSISTENCE=$(usex persistence)"
|
||||
"WITH_SRV=$(usex srv)"
|
||||
"WITH_TLS=$(usex ssl)"
|
||||
"WITH_WEBSOCKETS=$(usex websockets)"
|
||||
"WITH_WRAP=$(usex tcpd)"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${makeopts[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake "${makeopts[@]}" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${makeopts[@]}" DESTDIR="${D}" prefix=/usr install
|
||||
keepdir /var/lib/mosquitto
|
||||
fowners mosquitto:mosquitto /var/lib/mosquitto
|
||||
dodoc readme.md CONTRIBUTING.md ChangeLog.txt
|
||||
doinitd "${FILESDIR}"/mosquitto
|
||||
insinto /etc/mosquitto
|
||||
doins mosquitto.conf
|
||||
systemd_dounit "${FILESDIR}/mosquitto.service"
|
||||
|
||||
if use examples; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/*
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ""
|
||||
elog "The Python module has been moved out of mosquitto."
|
||||
elog "See http://mosquitto.org/documentation/python/"
|
||||
elog ""
|
||||
elog "To start the mosquitto daemon at boot, add it to the default runlevel with:"
|
||||
elog ""
|
||||
elog " rc-update add mosquitto default"
|
||||
elog " or"
|
||||
elog " systemctl enable mosquitto"
|
||||
}
|
@ -1 +1,3 @@
|
||||
DIST enchant-1.6.0.tar.gz 607018 SHA256 2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f SHA512 0ca1634bb783df51512df4abecc89abdadee6baf7330d6e5f90cc15d10779896a3521a1c079ecc07e4df4f7a018ce398cca9d0125a7845a314a059840ebc9137 WHIRLPOOL f6677a11f1d05e210cbd6a7b13f3987ea93b3f1e73537b048093c14686b0310e75a89fdb8798ad0ed386a7e1cd793f60820006df8c1f7919c46c7245ee6a74c9
|
||||
DIST enchant-1.6.1.tar.gz 642124 SHA256 bef0d9c0fef2e4e8746956b68e4d6c6641f6b85bd2908d91731efb68eba9e3f5 SHA512 26c62dfa89ee40150db502651a2f876fba00569b7015f205dae27a029557effacff335bbe36124dbe6686537da2305bcab02592179d03e95fdf9741d54b98036 WHIRLPOOL daffe1ee16e731d3d6ba56362f882c8f8bd7462a264fcf9caf05ed8093c0ca275977fb9c83c391d9e3287e6e98516b52e468c9bf9cc86532cf0b3eeba8f02fbd
|
||||
DIST enchant-2.1.0.tar.gz 962857 SHA256 2cdda2d9edb62ad895c34be35c598d56ac5b9b9298f3dfdaa2b40a1914d1db7e SHA512 5dee7c5693ffc4ca0933e0881ca6e1f6bab1553af79cadf29733589790c6626db524cf33b0008b3de4c48e122ed93929478cce35608d9a52ab71edb51f598f27 WHIRLPOOL 4bb340288fffae6f8c6bc7bf21127ea812b79698d8be0f275e638fe47d1cd1c2b6b96b15fb0a0cec983d8b3db6c3e973e9521d86247c1e1df31f3db4ee80cb8f
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit versionator
|
||||
|
||||
MY_PV="$(replace_all_version_separators '-')"
|
||||
DESCRIPTION="Spellchecker wrapping library"
|
||||
HOMEPAGE="https://abiword.github.io/enchant/"
|
||||
SRC_URI="https://github.com/AbiWord/enchant/releases/download/${PN}-${MY_PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
|
||||
IUSE="aspell +hunspell static-libs test zemberek"
|
||||
REQUIRED_USE="|| ( hunspell aspell zemberek )"
|
||||
|
||||
# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742
|
||||
COMMON_DEPENDS="
|
||||
>=dev-libs/glib-2.6:2
|
||||
aspell? ( app-text/aspell )
|
||||
hunspell? ( >=app-text/hunspell-1.2.1:0= )
|
||||
zemberek? ( dev-libs/dbus-glib )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPENDS}
|
||||
zemberek? ( app-text/zemberek-server )
|
||||
"
|
||||
DEPEND="${COMMON_DEPENDS}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# test? ( dev-libs/unittest++ )
|
||||
|
||||
DOCS="AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.6.0-hunspell150_fix.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e "/SUBDIRS/ s/unittests//" -i "${S}"/Makefile.{am,in} || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable aspell) \
|
||||
$(use_enable hunspell myspell) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable zemberek) \
|
||||
--disable-hspell \
|
||||
--disable-ispell \
|
||||
--disable-uspell \
|
||||
--disable-voikko \
|
||||
--with-myspell-dir="${EPREFIX}"/usr/share/myspell/
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Spellchecker wrapping library"
|
||||
HOMEPAGE="https://abiword.github.io/enchant/"
|
||||
SRC_URI="https://github.com/AbiWord/enchant/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
|
||||
IUSE="aspell +hunspell static-libs test zemberek"
|
||||
REQUIRED_USE="|| ( hunspell aspell zemberek )"
|
||||
|
||||
# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742
|
||||
COMMON_DEPENDS="
|
||||
>=dev-libs/glib-2.6:2
|
||||
aspell? ( app-text/aspell )
|
||||
hunspell? ( >=app-text/hunspell-1.2.1:0= )
|
||||
zemberek? ( dev-libs/dbus-glib )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPENDS}
|
||||
zemberek? ( app-text/zemberek-server )
|
||||
"
|
||||
DEPEND="${COMMON_DEPENDS}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# test? ( dev-libs/unittest++ )
|
||||
|
||||
PATCHES=(
|
||||
# Fix build with hunspell 1.5
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=600952
|
||||
"${FILESDIR}"/${PN}-2.1.0-hunspell150_fix.patch
|
||||
)
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with aspell) \
|
||||
$(use_with hunspell) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with zemberek) \
|
||||
--without-hspell \
|
||||
--without-voikko \
|
||||
--with-hunspell-dir="${EPREFIX}"/usr/share/hunspell/
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
From 87b36fd87d8ecc894850d82eed33f48d6c429cad Mon Sep 17 00:00:00 2001
|
||||
From: Pacho Ramos <pacho@gentoo.org>
|
||||
Date: Sun, 3 Sep 2017 11:05:42 +0200
|
||||
Subject: [PATCH] Fix hunspell 1.5 support
|
||||
|
||||
---
|
||||
providers/enchant_hunspell.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/providers/enchant_hunspell.cpp b/providers/enchant_hunspell.cpp
|
||||
index 609f856..0bc360f 100644
|
||||
--- a/providers/enchant_hunspell.cpp
|
||||
+++ b/providers/enchant_hunspell.cpp
|
||||
@@ -312,7 +312,7 @@ HunspellChecker::requestDictionary(const char *szLang)
|
||||
if(hunspell == NULL){
|
||||
return false;
|
||||
}
|
||||
- char *enc = hunspell->get_dic_encoding();
|
||||
+ const char *enc = hunspell->get_dic_encoding();
|
||||
|
||||
m_translate_in = g_iconv_open(enc, "UTF-8");
|
||||
m_translate_out = g_iconv_open("UTF-8", enc);
|
||||
--
|
||||
2.14.1
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST gtkspell-2.0.16.tar.gz 351277 SHA256 8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02 SHA512 7d3afb327c2e15608194e6ee6110107a0ce082e483788d831d636b2e579472304137373c09a966d8e5c0cd2f830bf2e0ee477c9b5fca7da6ee27fd1498915b9d WHIRLPOOL 58dc258297412b99185f8d284fb4d2ab71ab834aa29e17a9dfb743e93271ae14d517fea2dc886112898f666104300df62b04082c307b3870de4a5d908bf2ae57
|
||||
DIST gtkspell3-3.0.7.tar.gz 447648 SHA256 13f2e6d3e2554cc24253ef592074b28c117db33b7a4465c98c69a3e0a4fa3cc2 SHA512 121c32050a3f3fe6868d76ce7783cb4619a9cbca083b45b78e1279e4c86143fe414e60971fed4c505b066449743664b372a06589af9c3e8dd1bafae355f83e47 WHIRLPOOL db0c04e6a6c01bf6929ef92c7f53f0852afab5216854d9dfd028749caa016b9cce94d8c41b0cca6d2e4a5e6005141bb080b1167e4dfeefa4acd0cd8196a8e112
|
||||
DIST gtkspell3-3.0.9.tar.xz 298988 SHA256 a4f4a4a2789f7499563e26d96b22d8085222ebe278da47d026b2de782b8b4d26 SHA512 de6cc24ca092067a101996142bf2b3cfb6a5af2170ea4b0185a997e5c88adead7ba53c5a297c3110b3a66dc87d37e429720f972895bb2931f9a033fc006e2eab WHIRLPOOL 18a54c570d603d7e8643647da124b5fe85064b695584f8728e1d753e3cda6e849615317569c9607bd63c6d4abda2ce7e99336718313fc66ec13070df9ea076da
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit gnome2 vala
|
||||
|
||||
DESCRIPTION="Spell checking widget for GTK"
|
||||
HOMEPAGE="http://gtkspell.sourceforge.net/"
|
||||
MY_P="${PN}3-${PV}"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="3/0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
||||
IUSE="+introspection vala"
|
||||
REQUIRED_USE="vala? ( introspection )"
|
||||
|
||||
RDEPEND="
|
||||
>=app-text/enchant-1.1.6
|
||||
app-text/iso-codes
|
||||
dev-libs/glib:2
|
||||
x11-libs/gtk+:3[introspection?]
|
||||
>=x11-libs/pango-1.8.0[introspection?]
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.30:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/gtk-doc-am-1.17
|
||||
>=dev-util/intltool-0.35.0
|
||||
virtual/pkgconfig
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
--disable-static \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable vala)
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
diff -Naur htmldoc-1.8.29b/Makefile.in htmldoc-1.8.29c/Makefile.in
|
||||
--- htmldoc-1.8.29b/Makefile.in 2016-04-13 17:02:29.706811414 +0000
|
||||
+++ htmldoc-1.8.29c/Makefile.in 2016-04-13 17:03:37.713630261 +0000
|
||||
@@ -39,7 +39,7 @@
|
||||
all: Makedefs Makefile config.h htmldoc.list
|
||||
for dir in $(DIRS); do\
|
||||
echo Making all in $$dir...;\
|
||||
- (cd $$dir; $(MAKE) -$(MAKEFLAGS)) || break;\
|
||||
+ (cd $$dir; $(MAKE) -$(MAKEFLAGS)) || exit 1;\
|
||||
done
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
clean:
|
||||
for dir in $(DIRS); do\
|
||||
echo Cleaning in $$dir...;\
|
||||
- (cd $$dir; $(MAKE) -$(MAKEFLAGS) clean) || break;\
|
||||
+ (cd $$dir; $(MAKE) -$(MAKEFLAGS) clean) || exit 1;\
|
||||
done
|
||||
$(RM) *.bak
|
||||
$(RM) *.bck
|
||||
@@ -77,7 +77,7 @@
|
||||
$(MAKE) all
|
||||
for dir in $(INSTALLDIRS); do\
|
||||
echo Installing in $$dir...;\
|
||||
- (cd $$dir; $(MAKE) -$(MAKEFLAGS) install) || break;\
|
||||
+ (cd $$dir; $(MAKE) -$(MAKEFLAGS) install) || exit 1;\
|
||||
done
|
||||
|
||||
|
@ -1,91 +0,0 @@
|
||||
diff -Naur htmldoc-1.8.29/data/Makefile htmldoc-1.8.29b/data/Makefile
|
||||
--- htmldoc-1.8.29/data/Makefile 2011-12-23 06:23:11.000000000 +0000
|
||||
+++ htmldoc-1.8.29b/data/Makefile 2016-04-13 16:59:35.074270457 +0000
|
||||
@@ -41,11 +41,11 @@
|
||||
#
|
||||
|
||||
install:
|
||||
- if [ ! -d $(datadir)/htmldoc/data ]; then\
|
||||
- $(MKDIR) $(datadir)/htmldoc/data;\
|
||||
+ if [ ! -d $(DESTDIR)$(datadir)/htmldoc/data ]; then\
|
||||
+ $(MKDIR) $(DESTDIR)$(datadir)/htmldoc/data;\
|
||||
fi
|
||||
- $(CP) $(FILES) $(datadir)/htmldoc/data
|
||||
- $(CHMOD) ugo+r $(datadir)/htmldoc/data/*
|
||||
+ $(CP) $(FILES) $(DESTDIR)$(datadir)/htmldoc/data
|
||||
+ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/htmldoc/data/*
|
||||
|
||||
|
||||
#
|
||||
diff -Naur htmldoc-1.8.29/doc/Makefile htmldoc-1.8.29b/doc/Makefile
|
||||
--- htmldoc-1.8.29/doc/Makefile 2016-01-02 22:58:41.000000000 +0000
|
||||
+++ htmldoc-1.8.29b/doc/Makefile 2016-04-13 16:57:46.628550948 +0000
|
||||
@@ -45,16 +45,16 @@
|
||||
#
|
||||
|
||||
install: $(DOCUMENTS)
|
||||
- if test ! -d $(datadir)/doc/htmldoc; then\
|
||||
- $(MKDIR) $(datadir)/doc/htmldoc;\
|
||||
+ if test ! -d $(DESTDIR)$(datadir)/doc/htmldoc; then\
|
||||
+ $(MKDIR) $(DESTDIR)$(datadir)/doc/htmldoc;\
|
||||
fi
|
||||
- $(CP) $(DOCFILES) $(datadir)/doc/htmldoc
|
||||
- $(CHMOD) ugo+r $(datadir)/doc/htmldoc/*
|
||||
- if test ! -d $(mandir)/man1; then\
|
||||
- $(MKDIR) $(mandir)/man1;\
|
||||
+ $(CP) $(DOCFILES) $(DESTDIR)$(datadir)/doc/htmldoc
|
||||
+ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/doc/htmldoc/*
|
||||
+ if test ! -d $(DESTDIR)$(mandir)/man1; then\
|
||||
+ $(MKDIR) $(DESTDIR)$(mandir)/man1;\
|
||||
fi
|
||||
- $(CP) htmldoc.man $(mandir)/man1/htmldoc.1
|
||||
- $(CHMOD) ugo+r $(mandir)/man1/htmldoc.1
|
||||
+ $(CP) htmldoc.man $(DESTDIR)$(mandir)/man1/htmldoc.1
|
||||
+ $(CHMOD) ugo+r $(DESTDIR)$(mandir)/man1/htmldoc.1
|
||||
|
||||
|
||||
#
|
||||
diff -Naur htmldoc-1.8.29/fonts/Makefile htmldoc-1.8.29b/fonts/Makefile
|
||||
--- htmldoc-1.8.29/fonts/Makefile 2011-12-23 06:23:11.000000000 +0000
|
||||
+++ htmldoc-1.8.29b/fonts/Makefile 2016-04-13 16:56:35.317733427 +0000
|
||||
@@ -62,15 +62,15 @@
|
||||
#
|
||||
|
||||
install:
|
||||
- echo "Installing font files in $(datadir)/htmldoc/fonts..."
|
||||
- if [ ! -d $(datadir)/htmldoc/fonts ]; then\
|
||||
- $(MKDIR) $(datadir)/htmldoc/fonts;\
|
||||
+ echo "Installing font files in $(DESTDIR)$(datadir)/htmldoc/fonts..."
|
||||
+ if [ ! -d $(DESTDIR)$(datadir)/htmldoc/fonts ]; then\
|
||||
+ $(MKDIR) $(DESTDIR)$(datadir)/htmldoc/fonts;\
|
||||
fi
|
||||
for font in $(FONTS); do \
|
||||
- $(CP) $$font.afm $(datadir)/htmldoc/fonts; \
|
||||
- $(CP) $$font.pfa $(datadir)/htmldoc/fonts; \
|
||||
+ $(CP) $$font.afm $(DESTDIR)$(datadir)/htmldoc/fonts; \
|
||||
+ $(CP) $$font.pfa $(DESTDIR)$(datadir)/htmldoc/fonts; \
|
||||
done
|
||||
- $(CHMOD) ugo+r $(datadir)/htmldoc/fonts/*
|
||||
+ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/htmldoc/fonts/*
|
||||
|
||||
|
||||
#
|
||||
diff -Naur htmldoc-1.8.29/htmldoc/Makefile htmldoc-1.8.29b/htmldoc/Makefile
|
||||
--- htmldoc-1.8.29/htmldoc/Makefile 2016-01-02 21:46:20.000000000 +0000
|
||||
+++ htmldoc-1.8.29b/htmldoc/Makefile 2016-04-13 16:56:35.318733424 +0000
|
||||
@@ -38,11 +38,11 @@
|
||||
#
|
||||
|
||||
install: all
|
||||
- if [ ! -d $(bindir) ]; then\
|
||||
- $(MKDIR) $(bindir);\
|
||||
+ if [ ! -d $(DESTDIR)$(bindir) ]; then\
|
||||
+ $(MKDIR) $(DESTDIR)$(bindir);\
|
||||
fi
|
||||
- cp htmldoc$(EXEEXT) $(bindir)
|
||||
- chmod ugo+rx $(bindir)/htmldoc$(EXEEXT)
|
||||
+ cp htmldoc$(EXEEXT) $(DESTDIR)$(bindir)
|
||||
+ chmod ugo+rx $(DESTDIR)$(bindir)/htmldoc$(EXEEXT)
|
||||
|
||||
|
||||
#
|
@ -1,6 +1,2 @@
|
||||
DIST hunspell-1.3.3.tar.gz 986081 SHA256 a7b2c0de0e2ce17426821dc1ac8eb115029959b3ada9d80a81739fa19373246c SHA512 7599981d002a4a032c41c83f6287243a4942b0e25c408049a3ba86c16f63ce964800a3ac325ace0402b0d7256690c4a4151a66f19a8f58cc455af0498bb1af04 WHIRLPOOL c10f7f7b326ce886bd031da29e9e04a1f4a5914f24cbe75061ed539958e7a8efaa4d4ea16f2b17437c63d97d6f558a27c092bc43c9f56c75078667d5344402f8
|
||||
DIST hunspell-1.3.4.tar.gz 1004935 SHA256 55918522cb0041748507dd4f5aa92d043cef337aa589b9367c2221da084281ac SHA512 092818570f5eb152b2bf8d0964068510185304f41e1eb0946bf7589c640d21bff67d2b79b49f770e8c0baa9031ab449eefb9e3b0bce8a28e2fc4809007fefa99 WHIRLPOOL 0e7c1941d31824e3a8f93200b6b228f56b0e35f14498a138425b177bc5a47274d422cd7b1d4836ebdb74b449bf777129381382e7b66211f5e8d1507cc3becdf7
|
||||
DIST hunspell-1.4.2.tar.gz 1000676 SHA256 b6a0b23d083e0130f8c561cca8c980814ba65740ccfa52f47159f9141089946d SHA512 b4528e9cc926456809b6a0c0c95ed95b297ca564c219bb229f8daefcc7aa4d50e77c99778f8eba867106d284a6ed6320e6966a7b304c7af873908cf55118f8f3 WHIRLPOOL 0343c7e507c6eae0d9df38a3c9bcf1ec847c3afc5497ac9dd729df1418cb0a398d25ee47da8fe498230ef7589d6735abb6a5eee6f2d5125e418437eaa9500ddc
|
||||
DIST hunspell-1.5.4.tar.gz 1110858 SHA256 852c01a2e3b87eb1f2adb5261466608ba79f1f950202e18a2a1735de5098fc59 SHA512 cda1612af2984bb28f7cf42ed2c81aac0e8ff0d0f740b3607a75f076d3478960f0c1d6b52a06fb0afbacfc1fce103da1ca2438dbe62e7abb46f70231347357bd WHIRLPOOL fe350cc0a22606c036e300ce8da0b1af36950778548d44bc6075ceb8da3aad0d682e2e12795bb1d52bba784910947ea9ed5c0ce07fdbb19524309b01b8898e9a
|
||||
DIST hunspell-1.6.0.tar.gz 699377 SHA256 512e7d2ee69dad0b35ca011076405e56e0f10963a02d4859dbcc4faf53ca68e2 SHA512 d13e0384654f98f87de61d3d6ec03fe4a0e972b49b7e220083c72c2dd99d169a4854160f7068baa34fe4d4bd85fa5c24b56587827b946fb072a2085173801ca9 WHIRLPOOL 9ab935e0a94e3f7ae02a9cf27b65c7f74b4eb13a2a447d05f94b3864d88b6d7c5bf93756433cc459506721e2327e83bb7151a638a9c2d2bc46a59a16889494cf
|
||||
DIST hunspell-1.6.1.tar.gz 706893 SHA256 30f593733c50b794016bb03d31fd2a2071e4610c6fa4708e33edad2335102c49 SHA512 39b096ec1f5226f13eaf241647fc9b49a6dad04945ae0bcdc61ba845d66d67d64a72ba4287b6f376b5ad053b5d0e1d42a42415c30521c50693f0544718029458 WHIRLPOOL 3013fc1538d01650ffc233f53f000cab7c797be7c712d7609598f0c5807eacf5a13215bce7176da6578e5e78825525864f833db56dbe64362431d3680fbd6b00
|
||||
DIST hunspell-1.6.2.tar.gz 721165 SHA256 3cd9ceb062fe5814f668e4f22b2fa6e3ba0b339b921739541ce180cac4d6f4c4 SHA512 a23127f1271da95ac06a1fb2f57b659485e959567b61da05b2bb350684003a0fb7e882b5e524c465fd890f79f513ed03174f38611989a1c09081147c47d6da11 WHIRLPOOL 04b83cbe0bb83fce42fd61a4585ffa03619c4cb5e7cf49f1e432dee34150ef63dd45074cfe820b7efc8965d2be1c8aefaae1d43424161d31494fbb4a72afb173
|
||||
|
@ -1,135 +0,0 @@
|
||||
=== modified file 'src/tools/Makefile.am'
|
||||
--- src/tools/Makefile.am 2011-05-24 15:55:29 +0000
|
||||
+++ src/tools/Makefile.am 2011-05-24 15:58:36 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-bin_PROGRAMS=analyze chmorph hunspell munch unmunch hzip hunzip
|
||||
+bin_PROGRAMS=hunspell-analyze hunspell-chmorph hunspell hunspell-munch hunspell-unmunch hzip hunzip
|
||||
|
||||
INCLUDES=-I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
hunzip_SOURCES=hunzip.cxx
|
||||
hunzip_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
|
||||
-munch_SOURCES=munch.c munch.h
|
||||
-unmunch_SOURCES=unmunch.c unmunch.h
|
||||
+hunspell_munch_SOURCES=munch.c munch.h
|
||||
+hunspell_unmunch_SOURCES=unmunch.c unmunch.h
|
||||
|
||||
example_SOURCES=example.cxx
|
||||
example_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
@@ -16,11 +16,11 @@
|
||||
hunspell_LDADD = @LIBINTL@ @LIBICONV@ ../parsers/libparsers.a \
|
||||
../hunspell/libhunspell-1.3.la @CURSESLIB@ @READLINELIB@
|
||||
|
||||
-analyze_SOURCES=analyze.cxx
|
||||
-analyze_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
+hunspell_analyze_SOURCES=analyze.cxx
|
||||
+hunspell_analyze_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
|
||||
-chmorph_SOURCES=chmorph.cxx
|
||||
-chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.3.la
|
||||
+hunspell_chmorph_SOURCES=chmorph.cxx
|
||||
+hunspell_chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.3.la
|
||||
|
||||
noinst_PROGRAMS=example
|
||||
|
||||
|
||||
=== modified file 'src/tools/chmorph.cxx'
|
||||
--- src/tools/chmorph.cxx 2011-05-24 15:55:29 +0000
|
||||
+++ src/tools/chmorph.cxx 2011-05-24 16:00:54 +0000
|
||||
@@ -19,11 +19,11 @@
|
||||
for (int i = 1; i < 6; i++)
|
||||
if (!argv[i]) {
|
||||
fprintf(stderr,
|
||||
- "chmorph - change affixes by morphological analysis and generation\n"
|
||||
- "correct syntax is:\nchmorph affix_file "
|
||||
+ "hunspell-chmorph - change affixes by morphological analysis and generation\n"
|
||||
+ "correct syntax is:\nhunspell-chmorph affix_file "
|
||||
"dictionary_file file_to_convert STRING1 STRING2\n"
|
||||
"STRINGS may be arbitrary parts of the morphological descriptions\n"
|
||||
- "example: chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
|
||||
+ "example: hunspell-chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
|
||||
" (convert informal Hungarian second person texts to formal third person texts)\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
=== modified file 'src/tools/example.cxx'
|
||||
--- src/tools/example.cxx 2011-05-24 15:55:29 +0000
|
||||
+++ src/tools/example.cxx 2011-05-24 15:55:37 +0000
|
||||
@@ -17,8 +17,8 @@
|
||||
/* first parse the command line options */
|
||||
|
||||
if (argc < 4) {
|
||||
- fprintf(stderr,"example (now it works with more dictionary files):\n");
|
||||
- fprintf(stderr,"example affix_file dictionary_file(s) file_of_words_to_check\n");
|
||||
+ fprintf(stderr,"hunspell-example (now it works with more dictionary files):\n");
|
||||
+ fprintf(stderr,"hunspell-example affix_file dictionary_file(s) file_of_words_to_check\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
=== modified file 'src/tools/munch.c'
|
||||
--- src/tools/munch.c 2011-05-24 15:55:29 +0000
|
||||
+++ src/tools/munch.c 2011-05-24 15:55:37 +0000
|
||||
@@ -42,14 +42,14 @@
|
||||
wf = mystrdup(argv[1]);
|
||||
} else {
|
||||
fprintf(stderr,"correct syntax is:\n");
|
||||
- fprintf(stderr,"munch word_list_file affix_file\n");
|
||||
+ fprintf(stderr,"hunspell-munch word_list_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
if (argv[2]) {
|
||||
af = mystrdup(argv[2]);
|
||||
} else {
|
||||
fprintf(stderr,"correct syntax is:\n");
|
||||
- fprintf(stderr,"munch word_list_file affix_file\n");
|
||||
+ fprintf(stderr,"hunspell-munch word_list_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
=== modified file 'src/tools/unmunch.c'
|
||||
--- src/tools/unmunch.c 2011-05-24 15:55:29 +0000
|
||||
+++ src/tools/unmunch.c 2011-05-24 15:55:37 +0000
|
||||
@@ -39,14 +39,14 @@
|
||||
wf = mystrdup(argv[1]);
|
||||
} else {
|
||||
fprintf(stderr,"correct syntax is:\n");
|
||||
- fprintf(stderr,"unmunch dic_file affix_file\n");
|
||||
+ fprintf(stderr,"hunspell-unmunch dic_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
if (argv[2]) {
|
||||
af = mystrdup(argv[2]);
|
||||
} else {
|
||||
fprintf(stderr,"correct syntax is:\n");
|
||||
- fprintf(stderr,"unmunch dic_file affix_file\n");
|
||||
+ fprintf(stderr,"hunspell-unmunch dic_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
=== modified file 'tests/test.sh'
|
||||
--- tests/test.sh 2011-05-24 15:55:29 +0000
|
||||
+++ tests/test.sh 2011-05-24 15:55:37 +0000
|
||||
@@ -34,7 +34,7 @@
|
||||
shopt -s expand_aliases
|
||||
|
||||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell'
|
||||
-alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/analyze'
|
||||
+alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell-analyze'
|
||||
|
||||
if [ "$VALGRIND" != "" ]; then
|
||||
rm -f $TEMPDIR/test.pid*
|
||||
@@ -43,7 +43,7 @@
|
||||
fi
|
||||
|
||||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell'
|
||||
- alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/analyze'
|
||||
+ alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell-analyze'
|
||||
fi
|
||||
|
||||
# Tests good words
|
||||
|
@ -1,59 +0,0 @@
|
||||
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7781#31
|
||||
https://bugs.gentoo.org/518740
|
||||
|
||||
--- src/tools/hunspell.cxx
|
||||
+++ src/tools/hunspell.cxx
|
||||
@@ -710,13 +748,22 @@ if (pos >= 0) {
|
||||
fflush(stdout);
|
||||
} else {
|
||||
char ** wlst = NULL;
|
||||
- int ns = pMS[d]->suggest(&wlst, token);
|
||||
+ int byte_offset = parser->get_tokenpos() + pos;
|
||||
+ int char_offset = 0;
|
||||
+ if (strcmp(io_enc, "UTF-8") == 0) {
|
||||
+ for (int i = 0; i < byte_offset; i++) {
|
||||
+ if ((buf[i] & 0xc0) != 0x80)
|
||||
+ char_offset++;
|
||||
+ }
|
||||
+ } else {
|
||||
+ char_offset = byte_offset;
|
||||
+ }
|
||||
+ int ns = pMS[d]->suggest(&wlst, chenc(token, io_enc, dic_enc[d]));
|
||||
if (ns == 0) {
|
||||
- fprintf(stdout,"# %s %d", token,
|
||||
- parser->get_tokenpos() + pos);
|
||||
+ fprintf(stdout,"# %s %d", token, char_offset);
|
||||
} else {
|
||||
fprintf(stdout,"& %s %d %d: ", token, ns,
|
||||
- parser->get_tokenpos() + pos);
|
||||
+ char_offset);
|
||||
fprintf(stdout,"%s", chenc(wlst[0], dic_enc[d], io_enc));
|
||||
}
|
||||
for (int j = 1; j < ns; j++) {
|
||||
@@ -745,13 +792,23 @@ if (pos >= 0) {
|
||||
if (root) free(root);
|
||||
} else {
|
||||
char ** wlst = NULL;
|
||||
+ int byte_offset = parser->get_tokenpos() + pos;
|
||||
+ int char_offset = 0;
|
||||
+ if (strcmp(io_enc, "UTF-8") == 0) {
|
||||
+ for (int i = 0; i < byte_offset; i++) {
|
||||
+ if ((buf[i] & 0xc0) != 0x80)
|
||||
+ char_offset++;
|
||||
+ }
|
||||
+ } else {
|
||||
+ char_offset = byte_offset;
|
||||
+ }
|
||||
int ns = pMS[d]->suggest(&wlst, chenc(token, io_enc, dic_enc[d]));
|
||||
if (ns == 0) {
|
||||
fprintf(stdout,"# %s %d", chenc(token, io_enc, ui_enc),
|
||||
- parser->get_tokenpos() + pos);
|
||||
+ char_offset);
|
||||
} else {
|
||||
fprintf(stdout,"& %s %d %d: ", chenc(token, io_enc, ui_enc), ns,
|
||||
- parser->get_tokenpos() + pos);
|
||||
+ char_offset);
|
||||
fprintf(stdout,"%s", chenc(wlst[0], dic_enc[d], ui_enc));
|
||||
}
|
||||
for (int j = 1; j < ns; j++) {
|
||||
|
@ -1,124 +0,0 @@
|
||||
--- hunspell-1.3.4/src/tools/chmorph.cxx
|
||||
+++ hunspell-1.3.4/src/tools/chmorph.cxx
|
||||
@@ -58,11 +58,11 @@
|
||||
if (!argv[i]) {
|
||||
fprintf(
|
||||
stderr,
|
||||
- "chmorph - change affixes by morphological analysis and generation\n"
|
||||
- "correct syntax is:\nchmorph affix_file "
|
||||
+ "hunspell-chmorph - change affixes by morphological analysis and generation\n"
|
||||
+ "correct syntax is:\nhunspell-chmorph affix_file "
|
||||
"dictionary_file file_to_convert STRING1 STRING2\n"
|
||||
"STRINGS may be arbitrary parts of the morphological descriptions\n"
|
||||
- "example: chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
|
||||
+ "example: hunspell-chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
|
||||
" (convert informal Hungarian second person texts to formal third "
|
||||
"person texts)\n");
|
||||
exit(1);
|
||||
--- hunspell-1.3.4/src/tools/example.cxx
|
||||
+++ hunspell-1.3.4/src/tools/example.cxx
|
||||
@@ -54,9 +54,9 @@
|
||||
/* first parse the command line options */
|
||||
|
||||
if (argc < 4) {
|
||||
- fprintf(stderr, "example (now it works with more dictionary files):\n");
|
||||
+ fprintf(stderr, "hunspell-example (now it works with more dictionary files):\n");
|
||||
fprintf(stderr,
|
||||
- "example affix_file dictionary_file(s) file_of_words_to_check\n");
|
||||
+ "hunspell-example affix_file dictionary_file(s) file_of_words_to_check\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
--- hunspell-1.3.4/src/tools/Makefile.am
|
||||
+++ hunspell-1.3.4/src/tools/Makefile.am
|
||||
@@ -1,4 +1,4 @@
|
||||
-bin_PROGRAMS=analyze chmorph hunspell munch unmunch hzip hunzip
|
||||
+bin_PROGRAMS=hunspell-analyze hunspell-chmorph hunspell hunspell-munch hunspell-unmunch hzip hunzip
|
||||
|
||||
INCLUDES=-I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
hunzip_SOURCES=hunzip.cxx
|
||||
hunzip_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
|
||||
-munch_SOURCES=munch.c munch.h
|
||||
-unmunch_SOURCES=unmunch.c unmunch.h
|
||||
+hunspell_munch_SOURCES=munch.c munch.h
|
||||
+hunspell_unmunch_SOURCES=unmunch.c unmunch.h
|
||||
|
||||
example_SOURCES=example.cxx
|
||||
example_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
@@ -16,11 +16,11 @@
|
||||
hunspell_LDADD = @LIBINTL@ @LIBICONV@ ../parsers/libparsers.a \
|
||||
../hunspell/libhunspell-1.3.la @CURSESLIB@ @READLINELIB@
|
||||
|
||||
-analyze_SOURCES=analyze.cxx
|
||||
-analyze_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
+hunspell_analyze_SOURCES=analyze.cxx
|
||||
+hunspell_analyze_LDADD = ../hunspell/libhunspell-1.3.la
|
||||
|
||||
-chmorph_SOURCES=chmorph.cxx
|
||||
-chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.3.la
|
||||
+hunspell_chmorph_SOURCES=chmorph.cxx
|
||||
+hunspell_chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.3.la
|
||||
|
||||
noinst_PROGRAMS=example
|
||||
|
||||
--- hunspell-1.3.4/src/tools/munch.c
|
||||
+++ hunspell-1.3.4/src/tools/munch.c
|
||||
@@ -79,14 +79,14 @@
|
||||
wf = mystrdup(argv[1]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "munch word_list_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-munch word_list_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
if (argv[2]) {
|
||||
af = mystrdup(argv[2]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "munch word_list_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-munch word_list_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
--- hunspell-1.3.4/src/tools/unmunch.c
|
||||
+++ hunspell-1.3.4/src/tools/unmunch.c
|
||||
@@ -74,14 +74,14 @@
|
||||
wf = mystrdup(argv[1]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "unmunch dic_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-unmunch dic_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
if (argv[2]) {
|
||||
af = mystrdup(argv[2]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "unmunch dic_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-unmunch dic_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
--- hunspell-1.3.4/tests/test.sh
|
||||
+++ hunspell-1.3.4/tests/test.sh
|
||||
@@ -74,7 +74,7 @@
|
||||
shopt -s expand_aliases
|
||||
|
||||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell'
|
||||
-alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/analyze'
|
||||
+alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunespell-analyze'
|
||||
|
||||
if [ "$VALGRIND" != "" ]; then
|
||||
rm -f $TEMPDIR/test.pid*
|
||||
@@ -83,7 +83,7 @@
|
||||
fi
|
||||
|
||||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell'
|
||||
- alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/analyze'
|
||||
+ alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell-analyze'
|
||||
fi
|
||||
|
||||
# Tests good words
|
@ -1,124 +0,0 @@
|
||||
--- hunspell-1.5.0/src/tools/chmorph.cxx
|
||||
+++ hunspell-1.5.0/src/tools/chmorph.cxx
|
||||
@@ -58,11 +58,11 @@
|
||||
if (!argv[i]) {
|
||||
fprintf(
|
||||
stderr,
|
||||
- "chmorph - change affixes by morphological analysis and generation\n"
|
||||
- "correct syntax is:\nchmorph affix_file "
|
||||
+ "hunspell-chmorph - change affixes by morphological analysis and generation\n"
|
||||
+ "correct syntax is:\nhunspell-chmorph affix_file "
|
||||
"dictionary_file file_to_convert STRING1 STRING2\n"
|
||||
"STRINGS may be arbitrary parts of the morphological descriptions\n"
|
||||
- "example: chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
|
||||
+ "example: hunspell-chmorph hu.aff hu.dic hu.txt SG_2 SG_3 "
|
||||
" (convert informal Hungarian second person texts to formal third "
|
||||
"person texts)\n");
|
||||
exit(1);
|
||||
--- hunspell-1.5.0/src/tools/example.cxx
|
||||
+++ hunspell-1.5.0/src/tools/example.cxx
|
||||
@@ -53,9 +53,9 @@
|
||||
/* first parse the command line options */
|
||||
|
||||
if (argc < 4) {
|
||||
- fprintf(stderr, "example (now it works with more dictionary files):\n");
|
||||
+ fprintf(stderr, "hunspell-example (now it works with more dictionary files):\n");
|
||||
fprintf(stderr,
|
||||
- "example affix_file dictionary_file(s) file_of_words_to_check\n");
|
||||
+ "hunspell-example affix_file dictionary_file(s) file_of_words_to_check\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
--- hunspell-1.5.0/src/tools/Makefile.am
|
||||
+++ hunspell-1.5.0/src/tools/Makefile.am
|
||||
@@ -1,4 +1,4 @@
|
||||
-bin_PROGRAMS=analyze chmorph hunspell munch unmunch hzip hunzip
|
||||
+bin_PROGRAMS=hunspell-analyze hunspell-chmorph hunspell hunspell-munch hunspell-unmunch hzip hunzip
|
||||
|
||||
INCLUDES=-I${top_builddir}/src/hunspell -I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
hunzip_SOURCES=hunzip.cxx
|
||||
hunzip_LDADD = ../hunspell/libhunspell-1.5.la
|
||||
|
||||
-munch_SOURCES=munch.cxx munch.h
|
||||
-unmunch_SOURCES=unmunch.cxx unmunch.h
|
||||
+hunspell_munch_SOURCES=munch.cxx munch.h
|
||||
+hunspell_unmunch_SOURCES=unmunch.cxx unmunch.h
|
||||
|
||||
example_SOURCES=example.cxx
|
||||
example_LDADD = ../hunspell/libhunspell-1.5.la
|
||||
@@ -16,11 +16,11 @@
|
||||
hunspell_LDADD = @LIBINTL@ @LIBICONV@ ../parsers/libparsers.a \
|
||||
../hunspell/libhunspell-1.5.la @CURSESLIB@ @READLINELIB@
|
||||
|
||||
-analyze_SOURCES=analyze.cxx
|
||||
-analyze_LDADD = ../hunspell/libhunspell-1.5.la
|
||||
+hunspell_analyze_SOURCES=analyze.cxx
|
||||
+hunspell_analyze_LDADD = ../hunspell/libhunspell-1.5.la
|
||||
|
||||
-chmorph_SOURCES=chmorph.cxx
|
||||
-chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.5.la
|
||||
+hunspell_chmorph_SOURCES=chmorph.cxx
|
||||
+hunspell_chmorph_LDADD = ../parsers/libparsers.a ../hunspell/libhunspell-1.5.la
|
||||
|
||||
noinst_PROGRAMS=example
|
||||
|
||||
--- hunspell-1.5.0/src/tools/munch.cxx
|
||||
+++ hunspell-1.5.0/src/tools/munch.cxx
|
||||
@@ -81,14 +81,14 @@
|
||||
wf = mystrdup(argv[1]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "munch word_list_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-munch word_list_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
if (argv[2]) {
|
||||
af = mystrdup(argv[2]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "munch word_list_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-munch word_list_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
--- hunspell-1.5.0/src/tools/unmunch.cxx
|
||||
+++ hunspell-1.5.0/src/tools/unmunch.cxx
|
||||
@@ -76,14 +76,14 @@
|
||||
wf = mystrdup(argv[1]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "unmunch dic_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-unmunch dic_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
if (argv[2]) {
|
||||
af = mystrdup(argv[2]);
|
||||
} else {
|
||||
fprintf(stderr, "correct syntax is:\n");
|
||||
- fprintf(stderr, "unmunch dic_file affix_file\n");
|
||||
+ fprintf(stderr, "hunspell-unmunch dic_file affix_file\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
--- hunspell-1.5.0/tests/test.sh
|
||||
+++ hunspell-1.5.0/tests/test.sh
|
||||
@@ -74,7 +74,7 @@
|
||||
shopt -s expand_aliases
|
||||
|
||||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell'
|
||||
-alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/analyze'
|
||||
+alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la ../src/tools/hunspell-analyze'
|
||||
|
||||
if [ "$VALGRIND" != "" ]; then
|
||||
rm -f $TEMPDIR/test.pid*
|
||||
@@ -83,7 +83,7 @@
|
||||
fi
|
||||
|
||||
alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell'
|
||||
- alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/analyze'
|
||||
+ alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell-analyze'
|
||||
fi
|
||||
|
||||
# Tests good words
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils multilib autotools flag-o-matic versionator
|
||||
|
||||
MY_P=${PN}-${PV/_beta/b}
|
||||
|
||||
DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
HOMEPAGE="http://hunspell.sourceforge.net/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
|
||||
IUSE="ncurses nls readline static-libs"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
readline? ( sys-libs/readline:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
# describe properly mi
|
||||
LANGS="af bg ca cs cy da de de-1901 el en eo es et fo fr ga gl he hr hu ia id
|
||||
is it kk km ku lt lv mk ms nb nl nn pl pt pt-BR ro ru sk sl sq sv sw tn uk zu"
|
||||
|
||||
PDEPEND="app-dicts/myspell-en"
|
||||
for lang in ${LANGS}; do
|
||||
IUSE+=" l10n_${lang}"
|
||||
case ${lang} in
|
||||
de-1901) dict="de_1901" ;;
|
||||
pt-BR) dict="pt-br" ;;
|
||||
*) dict="${lang}" ;;
|
||||
esac
|
||||
PDEPEND+=" l10n_${lang}? ( app-dicts/myspell-${dict} )"
|
||||
done
|
||||
unset dict lang LANGS
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=(
|
||||
AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell
|
||||
AUTHORS.myspell README.myspell license.myspell
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Upstream package creates some executables which names are too generic
|
||||
# to be placed in /usr/bin - this patch prefixes them with 'hunspell-'.
|
||||
# It modifies a Makefile.am file, hence eautoreconf.
|
||||
epatch "${FILESDIR}"/${PN}-1.3-renameexes.patch \
|
||||
"${FILESDIR}"/${PN}-1.3.3-multibyte-chars.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# missing somehow, and I am too lazy to fix it properly
|
||||
[[ ${CHOST} == *-darwin* ]] && append-libs -liconv
|
||||
|
||||
# I wanted to put the include files in /usr/include/hunspell.
|
||||
# You can do that, libreoffice can find them anywhere, just
|
||||
# ping me when you do so ; -- scarabeus
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_with ncurses ui) \
|
||||
$(use_with readline readline) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
#342449
|
||||
pushd "${ED}"/usr/$(get_libdir)/ >/dev/null
|
||||
ln -s lib${PN}{-$(get_major_version).$(get_version_component_range 2).so.0.0.0,.so}
|
||||
popd >/dev/null
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils multilib autotools flag-o-matic versionator
|
||||
|
||||
MY_P=${PN}-${PV/_beta/b}
|
||||
|
||||
DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
HOMEPAGE="http://hunspell.sourceforge.net/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
|
||||
IUSE="ncurses nls readline static-libs"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
readline? ( sys-libs/readline:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
LANGS="af bg ca cs cy da de de-1901 el en eo es et fo fr ga gl he hr hu ia id
|
||||
is it kk km ku lt lv mi mk ms nb nl nn pl pt pt-BR ro ru sk sl sq sv sw tn uk
|
||||
zu"
|
||||
|
||||
PDEPEND="app-dicts/myspell-en"
|
||||
for lang in ${LANGS}; do
|
||||
IUSE+=" l10n_${lang}"
|
||||
case ${lang} in
|
||||
de-1901) dict="de_1901" ;;
|
||||
pt-BR) dict="pt-br" ;;
|
||||
*) dict="${lang}" ;;
|
||||
esac
|
||||
PDEPEND+=" l10n_${lang}? ( app-dicts/myspell-${dict} )"
|
||||
done
|
||||
unset dict lang LANGS
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=(
|
||||
AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell
|
||||
AUTHORS.myspell README.myspell license.myspell
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
# Upstream package creates some executables which names are too generic
|
||||
# to be placed in /usr/bin - this patch prefixes them with 'hunspell-'.
|
||||
# It modifies a Makefile.am file, hence eautoreconf.
|
||||
"${FILESDIR}/${PN}-1.3.4-renameexes.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# missing somehow, and I am too lazy to fix it properly
|
||||
[[ ${CHOST} == *-darwin* ]] && append-libs -liconv
|
||||
|
||||
# I wanted to put the include files in /usr/include/hunspell.
|
||||
# You can do that, libreoffice can find them anywhere, just
|
||||
# ping me when you do so ; -- scarabeus
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_with ncurses ui) \
|
||||
$(use_with readline readline) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
einstalldocs
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
#342449
|
||||
pushd "${ED}"/usr/$(get_libdir)/ >/dev/null
|
||||
ln -s lib${PN}{-$(get_major_version).$(get_version_component_range 2).so.0.0.0,.so}
|
||||
popd >/dev/null
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils multilib autotools flag-o-matic versionator
|
||||
|
||||
MY_P=${PN}-${PV/_beta/b}
|
||||
|
||||
DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
HOMEPAGE="http://hunspell.sourceforge.net/"
|
||||
|
||||
SLOT="0/1.4"
|
||||
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
|
||||
IUSE="ncurses nls readline static-libs"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
readline? ( sys-libs/readline:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
LANGS="af bg ca cs cy da de de-1901 el en eo es et fo fr ga gl he hr hu ia id
|
||||
is it kk km ku lt lv mi mk ms nb nl nn pl pt pt-BR ro ru sk sl sq sv sw tn uk
|
||||
zu"
|
||||
|
||||
PDEPEND="app-dicts/myspell-en"
|
||||
for lang in ${LANGS}; do
|
||||
IUSE+=" l10n_${lang}"
|
||||
case ${lang} in
|
||||
de-1901) dict="de_1901" ;;
|
||||
pt-BR) dict="pt-br" ;;
|
||||
*) dict="${lang}" ;;
|
||||
esac
|
||||
PDEPEND+=" l10n_${lang}? ( app-dicts/myspell-${dict} )"
|
||||
done
|
||||
unset dict lang LANGS
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=(
|
||||
AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell
|
||||
AUTHORS.myspell README.myspell license.myspell
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
# Upstream package creates some executables which names are too generic
|
||||
# to be placed in /usr/bin - this patch prefixes them with 'hunspell-'.
|
||||
# It modifies a Makefile.am file, hence eautoreconf.
|
||||
"${FILESDIR}/${PN}-1.4.0-renameexes.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# missing somehow, and I am too lazy to fix it properly
|
||||
[[ ${CHOST} == *-darwin* ]] && append-libs -liconv
|
||||
|
||||
# I wanted to put the include files in /usr/include/hunspell.
|
||||
# You can do that, libreoffice can find them anywhere, just
|
||||
# ping me when you do so ; -- scarabeus
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_with ncurses ui) \
|
||||
$(use_with readline readline) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
einstalldocs
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
#342449
|
||||
pushd "${ED}"/usr/$(get_libdir)/ >/dev/null
|
||||
ln -s lib${PN}{-$(get_major_version).$(get_version_component_range 2).so.0.0.0,.so}
|
||||
popd >/dev/null
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils multilib autotools flag-o-matic versionator
|
||||
|
||||
MY_P=${PN}-${PV/_beta/b}
|
||||
|
||||
DESCRIPTION="Hunspell spell checker - an improved replacement for myspell in OOo"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
HOMEPAGE="http://hunspell.sourceforge.net/"
|
||||
|
||||
SLOT="0/$(get_version_component_range 1-2)"
|
||||
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
|
||||
IUSE="ncurses nls readline static-libs"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
readline? ( sys-libs/readline:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
LANGS="af bg ca cs cy da de de-1901 el en eo es et fo fr ga gl he hr hu ia id
|
||||
is it kk km ku lt lv mi mk ms nb nl nn pl pt pt-BR ro ru sk sl sq sv sw tn uk
|
||||
zu"
|
||||
|
||||
PDEPEND="app-dicts/myspell-en"
|
||||
for lang in ${LANGS}; do
|
||||
IUSE+=" l10n_${lang}"
|
||||
case ${lang} in
|
||||
de-1901) dict="de_1901" ;;
|
||||
pt-BR) dict="pt-br" ;;
|
||||
*) dict="${lang}" ;;
|
||||
esac
|
||||
PDEPEND+=" l10n_${lang}? ( app-dicts/myspell-${dict} )"
|
||||
done
|
||||
unset dict lang LANGS
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=(
|
||||
AUTHORS ChangeLog NEWS README THANKS TODO license.hunspell
|
||||
AUTHORS.myspell README.myspell license.myspell
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
# Upstream package creates some executables which names are too generic
|
||||
# to be placed in /usr/bin - this patch prefixes them with 'hunspell-'.
|
||||
# It modifies a Makefile.am file, hence eautoreconf.
|
||||
"${FILESDIR}/${PN}-1.5.0-renameexes.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# missing somehow, and I am too lazy to fix it properly
|
||||
[[ ${CHOST} == *-darwin* ]] && append-libs -liconv
|
||||
|
||||
# I wanted to put the include files in /usr/include/hunspell.
|
||||
# You can do that, libreoffice can find them anywhere, just
|
||||
# ping me when you do so ; -- scarabeus
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_with ncurses ui) \
|
||||
$(use_with readline readline) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
einstalldocs
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
#342449
|
||||
pushd "${ED}"/usr/$(get_libdir)/ >/dev/null
|
||||
ln -s lib${PN}{-$(get_major_version).$(get_version_component_range 2).so.0.0.0,.so}
|
||||
popd >/dev/null
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGIT_REPO_URI="git://git.code.sf.net/p/libmwaw/libmwaw"
|
||||
[[ ${PV} == 9999 ]] && inherit autotools git-r3
|
||||
|
||||
DESCRIPTION="Library parsing many pre-OSX MAC text formats"
|
||||
HOMEPAGE="https://sourceforge.net/p/libmwaw/wiki/Home/"
|
||||
[[ ${PV} == 9999 ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
||||
[[ ${PV} == 9999 ]] || \
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
|
||||
IUSE="doc static-libs"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/librevenge
|
||||
dev-libs/libxml2
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
sys-devel/libtool
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
[[ ${PV} == 9999 ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# zip is hard enabled as the zlib is dep on the rdeps anyway
|
||||
econf \
|
||||
--enable-zip \
|
||||
--disable-werror \
|
||||
--with-sharedptr=boost \
|
||||
$(use_with doc docs) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST poppler-0.45.0.tar.xz 1674464 SHA256 96dd1a6024bcdaa4530a3b49687db3d5c24ddfd072ccb37c6de0e42599728798 SHA512 b703bed35da3572801834740bf61d59b6a3ee3b88bc1b3181bde3472264be4f6b89ceacb56179d7093329946abd6ba2501acfaf209d4f543352ff9fd38c47f1b WHIRLPOOL 687b1ba816dbff1b0a69cb05914dd7fb161bfd8c0fa4e26b77bb0ad26e27f7d7d94085a1022716a8d7a7563145f0acead9fccbbd332959d0216b81b27f3632e8
|
||||
DIST poppler-0.56.0.tar.xz 1701488 SHA256 869dbadf99ed882e776acbdbc06689d8a81872a2963440b1e8516cd7a2577173 SHA512 74d2ca63afcb7e155c153b4ddc71621b7f4f2c60d4fcafd873176d5ac59fafedc35b200a22c7af2013d7f75e670a1cc23d6ba878167a02209917f8d30002d528 WHIRLPOOL 3b7b4330306f46bc6c1f72205a8cff95f23a82011260a629762ad52bdcbc89e5c071da8aeb48c15ff21e7b38893aa01b3421d9d232938ac8a61745f798271b04
|
||||
DIST poppler-0.57.0.tar.xz 1703300 SHA256 0ea37de71b7db78212ebc79df59f99b66409a29c2eac4d882dae9f2397fe44d8 SHA512 197a0bf51e7fd607db83144d771904e48f266ab9e1252c688f9e7700a5bdd239670cf0363e9d77137bafa9c08fb6ddb9d066cc78a74dac7dfd717662b25cac5f WHIRLPOOL fb0c15e4834f23b2956014748f92557de9996b8a2a37cf4a7ba62ca22f01866455a933bcf0412775a8d5a8f6ba1ba463f2fd63e27fa406b5fb5bf1fd25d32000
|
||||
DIST poppler-0.58.0.tar.xz 1710412 SHA256 0e42e46419ae54b02d9f2b527c6475b6011d15816918b9057dfa3aae211af832 SHA512 0675846fc99578925840cbb17083463da6ea54f7de348b946ae7d4480d9d87bd4b5069392b23a8b9bbafe0aafafaf5a200134be52d0832558104cb4aa2497aee WHIRLPOOL 658f7dfbb786c2e09558f7e89ef0832db4ff32eaef08b7360fbf468236db01b44e33374424df6b64c17f018d7b10f61e151c08026652628d387958143a5a3837
|
||||
|
@ -1 +1,2 @@
|
||||
DIST sqlitestudio-3.0.7.tar.gz 2551341 SHA256 b5ad7ac22a88eacb9404637ca6257934d0b1b59e16a182099bbdb158a7af55aa SHA512 2171fe26754aed2abe24d73e9ccc2ee1abe5e87228096bc5643c5638ad578dc323b810535f41d0206b3d7a7aa75132bfb578972c7945b962dd593543c7da3270 WHIRLPOOL 6078575b9bf6576d76965b2cf0c7a47a3b56488be8a75dd2df00b58cfab9d29e98ca30d21ac0dd47fe9a6fb0243052107b74686d90b12b9b2fbff05bc205736f
|
||||
DIST sqlitestudio-3.1.1.tar.gz 8610037 SHA256 f757a82466e97137addd70dd5323a1a7ba7cad7841dc138812a2da2799f92c6c SHA512 421247730660e8396f692fd8df9366e6ae834633823004ef3cb7c6f3064e66f420f0517df6a8542b800f7f88dacf2fc646b4224b423ab3994c7d8a083e82e143 WHIRLPOOL d3ce08e65ac53367067fd8cd73997cc1313a2cc9de2d15605b91bf57e729a1249c953c4db7b54901e8d41bb2b80d04184fbf19feaee9077e8a07002de2a61a2e
|
||||
|
@ -1,8 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<use>
|
||||
<flag name="cli">Build CLI interface</flag>
|
||||
</use>
|
||||
<maintainer type="person">
|
||||
<email>reagentoo@gmail.com</email>
|
||||
<name>Dmitry Baranov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="cli">Build CLI interface</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,138 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PLOCALES="de es fr it pl pt_BR ru sk zh_CN"
|
||||
|
||||
inherit eutils l10n qmake-utils xdg
|
||||
|
||||
DESCRIPTION="Powerful cross-platform SQLite database manager"
|
||||
HOMEPAGE="https://sqlitestudio.pl"
|
||||
SRC_URI="https://sqlitestudio.pl/files/sqlitestudio3/complete/tar/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="cli cups tcl test"
|
||||
|
||||
RDEPEND="
|
||||
dev-db/sqlite:3
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtscript:5
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
cli? ( sys-libs/readline:* )
|
||||
cups? ( dev-qt/qtprintsupport:5 )
|
||||
tcl? ( dev-lang/tcl:* )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/designer:5
|
||||
test? ( dev-qt/qttest:5 )
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
core_build_dir="${S}/output/build"
|
||||
plugins_build_dir="${core_build_dir}/Plugins"
|
||||
|
||||
src_prepare() {
|
||||
xdg_src_prepare
|
||||
|
||||
sed -i -e 's/linux|portable/portable/' \
|
||||
SQLiteStudio3/sqlitestudio/sqlitestudio.pro || die
|
||||
|
||||
disable_modules() {
|
||||
[[ $# -lt 2 ]] && die "not enough arguments"
|
||||
|
||||
local pro="$1"; shift
|
||||
local modules="${@}"
|
||||
|
||||
sed -r -i \
|
||||
-e 's/('${modules// /|}')[[:space:]]*(\\?)/\2/' \
|
||||
${pro} || die
|
||||
}
|
||||
|
||||
use cli || disable_modules SQLiteStudio3/SQLiteStudio3.pro cli
|
||||
|
||||
local mod_lst=( DbSqlite2 )
|
||||
use cups || mod_lst+=( Printing )
|
||||
use tcl || mod_lst+=( ScriptingTcl )
|
||||
disable_modules Plugins/Plugins.pro ${mod_lst[@]}
|
||||
|
||||
local mylrelease="$(qt5_get_bindir)"/lrelease
|
||||
local ts_dir_lst=$(find * -type f -name "*.qm" -printf '%h\n' | sort -u)
|
||||
local ts_pro_lst=$(find * -type f -name "*.pro" -exec grep -l 'TRANSLATIONS' {} \;)
|
||||
local ts_qrc_lst=$(find * -type f -name "*.qrc" -exec grep -l '\.qm' {} \;)
|
||||
|
||||
# delete all "*.qm"
|
||||
for ts_dir in ${ts_dir_lst[@]}; do
|
||||
rm "${ts_dir}"/*.qm || die
|
||||
done
|
||||
|
||||
prepare_locale() {
|
||||
for ts_dir in ${ts_dir_lst[@]}; do
|
||||
local ts=$(find "${ts_dir}" -type f -name "*${1}.ts" || continue)
|
||||
"${mylrelease}" "${ts}" || die "preparing ${1} locale failed"
|
||||
done
|
||||
}
|
||||
|
||||
rm_locale() {
|
||||
for ts_pro in ${ts_pro_lst[@]}; do
|
||||
sed -i -r -e 's/[^[:space:]]*'${1}'\.ts//' \
|
||||
${ts_pro} || die
|
||||
done
|
||||
|
||||
for ts_qrc in ${ts_qrc_lst[@]}; do
|
||||
sed -i -e '/'${1}'\.qm/d' \
|
||||
${ts_qrc} || die
|
||||
done
|
||||
}
|
||||
|
||||
local ts_dir_main="SQLiteStudio3/sqlitestudio/translations"
|
||||
l10n_find_plocales_changes ${ts_dir_main} "sqlitestudio_" '.ts'
|
||||
l10n_for_each_locale_do prepare_locale
|
||||
l10n_for_each_disabled_locale_do rm_locale
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# NOTE: QMAKE_CFLAGS_ISYSTEM option prevents
|
||||
# build error with tcl use enabled (stdlib.h is missing)
|
||||
local myqmakeargs=(
|
||||
"BINDIR=${EPREFIX}/usr/bin"
|
||||
"LIBDIR=${EPREFIX}/usr/$(get_libdir)"
|
||||
"QMAKE_CFLAGS_ISYSTEM=\"\""
|
||||
$(usex test 'DEFINES+=tests' '')
|
||||
)
|
||||
|
||||
## Core
|
||||
mkdir -p "${core_build_dir}" && cd "${core_build_dir}" || die
|
||||
eqmake5 "${myqmakeargs[@]}" "${S}/SQLiteStudio3"
|
||||
|
||||
## Plugins
|
||||
mkdir -p "${plugins_build_dir}" && cd "${plugins_build_dir}" || die
|
||||
eqmake5 "${myqmakeargs[@]}" "${S}/Plugins"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -C "${core_build_dir}"
|
||||
emake -C "${plugins_build_dir}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C "${core_build_dir}" INSTALL_ROOT="${D}" install
|
||||
emake -C "${plugins_build_dir}" INSTALL_ROOT="${D}" install
|
||||
|
||||
doicon -s scalable "SQLiteStudio3/guiSQLiteStudio/img/${PN}.svg"
|
||||
|
||||
local make_desktop_entry_args=(
|
||||
"${PN} -- %F"
|
||||
'SQLiteStudio3'
|
||||
"${PN}"
|
||||
'Development;Database;Utility'
|
||||
)
|
||||
make_desktop_entry "${make_desktop_entry_args[@]}" \
|
||||
"$( printf '%s\n' "MimeType=application/x-sqlite3;" )"
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
From d39a3409acd3c40fb018ec1c114f15d3ecef6ef9 Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Thu, 1 Jun 2017 22:30:05 +0100
|
||||
Subject: [PATCH] aclocal.m4: add support for versioned darwin triplets
|
||||
|
||||
The change adds support for 'darwin*' OS:
|
||||
$ ./configure --target=aarch64-apple-darwin14
|
||||
|
||||
Reported-by: jp_rider
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
---
|
||||
aclocal.m4 | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/aclocal.m4 b/aclocal.m4
|
||||
index 7ad9c36453..437974a0c7 100644
|
||||
--- a/aclocal.m4
|
||||
+++ b/aclocal.m4
|
||||
@@ -1906,6 +1906,9 @@ AC_DEFUN([GHC_CONVERT_OS],[
|
||||
aix*) # e.g. powerpc-ibm-aix7.1.3.0
|
||||
$3="aix"
|
||||
;;
|
||||
+ darwin*) # e.g. aarch64-apple-darwin14
|
||||
+ $3="darwin"
|
||||
+ ;;
|
||||
freebsd*) # like i686-gentoo-freebsd7
|
||||
# i686-gentoo-freebsd8
|
||||
# i686-gentoo-freebsd8.2
|
||||
--
|
||||
2.14.1
|
||||
|
@ -1,721 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic versionator systemd
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine"
|
||||
HOMEPAGE="http://php.net/"
|
||||
SRC_URI="http://php.net/distributions/${P}.tar.xz"
|
||||
|
||||
LICENSE="PHP-3.01
|
||||
BSD
|
||||
Zend-2.0
|
||||
bcmath? ( LGPL-2.1+ )
|
||||
fpm? ( BSD-2 )
|
||||
gd? ( gd )
|
||||
unicode? ( BSD-2 LGPL-2.1 )"
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2 phpdbg"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} acl bcmath berkdb bzip2 calendar cdb cjk
|
||||
coverage crypt +ctype curl debug
|
||||
enchant exif +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl
|
||||
mhash mssql mysql mysqli nls
|
||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sysvipc systemd test tidy +tokenizer truetype unicode wddx webp
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
# The supported (that is, autodetected) versions of BDB are listed in
|
||||
# the ./configure script. Other versions *work*, but we need to stick to
|
||||
# the ones that can be detected to avoid a repeat of bug #564824.
|
||||
COMMON_DEPEND="
|
||||
>=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
acl? ( sys-apps/acl )
|
||||
apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
|
||||
<www-servers/apache-2.4[threads=] ) )
|
||||
berkdb? ( || ( sys-libs/db:5.3
|
||||
sys-libs/db:5.1
|
||||
sys-libs/db:4.8
|
||||
sys-libs/db:4.7
|
||||
sys-libs/db:4.6
|
||||
sys-libs/db:4.5 ) )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
coverage? ( dev-util/lcov )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( dev-libs/gmp:0 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[kerberos=,ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
tidy? ( || ( app-text/tidy-html5 app-text/htmltidy ) )
|
||||
truetype? ( =media-libs/freetype-2* )
|
||||
unicode? ( dev-libs/oniguruma:= )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
webp? ( media-libs/libwebp )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
virtual/mta
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
# Bison isn't actually needed when building from a release tarball
|
||||
# However, the configure script will warn if it's absent or if you
|
||||
# have an incompatible version installed. See bug 593278.
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-arch/xz-utils
|
||||
>=sys-devel/bison-3.0.1"
|
||||
|
||||
# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
|
||||
REQUIRED_USE="
|
||||
|| ( cli cgi fpm apache2 embed phpdbg )
|
||||
cli? ( ^^ ( readline libedit ) )
|
||||
truetype? ( gd )
|
||||
webp? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysqli !mysql )
|
||||
sharedmem? ( !threads )
|
||||
mysql? ( || ( mysqli pdo ) )
|
||||
"
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
# Always install the production INI file, bug 611214.
|
||||
local phpinisrc="php.ini-production-${phpsapi}"
|
||||
cp php.ini-production "${phpinisrc}" || die
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}" || die
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" \
|
||||
-i "${phpinisrc}" || die
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" || die
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" php.ini
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
if use opcache; then
|
||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
|
||||
"${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" \
|
||||
"${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
||||
fi
|
||||
|
||||
# SAPI-specific handling
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
einfo "Installing FPM config files php-fpm.conf and www.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
doins sapi/fpm/php-fpm.conf
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}/fpm.d"
|
||||
doins sapi/fpm/www.conf
|
||||
fi
|
||||
|
||||
dodoc php.ini-{development,production}
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# In php-7.x, the FPM pool configuration files have been split off
|
||||
# of the main config. By default the pool config files go in
|
||||
# e.g. /etc/php-fpm.d, which isn't slotted. So here we move the
|
||||
# include directory to a subdirectory "fpm.d" of $PHP_INI_DIR. Later
|
||||
# we'll install the pool configuration file "www.conf" there.
|
||||
php_set_ini_dir fpm
|
||||
sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
|
||||
sapi/fpm/php-fpm.conf.in \
|
||||
|| die 'failed to move the include directory in php-fpm.conf'
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# The php-fpm config file wants localstatedir to be ${EPREFIX}/var
|
||||
# and not the Gentoo default ${EPREFIX}/var/lib. See bug 572002.
|
||||
local our_conf=(
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}/man"
|
||||
--infodir="${PHP_DESTDIR}/info"
|
||||
--libdir="${PHP_DESTDIR}/lib"
|
||||
--with-libdir="$(get_libdir)"
|
||||
--localstatedir="${EPREFIX}/var"
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)
|
||||
)
|
||||
|
||||
our_conf+=(
|
||||
$(use_with acl fpm-acl)
|
||||
$(use_enable bcmath bcmath)
|
||||
$(use_with bzip2 bz2 "${EPREFIX}/usr")
|
||||
$(use_enable calendar calendar)
|
||||
$(use_enable coverage gcov)
|
||||
$(use_enable ctype ctype)
|
||||
$(use_with curl curl "${EPREFIX}/usr")
|
||||
$(use_enable xml dom)
|
||||
$(use_with enchant enchant "${EPREFIX}/usr")
|
||||
$(use_enable exif exif)
|
||||
$(use_enable fileinfo fileinfo)
|
||||
$(use_enable filter filter)
|
||||
$(use_enable ftp ftp)
|
||||
$(use_with nls gettext "${EPREFIX}/usr")
|
||||
$(use_with gmp gmp "${EPREFIX}/usr")
|
||||
$(use_enable hash hash)
|
||||
$(use_with mhash mhash "${EPREFIX}/usr")
|
||||
$(use_with iconv iconv \
|
||||
$(use elibc_glibc || use elibc_musl || echo "${EPREFIX}/usr"))
|
||||
$(use_enable intl intl)
|
||||
$(use_enable ipv6 ipv6)
|
||||
$(use_enable json json)
|
||||
$(use_with kerberos kerberos "${EPREFIX}/usr")
|
||||
$(use_enable xml libxml)
|
||||
$(use_with xml libxml-dir "${EPREFIX}/usr")
|
||||
$(use_enable unicode mbstring)
|
||||
$(use_with crypt mcrypt "${EPREFIX}/usr")
|
||||
$(use_with unicode onig "${EPREFIX}/usr")
|
||||
$(use_with ssl openssl "${EPREFIX}/usr")
|
||||
$(use_with ssl openssl-dir "${EPREFIX}/usr")
|
||||
$(use_enable pcntl pcntl)
|
||||
$(use_enable phar phar)
|
||||
$(use_enable pdo pdo)
|
||||
$(use_enable opcache opcache)
|
||||
$(use_with postgres pgsql "${EPREFIX}/usr")
|
||||
$(use_enable posix posix)
|
||||
$(use_with spell pspell "${EPREFIX}/usr")
|
||||
$(use_with recode recode "${EPREFIX}/usr")
|
||||
$(use_enable simplexml simplexml)
|
||||
$(use_enable sharedmem shmop)
|
||||
$(use_with snmp snmp "${EPREFIX}/usr")
|
||||
$(use_enable soap soap)
|
||||
$(use_enable sockets sockets)
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}/usr")
|
||||
$(use_enable sysvipc sysvmsg)
|
||||
$(use_enable sysvipc sysvsem)
|
||||
$(use_enable sysvipc sysvshm)
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}/usr")
|
||||
$(use_enable tokenizer tokenizer)
|
||||
$(use_enable wddx wddx)
|
||||
$(use_enable xml xml)
|
||||
$(use_enable xmlreader xmlreader)
|
||||
$(use_enable xmlwriter xmlwriter)
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}/usr")
|
||||
$(use_enable zip zip)
|
||||
$(use_with zlib zlib "${EPREFIX}/usr")
|
||||
$(use_enable debug debug)
|
||||
)
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
our_conf+=( "--enable-dba${shared}" )
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
our_conf+=(
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 "${EPREFIX}/usr")
|
||||
$(use_enable flatfile flatfile)
|
||||
$(use_with gdbm gdbm "${EPREFIX}/usr")
|
||||
$(use_enable inifile inifile)
|
||||
$(use_with qdbm qdbm "${EPREFIX}/usr")
|
||||
)
|
||||
|
||||
# Support for the GD graphics library
|
||||
our_conf+=(
|
||||
$(use_with truetype freetype-dir "${EPREFIX}/usr")
|
||||
$(use_enable cjk gd-jis-conv)
|
||||
$(use_with gd jpeg-dir "${EPREFIX}/usr")
|
||||
$(use_with gd png-dir "${EPREFIX}/usr")
|
||||
$(use_with xpm xpm-dir "${EPREFIX}/usr")
|
||||
)
|
||||
if use webp; then
|
||||
our_conf+=( --with-webp-dir="${EPREFIX}/usr" )
|
||||
fi
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
our_conf+=( $(use_with gd gd) )
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
our_conf+=(
|
||||
$(use_with imap imap "${EPREFIX}/usr")
|
||||
$(use_with ssl imap-ssl "${EPREFIX}/usr")
|
||||
)
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
our_conf+=(
|
||||
$(use_with ldap ldap "${EPREFIX}/usr")
|
||||
$(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
|
||||
)
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
local mysqllib="mysqlnd"
|
||||
local mysqlilib="mysqlnd"
|
||||
|
||||
our_conf+=( $(use_with mysqli mysqli "${mysqlilib}") )
|
||||
|
||||
local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
||||
if use mysql || use mysqli ; then
|
||||
our_conf+=( $(use_with mysql mysql-sock "${mysqlsock}") )
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
our_conf+=(
|
||||
$(use_with odbc unixODBC "${EPREFIX}/usr")
|
||||
$(use_with iodbc iodbc "${EPREFIX}/usr")
|
||||
)
|
||||
|
||||
# Oracle support
|
||||
our_conf+=( $(use_with oci8-instant-client oci8) )
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
our_conf+=(
|
||||
$(use_with mssql pdo-dblib "${EPREFIX}/usr")
|
||||
$(use_with mysql pdo-mysql "${mysqllib}")
|
||||
$(use_with postgres pdo-pgsql)
|
||||
$(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
|
||||
$(use_with firebird pdo-firebird "${EPREFIX}/usr")
|
||||
$(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
|
||||
$(use_with oci8-instant-client pdo-oci)
|
||||
)
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
our_conf+=(
|
||||
$(use_with readline readline "${EPREFIX}/usr")
|
||||
$(use_with libedit libedit "${EPREFIX}/usr")
|
||||
)
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
our_conf+=( $(use_with sharedmem mm "${EPREFIX}/usr") )
|
||||
else
|
||||
our_conf+=( $(use_enable session session) )
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
our_conf+=( --with-pic )
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
our_conf+=(
|
||||
--with-pcre-regex="${EPREFIX}/usr"
|
||||
--with-pcre-dir="${EPREFIX}/usr"
|
||||
)
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Cache the ./configure test results between SAPIs.
|
||||
our_conf+=( --cache-file="${T}/config.cache" )
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
our_conf+=( ${EXTRA_ECONF:-} )
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build" || die
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
# The BUILD_DIR variable is used to determine where to output
|
||||
# the files that autotools creates. This was all originally
|
||||
# based on the autotools-utils eclass.
|
||||
BUILD_DIR="${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cp -a "${S}" "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
local sapi_conf=(
|
||||
--with-config-file-path="${PHP_INI_DIR}"
|
||||
--with-config-file-scan-dir="${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
)
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm|phpdbg)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf+=( "--enable-${sapi}" )
|
||||
else
|
||||
sapi_conf+=( "--disable-${sapi}" )
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf+=( --with-apxs2="${EPREFIX}/usr/bin/apxs" )
|
||||
else
|
||||
sapi_conf+=( --without-apxs2 )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Construct the $myeconfargs array by concatenating $our_conf
|
||||
# (the common args) and $sapi_conf (the SAPI-specific args).
|
||||
local myeconfargs=( "${our_conf[@]}" )
|
||||
myeconfargs+=( "${sapi_conf[@]}" )
|
||||
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
econf "${myeconfargs[@]}"
|
||||
popd > /dev/null || die
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || \
|
||||
die "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi" || die
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir "/usr/share/php${PHP_MV}"
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}" || die
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp${PHP_MV}$(get_libname)" \
|
||||
"libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
phpdbg)
|
||||
source="sapi/phpdbg/phpdbg"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}"
|
||||
else
|
||||
dobin "${source}"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use opcache ; then
|
||||
into "${PHP_DESTDIR#${EPREFIX}}"
|
||||
dolib.so "modules/opcache$(get_libname)"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" "20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
|
||||
sed -e "s|php5|php${SLOT}|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" || die
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" \
|
||||
"php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" \
|
||||
"php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" ]] ; then
|
||||
export TEST_PHPDBG_EXECUTABLE="${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d \
|
||||
"session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d \
|
||||
"session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null || die
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
elog
|
||||
elog "To enable PHP in apache, you will need to add \"-D PHP\" to"
|
||||
elog "your apache2 command. OpenRC users can append that string to"
|
||||
elog "APACHE2_OPTS in /etc/conf.d/apache2."
|
||||
elog
|
||||
elog "The apache module configuration file 70_mod_php.conf is"
|
||||
elog "provided (and maintained) by eselect-php."
|
||||
elog
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT} || die
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Remove dead symlinks for SAPIs that were just disabled. For
|
||||
# example, if the user has the cgi SAPI enabled, then he has an
|
||||
# eselect-php symlink for it. If he later reinstalls PHP with
|
||||
# USE="-cgi", that symlink will break. This call to eselect is
|
||||
# supposed to remove that dead link per bug 572436.
|
||||
eselect php cleanup || die
|
||||
|
||||
if ! has "php${SLOT/./-}" ${PHP_TARGETS}; then
|
||||
elog "To build extensions for this version of PHP, you will need to"
|
||||
elog "add php${SLOT/./-} to your PHP_TARGETS USE_EXPAND variable."
|
||||
elog
|
||||
fi
|
||||
|
||||
# Warn about the removal of PHP_INI_VERSION if the user has it set.
|
||||
if [[ -n "${PHP_INI_VERSION}" ]]; then
|
||||
ewarn 'The PHP_INI_VERSION variable has been phased out. You may'
|
||||
ewarn 'remove it from your configuration at your convenience. See'
|
||||
ewarn
|
||||
ewarn ' https://bugs.gentoo.org/611214'
|
||||
ewarn
|
||||
ewarn 'for more information.'
|
||||
fi
|
||||
|
||||
elog "For details on how version slotting works, please see"
|
||||
elog "the wiki:"
|
||||
elog
|
||||
elog " https://wiki.gentoo.org/wiki/PHP"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# This serves two purposes. First, if we have just removed the last
|
||||
# installed version of PHP, then this will remove any dead symlinks
|
||||
# belonging to eselect-php. Second, if a user upgrades slots from
|
||||
# (say) 5.6 to 7.0 and depcleans the old slot, then this will update
|
||||
# his existing symlinks to point to the new 7.0 installation. The
|
||||
# latter is bug 432962.
|
||||
#
|
||||
# Note: the eselect-php package may not be installed at this point,
|
||||
# so we can't die() if this command fails.
|
||||
eselect php cleanup
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST boost_1_62_0.tar.bz2 84513338 SHA256 36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0 SHA512 5385ae3d5255a433a704169ad454d8dc2b0b5bcae3fb23defd6570df4ff7d845cf9fcbeebccdc1c5db0eec9f82ee3d90040de9507c8167467c635d3b215463be WHIRLPOOL 49c4558d5e6d72084f083a76217e3d97b504f112d7e4d228eded72dc49fa7e675ba943a9fc52a3c27d296ee689aee27d4566796c6eae71cf647430285777c0fb
|
||||
DIST boost_1_63_0.tar.bz2 81984414 SHA256 beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0 SHA512 c915c5f5778dee49b8e9d0a40f37f90f56fb1fdb1d8ce92d97bf48bc7bc462212487badfe4bbe30b06196d1149cfb221da12ac54e97499b0d4cb6466813bb4ad WHIRLPOOL 28c241785097272a1e0952e529eef082444e4ef35a8d738161e4a491a986d75359d3afe888b2ea91a4a81b6ec7a5772ebea337c9d09377b43f6eed66cac90378
|
||||
DIST boost_1_65_0.tar.bz2 82597718 SHA256 ea26712742e2fb079c2a566a31f3266973b76e38222b9f88b387e3c8b2f9902c SHA512 7142650fb8d61e3ef16ba066fc918e087f19e9bc2ad1d6a11fb10bf0d6b1b5ad05ab032f076a5233a1624b3669e952b2cc38b7dc074bbf53018e2970ee90fcdd WHIRLPOOL ca389eff2ffc4836b88688504c187e57f236a5967654e40377792d59dd2e4fc3d6ccb079174eae095ad610ccd683e795964c5011429845b27ab67166f8a82c19
|
||||
|
@ -0,0 +1,439 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
|
||||
|
||||
inherit eutils flag-o-matic multiprocessing python-r1 toolchain-funcs versionator multilib-minimal
|
||||
|
||||
MY_P="${PN}_$(replace_all_version_separators _)"
|
||||
MAJOR_V="$(get_version_component_range 1-2)"
|
||||
|
||||
DESCRIPTION="Boost Libraries for C++"
|
||||
HOMEPAGE="http://www.boost.org/"
|
||||
SRC_URI="https://downloads.sourceforge.net/project/boost/${PN}/${PV}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="Boost-1.0"
|
||||
SLOT="0/${PV}" # ${PV} instead ${MAJOR_V} due to bug 486122
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris ~x86-winnt"
|
||||
|
||||
IUSE="context debug doc icu +nls mpi python static-libs +threads tools"
|
||||
|
||||
RDEPEND="icu? ( >=dev-libs/icu-3.6:=[${MULTILIB_USEDEP}] )
|
||||
!icu? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
||||
mpi? ( >=virtual/mpi-2.0-r4[${MULTILIB_USEDEP},cxx,threads] )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
app-arch/bzip2[${MULTILIB_USEDEP}]
|
||||
sys-libs/zlib[${MULTILIB_USEDEP}]
|
||||
!app-admin/eselect-boost"
|
||||
DEPEND="${RDEPEND}
|
||||
=dev-util/boost-build-${MAJOR_V}*"
|
||||
REQUIRED_USE="
|
||||
mpi? ( threads )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
# the tests will never fail because these are not intended as sanity
|
||||
# tests at all. They are more a way for upstream to check their own code
|
||||
# on new compilers. Since they would either be completely unreliable
|
||||
# (failing for no good reason) or completely useless (never failing)
|
||||
# there is no point in having them in the ebuild to begin with.
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_icu_rpath.patch"
|
||||
"${FILESDIR}/${PN}-1.55.0-context-x32.patch"
|
||||
"${FILESDIR}/${PN}-1.56.0-build-auto_index-tool.patch"
|
||||
"${FILESDIR}/${PN}-1.65.0-fix-python.patch"
|
||||
)
|
||||
|
||||
python_bindings_needed() {
|
||||
multilib_is_native_abi && use python
|
||||
}
|
||||
|
||||
tools_needed() {
|
||||
multilib_is_native_abi && use tools
|
||||
}
|
||||
|
||||
create_user-config.jam() {
|
||||
local compiler compiler_version compiler_executable
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
compiler="darwin"
|
||||
compiler_version="$(gcc-fullversion)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
else
|
||||
compiler="gcc"
|
||||
compiler_version="$(gcc-version)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
fi
|
||||
local mpi_configuration python_configuration
|
||||
|
||||
if use mpi; then
|
||||
mpi_configuration="using mpi ;"
|
||||
fi
|
||||
|
||||
if python_bindings_needed; then
|
||||
# boost expects libpython$(pyver) and doesn't allow overrides
|
||||
# and the build system is so creepy that it's easier just to
|
||||
# provide a symlink (linker's going to use SONAME anyway)
|
||||
# TODO: replace it with proper override one day
|
||||
ln -f -s "$(python_get_library_path)" "${T}/lib${EPYTHON}$(get_libname)" || die
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
python_configuration="using python : ${EPYTHON#python} : : ${SYSROOT:-${EROOT}}/usr/include/${EPYTHON} : ${SYSROOT:-${EROOT}}/usr/$(get_libdir) ;"
|
||||
else
|
||||
# note: we need to provide version explicitly because of
|
||||
# a bug in the build system:
|
||||
# https://github.com/boostorg/build/pull/104
|
||||
python_configuration="using python : ${EPYTHON#python} : ${PYTHON} : $(python_get_includedir) : ${T} ;"
|
||||
fi
|
||||
fi
|
||||
|
||||
cat > "${BOOST_ROOT}/user-config.jam" << __EOF__ || die
|
||||
using ${compiler} : ${compiler_version} : ${compiler_executable} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
|
||||
${mpi_configuration}
|
||||
${python_configuration}
|
||||
__EOF__
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# Bail out on unsupported build configuration, bug #456792
|
||||
if [[ -f "${EROOT%/}/etc/site-config.jam" ]]; then
|
||||
grep -q gentoorelease "${EROOT%/}/etc/site-config.jam" && grep -q gentoodebug "${EROOT%/}/etc/site-config.jam" ||
|
||||
(
|
||||
eerror "You are using custom ${EROOT%/}/etc/site-config.jam without defined gentoorelease/gentoodebug targets."
|
||||
eerror "Boost can not be built in such configuration."
|
||||
eerror "Please, either remove this file or add targets from ${EROOT%/}/usr/share/boost-build/site-config.jam to it."
|
||||
die
|
||||
)
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Do not try to build missing 'wave' tool, bug #522682
|
||||
# Upstream bugreport - https://svn.boost.org/trac/boost/ticket/10507
|
||||
sed -i -e 's:wave/build//wave::' tools/Jamfile.v2 || die
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
ejam() {
|
||||
local b2_opts=(
|
||||
"--user-config=${BOOST_ROOT}/user-config.jam"
|
||||
"$@"
|
||||
)
|
||||
echo b2 "${b2_opts[@]}"
|
||||
b2 "${b2_opts[@]}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Workaround for too many parallel processes requested, bug #506064
|
||||
[[ "$(makeopts_jobs)" -gt 64 ]] && MAKEOPTS="${MAKEOPTS} -j64"
|
||||
|
||||
OPTIONS=(
|
||||
$(usex debug gentoodebug gentoorelease)
|
||||
"-j$(makeopts_jobs)"
|
||||
-q
|
||||
-d+2
|
||||
)
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
# We need to add the prefix, and in two cases this exceeds, so prepare
|
||||
# for the largest possible space allocation.
|
||||
append-ldflags -Wl,-headerpad_max_install_names
|
||||
elif [[ ${CHOST} == *-winnt* ]]; then
|
||||
compiler=parity
|
||||
if [[ $($(tc-getCXX) -v) == *trunk* ]]; then
|
||||
compilerVersion=trunk
|
||||
else
|
||||
compilerVersion=$($(tc-getCXX) -v | sed '1q' \
|
||||
| sed -e 's,\([a-z]*\) \([0-9]\.[0-9]\.[0-9][^ \t]*\) .*,\2,')
|
||||
fi
|
||||
compilerExecutable=$(tc-getCXX)
|
||||
fi
|
||||
|
||||
# bug 298489
|
||||
if use ppc || use ppc64; then
|
||||
[[ $(gcc-version) > 4.3 ]] && append-flags -mno-altivec
|
||||
fi
|
||||
|
||||
# Use C++14 globally as of 1.62
|
||||
append-cxxflags -std=c++14
|
||||
|
||||
use icu && OPTIONS+=(
|
||||
"-sICU_PATH=${EPREFIX}/usr"
|
||||
)
|
||||
use icu || OPTIONS+=(
|
||||
--disable-icu
|
||||
boost.locale.icu=off
|
||||
)
|
||||
use mpi || OPTIONS+=(
|
||||
--without-mpi
|
||||
)
|
||||
use nls || OPTIONS+=(
|
||||
--without-locale
|
||||
)
|
||||
use context || OPTIONS+=(
|
||||
--without-context
|
||||
--without-coroutine
|
||||
--without-fiber
|
||||
)
|
||||
use threads || OPTIONS+=(
|
||||
--without-thread
|
||||
)
|
||||
|
||||
OPTIONS+=(
|
||||
pch=off
|
||||
--boost-build="${EPREFIX}"/usr/share/boost-build
|
||||
--prefix="${ED%/}/usr"
|
||||
--layout=system
|
||||
# building with threading=single is currently not possible
|
||||
# https://svn.boost.org/trac/boost/ticket/7105
|
||||
threading=multi
|
||||
link=$(usex static-libs shared,static shared)
|
||||
)
|
||||
|
||||
[[ ${CHOST} == *-winnt* ]] && OPTIONS+=(
|
||||
-sNO_BZIP2=1
|
||||
)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
local -x BOOST_ROOT="${BUILD_DIR}"
|
||||
PYTHON_DIRS=""
|
||||
MPI_PYTHON_MODULE=""
|
||||
|
||||
building() {
|
||||
create_user-config.jam
|
||||
|
||||
local PYTHON_OPTIONS
|
||||
if python_bindings_needed; then
|
||||
PYTHON_OPTIONS=" --python-buildid=${EPYTHON#python}"
|
||||
else
|
||||
PYTHON_OPTIONS=" --without-python"
|
||||
fi
|
||||
|
||||
ejam \
|
||||
"${OPTIONS[@]}" \
|
||||
${PYTHON_OPTIONS} \
|
||||
|| die "Building of Boost libraries failed"
|
||||
|
||||
if python_bindings_needed; then
|
||||
if [[ -z "${PYTHON_DIRS}" ]]; then
|
||||
PYTHON_DIRS="$(find bin.v2/libs -name python | sort)"
|
||||
else
|
||||
if [[ "${PYTHON_DIRS}" != "$(find bin.v2/libs -name python | sort)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
mv ${dir} ${dir}-${EPYTHON} \
|
||||
|| die "Renaming of '${dir}' to '${dir}-${EPYTHON}' failed"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
if [[ -z "${MPI_PYTHON_MODULE}" ]]; then
|
||||
MPI_PYTHON_MODULE="$(find bin.v2/libs/mpi/build/*/gentoo* -name mpi.so)"
|
||||
if [[ "$(echo "${MPI_PYTHON_MODULE}" | wc -l)" -ne 1 ]]; then
|
||||
die "Multiple mpi.so files found"
|
||||
fi
|
||||
else
|
||||
if [[ "${MPI_PYTHON_MODULE}" != "$(find bin.v2/libs/mpi/build/*/gentoo* -name mpi.so)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
mv stage/lib/mpi.so stage/lib/mpi.so-${EPYTHON} \
|
||||
|| die "Renaming of 'stage/lib/mpi.so' to 'stage/lib/mpi.so-${EPYTHON}' failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
if python_bindings_needed; then
|
||||
python_foreach_impl building
|
||||
else
|
||||
building
|
||||
fi
|
||||
|
||||
if tools_needed; then
|
||||
pushd tools >/dev/null || die
|
||||
|
||||
ejam \
|
||||
"${OPTIONS[@]}" \
|
||||
${PYTHON_OPTIONS} \
|
||||
|| die "Building of Boost tools failed"
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if ! use python; then
|
||||
rm -r "${ED%/}"/usr/include/boost/python* || die
|
||||
fi
|
||||
|
||||
if ! use nls; then
|
||||
rm -r "${ED%/}"/usr/include/boost/locale || die
|
||||
fi
|
||||
|
||||
if ! use context; then
|
||||
rm -r "${ED%/}"/usr/include/boost/context || die
|
||||
rm -r "${ED%/}"/usr/include/boost/coroutine{,2} || die
|
||||
rm "${ED%/}"/usr/include/boost/asio/spawn.hpp || die
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
# find extraneous files that shouldn't be installed
|
||||
# as part of the documentation and remove them.
|
||||
find libs/*/* \( -iname 'test' -o -iname 'src' \) -exec rm -rf '{}' + || die
|
||||
find doc \( -name 'Jamfile.v2' -o -name 'build' -o -name '*.manifest' \) -exec rm -rf '{}' + || die
|
||||
find tools \( -name 'Jamfile.v2' -o -name 'src' -o -name '*.cpp' -o -name '*.hpp' \) -exec rm -rf '{}' + || die
|
||||
|
||||
docinto html
|
||||
dodoc *.{htm,html,png,css}
|
||||
dodoc -r doc libs more tools
|
||||
|
||||
# To avoid broken links
|
||||
dodoc LICENSE_1_0.txt
|
||||
|
||||
dosym /usr/include/boost /usr/share/doc/${PF}/html/boost
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
local -x BOOST_ROOT="${BUILD_DIR}"
|
||||
installation() {
|
||||
create_user-config.jam
|
||||
|
||||
local PYTHON_OPTIONS
|
||||
if python_bindings_needed; then
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
cp -pr ${dir}-${EPYTHON} ${dir} \
|
||||
|| die "Copying of '${dir}-${EPYTHON}' to '${dir}' failed"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
cp -p stage/lib/mpi.so-${EPYTHON} "${MPI_PYTHON_MODULE}" \
|
||||
|| die "Copying of 'stage/lib/mpi.so-${EPYTHON}' to '${MPI_PYTHON_MODULE}' failed"
|
||||
cp -p stage/lib/mpi.so-${EPYTHON} stage/lib/mpi.so \
|
||||
|| die "Copying of 'stage/lib/mpi.so-${EPYTHON}' to 'stage/lib/mpi.so' failed"
|
||||
fi
|
||||
PYTHON_OPTIONS=" --python-buildid=${EPYTHON#python}"
|
||||
else
|
||||
PYTHON_OPTIONS=" --without-python"
|
||||
fi
|
||||
|
||||
ejam \
|
||||
"${OPTIONS[@]}" \
|
||||
${PYTHON_OPTIONS} \
|
||||
--includedir="${ED%/}/usr/include" \
|
||||
--libdir="${ED%/}/usr/$(get_libdir)" \
|
||||
install || die "Installation of Boost libraries failed"
|
||||
|
||||
if python_bindings_needed; then
|
||||
rm -r ${PYTHON_DIRS} || die
|
||||
|
||||
# Move mpi.so Python module to Python site-packages directory.
|
||||
# https://svn.boost.org/trac/boost/ticket/2838
|
||||
if use mpi; then
|
||||
local moddir=$(python_get_sitedir)/boost
|
||||
# moddir already includes eprefix
|
||||
mkdir -p "${D}${moddir}" || die
|
||||
mv "${ED%/}/usr/$(get_libdir)/mpi.so" "${D}${moddir}" || die
|
||||
cat << EOF > "${D}${moddir}/__init__.py" || die
|
||||
import sys
|
||||
if sys.platform.startswith('linux'):
|
||||
import DLFCN
|
||||
flags = sys.getdlopenflags()
|
||||
sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL)
|
||||
from . import mpi
|
||||
sys.setdlopenflags(flags)
|
||||
del DLFCN, flags
|
||||
else:
|
||||
from . import mpi
|
||||
del sys
|
||||
EOF
|
||||
fi
|
||||
|
||||
python_optimize
|
||||
fi
|
||||
}
|
||||
if python_bindings_needed; then
|
||||
python_foreach_impl installation
|
||||
else
|
||||
installation
|
||||
fi
|
||||
|
||||
pushd "${ED%/}/usr/$(get_libdir)" >/dev/null || die
|
||||
|
||||
local ext=$(get_libname)
|
||||
if use threads; then
|
||||
local f
|
||||
for f in *${ext}; do
|
||||
dosym ${f} /usr/$(get_libdir)/${f/${ext}/-mt${ext}}
|
||||
done
|
||||
fi
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
if tools_needed; then
|
||||
dobin dist/bin/*
|
||||
|
||||
insinto /usr/share
|
||||
doins -r dist/share/boostbook
|
||||
fi
|
||||
|
||||
# boost's build system truely sucks for not having a destdir. Because for
|
||||
# this reason we are forced to build with a prefix that includes the
|
||||
# DESTROOT, dynamic libraries on Darwin end messed up, referencing the
|
||||
# DESTROOT instread of the actual EPREFIX. There is no way out of here
|
||||
# but to do it the dirty way of manually setting the right install_names.
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
einfo "Working around completely broken build-system(tm)"
|
||||
local d
|
||||
for d in "${ED%/}"/usr/lib/*.dylib; do
|
||||
if [[ -f ${d} ]]; then
|
||||
# fix the "soname"
|
||||
ebegin " correcting install_name of ${d#${ED}}"
|
||||
install_name_tool -id "/${d#${D}}" "${d}"
|
||||
eend $?
|
||||
# fix references to other libs
|
||||
refs=$(otool -XL "${d}" | \
|
||||
sed -e '1d' -e 's/^\t//' | \
|
||||
grep "^libboost_" | \
|
||||
cut -f1 -d' ')
|
||||
local r
|
||||
for r in ${refs}; do
|
||||
ebegin " correcting reference to ${r}"
|
||||
install_name_tool -change \
|
||||
"${r}" \
|
||||
"${EPREFIX}/usr/lib/${r}" \
|
||||
"${d}"
|
||||
eend $?
|
||||
done
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Yai for having symlinks that are nigh-impossible to remove without
|
||||
# resorting to dirty hacks like these. Removes lingering symlinks
|
||||
# from the slotted versions.
|
||||
local symlink
|
||||
for symlink in "${EROOT%/}/usr/include/boost" "${EROOT%/}/usr/share/boostbook"; do
|
||||
if [[ -L ${symlink} ]]; then
|
||||
rm -f "${symlink}" || die
|
||||
fi
|
||||
done
|
||||
|
||||
# some ancient installs still have boost cruft lying around
|
||||
# for unknown reasons, causing havoc for reverse dependencies
|
||||
# Bug: 607734
|
||||
rm -rf "${EROOT%/}"/usr/include/boost-1_[3-5]? || die
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
--- a/boostcpp.jam
|
||||
+++ b/boostcpp.jam
|
||||
@@ -104,7 +104,7 @@
|
||||
python-id = [ option.get "python-buildid" ] ;
|
||||
if $(python-id)
|
||||
{
|
||||
- PYTHON_ID = [ regex.replace $(python-id) [*\\/:.\"\'] _ ] ;
|
||||
+ PYTHON_ID = [ regex.replace $(python-id) [*\\/:\"\'] _ ] ;
|
||||
}
|
||||
|
||||
|
||||
--- a/libs/python/build/Jamfile
|
||||
+++ b/libs/python/build/Jamfile
|
||||
@@ -31,26 +31,23 @@
|
||||
;
|
||||
}
|
||||
|
||||
-py2-version = [ py-version 2 ] ;
|
||||
-py3-version = [ py-version 3 ] ;
|
||||
-
|
||||
project boost/python
|
||||
: source-location ../src
|
||||
;
|
||||
|
||||
rule cond ( test ? : yes * : no * ) { if $(test) { return $(yes) ; } else { return $(no) ; } }
|
||||
rule unless ( test ? : yes * : no * ) { if ! $(test) { return $(yes) ; } else { return $(no) ; } }
|
||||
-local rule eq ( a : b ) { if $(a) = $(b) { return 1 ; } }
|
||||
-
|
||||
-lib_boost_python(2) = boost_python ;
|
||||
-lib_boost_python(3) = boost_python3 ;
|
||||
-
|
||||
-lib_boost_python($(py2-version)) = $(lib_boost_python(2)) ;
|
||||
-lib_boost_python($(py3-version)) = $(lib_boost_python(3)) ;
|
||||
|
||||
-rule lib_boost_python ( version )
|
||||
+rule lib_boost_python
|
||||
{
|
||||
- lib $(lib_boost_python($(version)))
|
||||
+ local python_major_version = [ MATCH "^([^.]+)" : [ feature.values python ] ] ;
|
||||
+ local python2 ;
|
||||
+ if $(python_major_version) = 2
|
||||
+ {
|
||||
+ python2 = true ;
|
||||
+ }
|
||||
+
|
||||
+ lib boost_python
|
||||
: # sources
|
||||
list.cpp
|
||||
long.cpp
|
||||
@@ -96,7 +93,8 @@
|
||||
# python_for_extensions is a target defined by Boost.Build to
|
||||
# provide the Python include paths, and on Windows, the Python
|
||||
# import library, as usage requirements.
|
||||
- [ cond [ python.configured ] : <library>/python//python_for_extensions ]
|
||||
+ [ cond $(python2) : <cxxflags>-fno-strict-aliasing ]
|
||||
+ [ cond [ python.configured ] : <library>/python//python ]
|
||||
|
||||
# we prevent building when there is no python available
|
||||
# as it's not possible anyway, and to cause dependents to
|
||||
@@ -105,13 +103,10 @@
|
||||
<dependency>config-warning
|
||||
|
||||
<python-debugging>on:<define>BOOST_DEBUG_PYTHON
|
||||
- <python>$(version)
|
||||
|
||||
-<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
|
||||
<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).python-tag
|
||||
|
||||
- <conditional>@python.require-py
|
||||
-
|
||||
: # default build
|
||||
<link>shared
|
||||
: # usage requirements
|
||||
@@ -120,68 +115,8 @@
|
||||
;
|
||||
}
|
||||
|
||||
-lib_boost_numpy(2) = boost_numpy ;
|
||||
-lib_boost_numpy(3) = boost_numpy3 ;
|
||||
-
|
||||
-lib_boost_numpy($(py2-version)) = $(lib_boost_numpy(2)) ;
|
||||
-lib_boost_numpy($(py3-version)) = $(lib_boost_numpy(3)) ;
|
||||
-
|
||||
-rule lib_boost_numpy ( version )
|
||||
-{
|
||||
- numpy-include = [ python.numpy-include ] ;
|
||||
- lib $(lib_boost_numpy($(version)))
|
||||
- : # sources
|
||||
- numpy/dtype.cpp
|
||||
- numpy/matrix.cpp
|
||||
- numpy/ndarray.cpp
|
||||
- numpy/numpy.cpp
|
||||
- numpy/scalars.cpp
|
||||
- numpy/ufunc.cpp
|
||||
- : # requirements
|
||||
- <link>static:<define>BOOST_NUMPY_STATIC_LIB
|
||||
- <define>BOOST_NUMPY_SOURCE
|
||||
- [ cond [ python.numpy ] : <library>/python//python_for_extensions ]
|
||||
- [ unless [ python.numpy ] : <build>no ]
|
||||
- <include>$(numpy-include)
|
||||
- <library>$(lib_boost_python($(version)))
|
||||
- <python-debugging>on:<define>BOOST_DEBUG_PYTHON
|
||||
- <python>$(version)
|
||||
+libraries = boost_python ;
|
||||
|
||||
- -<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
|
||||
- <tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).python-tag
|
||||
-
|
||||
- <conditional>@python.require-py
|
||||
-
|
||||
- : # default build
|
||||
- <link>shared
|
||||
- : # usage requirements
|
||||
- <link>static:<define>BOOST_NUMPY_STATIC_LIB
|
||||
- <python-debugging>on:<define>BOOST_DEBUG_PYTHON
|
||||
- ;
|
||||
-}
|
||||
-
|
||||
-libraries = ;
|
||||
-
|
||||
-for local N in 2 3
|
||||
-{
|
||||
- if $(py$(N)-version)
|
||||
- {
|
||||
- lib_boost_python $(py$(N)-version) ;
|
||||
- libraries += $(lib_boost_python($(py$(N)-version))) ;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- alias $(lib_boost_python($(N))) ;
|
||||
- }
|
||||
- if $(py$(N)-version) && [ python.numpy ]
|
||||
- {
|
||||
- lib_boost_numpy $(py$(N)-version) ;
|
||||
- libraries += $(lib_boost_numpy($(py$(N)-version))) ;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- alias $(lib_boost_numpy($(N))) ;
|
||||
- }
|
||||
-}
|
||||
+lib_boost_python ;
|
||||
|
||||
boost-install $(libraries) ;
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
GNOME2_EAUTORECONF="yes"
|
||||
|
||||
inherit gnome2 vala
|
||||
|
||||
DESCRIPTION="GLib-based library for accessing online service APIs using the GData protocol"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/libgdata"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0/22" # subslot = libgdata soname version
|
||||
|
||||
IUSE="+crypt gnome-online-accounts +introspection static-libs test vala"
|
||||
REQUIRED_USE="
|
||||
gnome-online-accounts? ( crypt )
|
||||
vala? ( introspection )
|
||||
"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.38.0:2
|
||||
>=dev-libs/json-glib-0.15
|
||||
>=dev-libs/libxml2-2:2
|
||||
>=net-libs/liboauth-0.9.4
|
||||
>=net-libs/libsoup-2.55.90:2.4[introspection?]
|
||||
>=x11-libs/gdk-pixbuf-2.14:2
|
||||
crypt? ( app-crypt/gcr:= )
|
||||
gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.8:= )
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/gtk-doc-am-1.25
|
||||
>=dev-util/intltool-0.40
|
||||
virtual/pkgconfig
|
||||
test? ( >=net-libs/uhttpmock-0.5 )
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-disable-demos.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
--disable-build-demos \
|
||||
$(use_enable crypt gnome) \
|
||||
$(use_enable gnome-online-accounts goa) \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable vala) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable test always-build-tests)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset ORBIT_SOCKETDIR
|
||||
export GSETTINGS_BACKEND="memory" #486412
|
||||
dbus-launch emake check
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
From d8d805e1f2e6799bb2dff4871a8598dc83088a39 Mon Sep 17 00:00:00 2001
|
||||
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
|
||||
Date: Thu, 22 Jun 2017 16:31:37 +0200
|
||||
Subject: [PATCH] _asn1_check_identifier: safer access to values read
|
||||
|
||||
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
|
||||
---
|
||||
lib/parser_aux.c | 17 ++++++++++++-----
|
||||
1 file changed, 12 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
|
||||
index 976ab38..786ea64 100644
|
||||
--- a/lib/parser_aux.c
|
||||
+++ b/lib/parser_aux.c
|
||||
@@ -955,7 +955,7 @@ _asn1_check_identifier (asn1_node node)
|
||||
if (p2 == NULL)
|
||||
{
|
||||
if (p->value)
|
||||
- _asn1_strcpy (_asn1_identifierMissing, p->value);
|
||||
+ _asn1_str_cpy (_asn1_identifierMissing, sizeof(_asn1_identifierMissing), (char*)p->value);
|
||||
else
|
||||
_asn1_strcpy (_asn1_identifierMissing, "(null)");
|
||||
return ASN1_IDENTIFIER_NOT_FOUND;
|
||||
@@ -968,9 +968,15 @@ _asn1_check_identifier (asn1_node node)
|
||||
if (p2 && (type_field (p2->type) == ASN1_ETYPE_DEFAULT))
|
||||
{
|
||||
_asn1_str_cpy (name2, sizeof (name2), node->name);
|
||||
- _asn1_str_cat (name2, sizeof (name2), ".");
|
||||
- _asn1_str_cat (name2, sizeof (name2), (char *) p2->value);
|
||||
- _asn1_strcpy (_asn1_identifierMissing, p2->value);
|
||||
+ if (p2->value)
|
||||
+ {
|
||||
+ _asn1_str_cat (name2, sizeof (name2), ".");
|
||||
+ _asn1_str_cat (name2, sizeof (name2), (char *) p2->value);
|
||||
+ _asn1_str_cpy (_asn1_identifierMissing, sizeof(_asn1_identifierMissing), (char*)p2->value);
|
||||
+ }
|
||||
+ else
|
||||
+ _asn1_strcpy (_asn1_identifierMissing, "(null)");
|
||||
+
|
||||
p2 = asn1_find_node (node, name2);
|
||||
if (!p2 || (type_field (p2->type) != ASN1_ETYPE_OBJECT_ID) ||
|
||||
!(p2->type & CONST_ASSIGN))
|
||||
@@ -990,7 +996,8 @@ _asn1_check_identifier (asn1_node node)
|
||||
_asn1_str_cpy (name2, sizeof (name2), node->name);
|
||||
_asn1_str_cat (name2, sizeof (name2), ".");
|
||||
_asn1_str_cat (name2, sizeof (name2), (char *) p2->value);
|
||||
- _asn1_strcpy (_asn1_identifierMissing, p2->value);
|
||||
+ _asn1_str_cpy (_asn1_identifierMissing, sizeof(_asn1_identifierMissing), (char*)p2->value);
|
||||
+
|
||||
p2 = asn1_find_node (node, name2);
|
||||
if (!p2 || (type_field (p2->type) != ASN1_ETYPE_OBJECT_ID)
|
||||
|| !(p2->type & CONST_ASSIGN))
|
||||
--
|
||||
1.9.1
|
||||
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib-minimal libtool ltprune
|
||||
|
||||
DESCRIPTION="ASN.1 library"
|
||||
HOMEPAGE="https://www.gnu.org/software/libtasn1/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3 LGPL-2.1"
|
||||
SLOT="0/6" # subslot = libtasn1 soname version
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc static-libs valgrind"
|
||||
|
||||
DEPEND=">=dev-lang/perl-5.6
|
||||
sys-apps/help2man
|
||||
virtual/yacc"
|
||||
RDEPEND="
|
||||
valgrind? ( dev-util/valgrind )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r16
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README THANKS )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-CVE-2017-10790.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if use doc; then
|
||||
DOCS+=( doc/libtasn1.pdf )
|
||||
HTML_DOCS=( doc/reference/html/. )
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize # for Solaris shared library
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(multilib_native_use_enable valgrind valgrind-tests)
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
prune_libtool_files
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libzip-1.2.0.tar.xz 938284 SHA256 ffc0764395fba3d45dc5a6e32282788854618b9e9838337f8218b596007f1376 SHA512 1ba8626d72e6b47f735568afaf007d1e18beb3ebedf6b69a6b575f9e04d3b84550371191a89be153f8fcedb4a8eac2f996e141da95cdbb52380b6283cc99cf8b WHIRLPOOL 794a462fc4d1529008fccbe6df41c5616b34712ef34721e0cbe555aa12ada7928d22f6e9421de210efdf7b460188a4d6a9a6e53fc0266bcf52d47d6a7e30a5f6
|
||||
DIST libzip-1.3.0.tar.xz 955876 SHA256 aa936efe34911be7acac2ab07fb5c8efa53ed9bb4d44ad1fe8bff19630e0d373 SHA512 8e12a23fe62b993ff4592e1b9da152533a363b0603fc1f65e6cbb6121d4260c45f98171effbccb76dec4030b0fcdcd273919755a2496ab462431646ac83bb900 WHIRLPOOL eca44e4c7e3a09d90f7a9c694de01c97fdc97ce7989bd8ccf9acb8e33e10145f6860c4dd5bb282d2ab0a708d9ddb6b7ecde88bf5276365179057c02f534e182d
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Library for manipulating zip archives"
|
||||
HOMEPAGE="https://nih.at/libzip/"
|
||||
SRC_URI="https://www.nih.at/libzip/${P}.tar.xz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/5"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
|
||||
IUSE="bzip2 static-libs"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
elibc_musl? ( sys-libs/fts-standalone )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( AUTHORS NEWS.md API-CHANGES THANKS )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.2.0-headers.patch"
|
||||
"${FILESDIR}/${PN}-1.2.0-fts.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# fails in portage build only
|
||||
sed -i -e "/encryption-nonrandom-aes.*.test/d" regress/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with bzip2)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use static-libs || rm "${ED%/}"/usr/$(get_libdir)/libzip.a || die
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST apsw-3.11.1_p1.zip 679045 SHA256 92685d555bb5bdbf5ec85563cd826f76630c33a589ef2528e8f14f73a8bcc95f SHA512 3976b14ade967b2e39fdd18436e7a9a2f8f4f5b289ee93725878bd8bfa15ccb7548156df8cca981f494a4cdcc7aaed5370fde2b805e6eea022892ece1231bd96 WHIRLPOOL 8ad615ba3b5f15cdd36c15a370b036a4fddf92b69b6b0058d3fdf8d83bd2b39251d11b3cd291319c08ad09baf3f26d1b0cff3d54777e6c7169e335e985a0d1e9
|
||||
DIST apsw-3.17.0_p1.zip 689144 SHA256 ceed784f28afec5045571892da4740a0e03d6d6d581ed24a818c67f0a189dd1c SHA512 9fc63f3596aaa931b526efed5ffc0654d80477ae2cd27361430d8376641eedf7bba482edcf65e99f0cac4ed42597805c6c95f28ff9843502c779335df5d38b77 WHIRLPOOL c9dafef922dbdaa0655fd1773498d2e4d9e209ea5ca90a3478852f33629369bd99b0670a4f116da491b4db07bb4b8137863b2831922bf15b88bba4e3b8463b6e
|
||||
DIST apsw-3.19.3_p1.zip 678966 SHA256 355b66379e9e44c1f32bc67421e4ad0a348a19bf279a4256a49d0eb83fff404e SHA512 9f9e05c865a19e7b6e6b37e6228027c027ba683be2d5ff7a1767bb3bbeb090bf66879a0eead4fc9e34fc4d84c1edc98137b2839f84ffab9bd36330d05435ab4e WHIRLPOOL 6703b13f42711f95a86a1c4a0e20bfc378823c24ee78c1ad7bb4e956bd9a927abe777a0c8c9b81c7d24130b76ba2019e048465e0cc59575a8e419f1b97847d7a
|
||||
DIST apsw-3.20.1_p1.zip 680035 SHA256 3ea97084f76049328a5d40eee8c6c86ae303e5be66d2900b521bbc6ebfefaf0a SHA512 12284a99efba13abe417a786939e2ab10d677014feb9393e41cc7b127fb974cb961f371c142904bbe48a96038d49605c885fa43739a14ef8e11fb37ea274ce92 WHIRLPOOL d679e4c016d2041c95c9e331e02864ac4eb9308748ca1122b6faf4acaaad087840702cffbe01d21c4e4345d505750911a6d0611d469c94af995416de4af2dbf8
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PV=${PV/_p/-r}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="APSW - Another Python SQLite Wrapper"
|
||||
HOMEPAGE="https://github.com/rogerbinns/apsw/"
|
||||
SRC_URI="https://github.com/rogerbinns/apsw/releases/download/${MY_PV}/${MY_P}.zip -> ${P}.zip"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=">=dev-db/sqlite-${PV%_p*}"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-3.6.20.1-fix_tests.patch" )
|
||||
|
||||
python_compile() {
|
||||
python_is_python3 || append-cflags -fno-strict-aliasing
|
||||
distutils-r1_python_compile --enable=load_extension
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" setup.py build_test_extension || die "Building of test loadable extension failed"
|
||||
"${PYTHON}" tests.py -v || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue