parent
890a240af6
commit
08fea04e58
@ -0,0 +1,455 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools eutils linux-info systemd
|
||||
|
||||
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
|
||||
HOMEPAGE="http://www.rsyslog.com/"
|
||||
|
||||
BRANCH="8-stable"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="
|
||||
git://github.com/rsyslog/${PN}.git
|
||||
https://github.com/rsyslog/${PN}.git
|
||||
"
|
||||
|
||||
DOC_REPO_URI="
|
||||
git://github.com/rsyslog/${PN}-doc.git
|
||||
https://github.com/rsyslog/${PN}-doc.git
|
||||
"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
MY_PV=${PV%_rc*}
|
||||
MY_FILENAME="${PN}-${PV}.tar.gz"
|
||||
MY_FILENAME_DOCS="${PN}-docs-${PV}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
# Upstream URL schema:
|
||||
# RC: http://www.rsyslog.com/files/download/rsyslog/rc/rsyslog-8.18.0.tar.gz
|
||||
# http://www.rsyslog.com/files/download/rsyslog/rc2/rsyslog-8.18.0.tar.gz
|
||||
# Release: http://www.rsyslog.com/files/download/rsyslog/rsyslog-8.18.0.tar.gz
|
||||
|
||||
MY_URL_PREFIX=
|
||||
if [[ ${PV} = *_rc* ]]; then
|
||||
_tmp_last_index=$(($(get_last_version_component_index ${PV})+1))
|
||||
_tmp_suffix=$(get_version_component_range ${_tmp_last_index} ${PV})
|
||||
if [[ ${_tmp_suffix} = *rc* ]]; then
|
||||
MY_URL_PREFIX="${_tmp_suffix}/"
|
||||
fi
|
||||
|
||||
# Cleaning up temporary variables
|
||||
unset _tmp_last_index
|
||||
unset _tmp_suffix
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86"
|
||||
fi
|
||||
|
||||
SRC_URI="
|
||||
http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-${MY_PV}.tar.gz -> ${MY_FILENAME}
|
||||
doc? ( http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} )
|
||||
"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3 LGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="dbi debug doc elasticsearch +gcrypt grok jemalloc kafka kerberos libressl mdblookup mongodb mysql normalize omhttpfs"
|
||||
IUSE+=" omudpspoof postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid zeromq"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libfastjson-0.99.3:=
|
||||
>=dev-libs/libestr-0.1.9
|
||||
>=dev-libs/liblogging-1.0.1:=[stdlog]
|
||||
>=sys-libs/zlib-1.2.5
|
||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
||||
elasticsearch? ( >=net-misc/curl-7.35.0 )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
|
||||
grok? ( >=dev-libs/grok-0.9.2 )
|
||||
jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
|
||||
kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
|
||||
kerberos? ( virtual/krb5 )
|
||||
mdblookup? ( dev-libs/libmaxminddb:= )
|
||||
mongodb? ( >=dev-libs/libmongo-client-0.1.4 )
|
||||
mysql? ( virtual/mysql )
|
||||
normalize? (
|
||||
>=dev-libs/libee-0.4.0
|
||||
>=dev-libs/liblognorm-2.0.3:=
|
||||
)
|
||||
omhttpfs? ( >=net-misc/curl-7.35.0 )
|
||||
omudpspoof? ( >=net-libs/libnet-1.1.6 )
|
||||
postgres? ( >=dev-db/postgresql-8.4.20:= )
|
||||
rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
|
||||
redis? ( >=dev-libs/hiredis-0.11.0:= )
|
||||
relp? ( >=dev-libs/librelp-1.2.14:= )
|
||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
||||
rfc5424hmac? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.8y:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
||||
ssl? ( >=net-libs/gnutls-2.12.23:0= )
|
||||
systemd? ( >=sys-apps/systemd-208 )
|
||||
uuid? ( sys-apps/util-linux:0= )
|
||||
zeromq? (
|
||||
>=net-libs/zeromq-4.1.1:=
|
||||
>=net-libs/czmq-3.0.0
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/autoconf-archive-2015.02.24
|
||||
virtual/pkgconfig
|
||||
test? ( sys-libs/libfaketime )"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
||||
DEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
||||
DEPEND+=" >=sys-devel/bison-2.4.3"
|
||||
DEPEND+=" >=dev-python/docutils-0.12"
|
||||
fi
|
||||
|
||||
CONFIG_CHECK="~INOTIFY_USER"
|
||||
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
local _EGIT_BRANCH=
|
||||
if [[ -n "${EGIT_BRANCH}" ]]; then
|
||||
# Cannot use rsyslog commits/branches for documentation repository
|
||||
_EGIT_BRANCH=${EGIT_BRANCH}
|
||||
unset EGIT_BRANCH
|
||||
fi
|
||||
|
||||
git-r3_fetch "${DOC_REPO_URI}"
|
||||
git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
|
||||
|
||||
if [[ -n "${_EGIT_BRANCH}" ]]; then
|
||||
# Restore previous EGIT_BRANCH information
|
||||
EGIT_BRANCH=${_EGIT_BRANCH}
|
||||
fi
|
||||
else
|
||||
cd "${S}" || die "Cannot change dir into '${S}'"
|
||||
mkdir docs || die "Failed to create docs directory"
|
||||
cd docs || die "Failed to change dir into '${S}/docs'"
|
||||
unpack ${MY_FILENAME_DOCS}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Maintainer notes:
|
||||
# * Guardtime support is missing because libgt isn't yet available
|
||||
# in portage.
|
||||
# * Hadoop's HDFS file system output module is currently not
|
||||
# supported in Gentoo because nobody is able to test it
|
||||
# (JAVA dependency).
|
||||
# * dev-libs/hiredis doesn't provide pkg-config (see #504614,
|
||||
# upstream PR 129 and 136) so we need to export HIREDIS_*
|
||||
# variables because rsyslog's build system depends on pkg-config.
|
||||
|
||||
if use redis; then
|
||||
export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
|
||||
export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-debug-symbols
|
||||
--disable-generate-man-pages
|
||||
--without-valgrind-testbench
|
||||
$(use_enable test testbench)
|
||||
# Input Plugins without depedencies
|
||||
--enable-imdiag
|
||||
--enable-imfile
|
||||
--enable-impstats
|
||||
--enable-imptcp
|
||||
# Message Modificiation Plugins without depedencies
|
||||
--enable-mmanon
|
||||
--enable-mmaudit
|
||||
--enable-mmcount
|
||||
--enable-mmfields
|
||||
--enable-mmjsonparse
|
||||
--enable-mmpstrucdata
|
||||
--enable-mmrm1stspace
|
||||
--enable-mmsequence
|
||||
--enable-mmutf8fix
|
||||
# Output Modification Plugins without dependencies
|
||||
--enable-mail
|
||||
--enable-omprog
|
||||
--enable-omruleset
|
||||
--enable-omstdout
|
||||
--enable-omuxsock
|
||||
# Misc
|
||||
--enable-pmaixforwardedfrom
|
||||
--enable-pmciscoios
|
||||
--enable-pmcisconames
|
||||
--enable-pmlastmsg
|
||||
--enable-pmsnare
|
||||
# DB
|
||||
$(use_enable dbi libdbi)
|
||||
$(use_enable mongodb ommongodb)
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres pgsql)
|
||||
$(use_enable redis omhiredis)
|
||||
# Debug
|
||||
$(use_enable debug)
|
||||
$(use_enable debug diagtools)
|
||||
$(use_enable debug memcheck)
|
||||
$(use_enable debug rtinst)
|
||||
$(use_enable debug valgrind)
|
||||
# Misc
|
||||
$(use_enable elasticsearch)
|
||||
$(use_enable gcrypt libgcrypt)
|
||||
$(use_enable jemalloc)
|
||||
$(use_enable kafka imkafka)
|
||||
$(use_enable kafka omkafka)
|
||||
$(use_enable kerberos gssapi-krb5)
|
||||
$(use_enable normalize mmnormalize)
|
||||
$(use_enable mdblookup mmdblookup)
|
||||
$(use_enable grok mmgrok)
|
||||
$(use_enable omhttpfs)
|
||||
$(use_enable omudpspoof)
|
||||
$(use_enable rabbitmq omrabbitmq)
|
||||
$(use_enable relp)
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable rfc5424hmac mmrfc5424addhmac)
|
||||
$(use_enable snmp)
|
||||
$(use_enable snmp mmsnmptrapd)
|
||||
$(use_enable ssl gnutls)
|
||||
$(use_enable systemd imjournal)
|
||||
$(use_enable systemd omjournal)
|
||||
$(use_enable usertools)
|
||||
$(use_enable uuid)
|
||||
$(use_enable zeromq imczmq)
|
||||
$(use_enable zeromq imzmq3)
|
||||
$(use_enable zeromq omczmq)
|
||||
$(use_enable zeromq omzmq3)
|
||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc && [[ "${PV}" == "9999" ]]; then
|
||||
einfo "Building documentation ..."
|
||||
local doc_dir="${S}/docs"
|
||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
||||
sphinx-build -b html source build || die "Building documentation failed!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local _has_increased_ulimit=
|
||||
|
||||
# Sometimes tests aren't executable (i.e. when added via patch)
|
||||
einfo "Adjusting permissions of test scripts ..."
|
||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
||||
die "Failed to adjust test scripts permission"
|
||||
|
||||
if ulimit -n 3072; then
|
||||
_has_increased_ulimit="true"
|
||||
fi
|
||||
|
||||
if ! emake --jobs 1 check; then
|
||||
eerror "Test suite failed! :("
|
||||
|
||||
if [[ -z "${_has_increased_ulimit}" ]]; then
|
||||
eerror "Probably because open file limit couldn't be set to 3072."
|
||||
fi
|
||||
|
||||
if has userpriv ${FEATURES}; then
|
||||
eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
|
||||
"before you submit a bug report."
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=(
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
"${FILESDIR}"/${BRANCH}/README.gentoo
|
||||
)
|
||||
|
||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
||||
|
||||
default
|
||||
|
||||
newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN}
|
||||
newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN}
|
||||
|
||||
keepdir /var/empty/dev
|
||||
keepdir /var/spool/${PN}
|
||||
keepdir /etc/ssl/${PN}
|
||||
keepdir /etc/${PN}.d
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf
|
||||
|
||||
insinto /etc/rsyslog.d/
|
||||
doins "${FILESDIR}/${BRANCH}/50-default.conf"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN}
|
||||
|
||||
if use mysql; then
|
||||
insinto /usr/share/doc/${PF}/scripts/mysql
|
||||
doins plugins/ommysql/createDB.sql
|
||||
fi
|
||||
|
||||
if use postgres; then
|
||||
insinto /usr/share/doc/${PF}/scripts/pgsql
|
||||
doins plugins/ompgsql/createDB.sql
|
||||
fi
|
||||
|
||||
prune_libtool_files --modules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local advertise_readme=0
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
|
||||
advertise_readme=1
|
||||
|
||||
if use mysql || use postgres; then
|
||||
echo
|
||||
elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
|
||||
elog " /usr/share/doc/${PF}/scripts"
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
echo
|
||||
elog "To create a default CA and certificates for your server and clients, run:"
|
||||
elog " emerge --config =${PF}"
|
||||
elog "on your logging server. You can run it several times,"
|
||||
elog "once for each logging client. The client certificates will be signed"
|
||||
elog "using the CA certificate generated during the first run."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${advertise_readme} -gt 0 ]]; then
|
||||
# We need to show the README file location
|
||||
|
||||
echo ""
|
||||
elog "Please read"
|
||||
elog ""
|
||||
elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
|
||||
elog ""
|
||||
elog "for more details."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if ! use ssl ; then
|
||||
einfo "There is nothing to configure for rsyslog unless you"
|
||||
einfo "used USE=ssl to build it."
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Make sure the certificates directory exists
|
||||
local CERTDIR="${EROOT}/etc/ssl/${PN}"
|
||||
if [[ ! -d "${CERTDIR}" ]]; then
|
||||
mkdir "${CERTDIR}" || die
|
||||
fi
|
||||
einfo "Your certificates will be stored in ${CERTDIR}"
|
||||
|
||||
# Create a default CA if needed
|
||||
if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
|
||||
einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = Portage automated CA
|
||||
ca
|
||||
cert_signing_key
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-self-signed \
|
||||
--load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--outfile "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
||||
|
||||
# Create the server certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for server ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_server
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
else
|
||||
einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
|
||||
fi
|
||||
|
||||
# Create a client certificate
|
||||
echo
|
||||
einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
|
||||
read -r CN
|
||||
|
||||
einfo "Creating private key and certificate for client ${CN}..."
|
||||
certtool --generate-privkey \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
||||
|
||||
cat > "${T}/${PF}.$$" <<- _EOF
|
||||
cn = ${CN}
|
||||
tls_www_client
|
||||
dns_name = ${CN}
|
||||
expiration_days = 3650
|
||||
_EOF
|
||||
|
||||
certtool --generate-certificate \
|
||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
||||
--template "${T}/${PF}.$$" &>/dev/null
|
||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
||||
|
||||
rm -f "${T}/${PF}.$$"
|
||||
|
||||
echo
|
||||
einfo "Here is the documentation on how to encrypt your log traffic:"
|
||||
einfo " http://www.rsyslog.com/doc/rsyslog_tls.html"
|
||||
}
|
@ -1,8 +1,10 @@
|
||||
AUX obnam.conf 2366 SHA256 2a609d1243d5ea3e063a413e78421ede02eda5cbbfd984c211f78ff0239cb5bb SHA512 7fdeb7c51e3ee80c60cf857117ad9571f38a4657fb8e3f95767e6fa0d0eae9b31cd54d5e2e8aa93e1e5255bd2c116c462594b5cd01f0efc0059d2d9ee07efc1c WHIRLPOOL 9766794181bed1e6aef1b15b5be69412dada2d075292c177a4edfa550d29612b8291e2f1b6170ee1d61c735d217ef8d94d3a2fb5b78271f1212e186af1b622de
|
||||
DIST obnam-1.19.1.tar.gz 372739 SHA256 e4210d12e0126f14bc788ccb0c443362eb5f9419ab7ae84a22ff108d269e1819 SHA512 9ed9632eaa23fec5cc1fb39ea51825480cc9b39109fb3c7e6135ef90156d15e3555aaea910714ede94d93fc897ca04bfefae0487629fbf9fe149c5a0ddc74a5e WHIRLPOOL 04b1d072a31de70712438a2314e86c5cdd6c3bc49f655209876834e21f746770a63094a7d48b4be0e17ba928fb3b172787c31bb8dc17bea88d293ec631e6e0ab
|
||||
DIST obnam-1.21.tar.gz 397609 SHA256 d255130cc12deb0195b50667b4aec0c398e178423a884e0a3f4272c1024e2e42 SHA512 65b7f66a1e5105a2a8853a51e703c74ac2747e8dad12a8fcd1007ed2d02a7e15695c71b773b6966fb59ab4c013d1957dce9464fd25ffce61f38aacf009b5ab1a WHIRLPOOL 01f3e84799738eb68360b7140a53bdcb030184e8734a53e3566f477b3f5a473a00fd05d3748a2379e5c241f9a79912092e9015042c09a384a8e52e4bf31c526c
|
||||
DIST obnam-1.22.tar.xz 299312 SHA256 d9d8281c8e95905fdd630dbb5f8c65d81f07d87d1d4106683a92c67ca681e958 SHA512 ff0b457c82678336e5ac7d8b9abbbdf33ee6283e584f3b2c2ab81e3dfda1feb2869d4ddbba9eeab1b8ef62b91770cd2358a5b54d1813d676177c4ebe3794fbca WHIRLPOOL 117000a6dc9402ab1d8d349a0cc89867eda199d5df641ccee5c4b7176d167a4e245850cb66570db948af204d3f39b3e7cd257cab4399e61db108baae9f9b265e
|
||||
EBUILD obnam-1.19.1.ebuild 976 SHA256 f842c0707291e3e1ff94d0817f24c651e8623ce8e3fced9929c8502c1fdf2d0c SHA512 e31af43a164a96b81f23e2a375d66077ac1ac39e158f8a82d46f32cc0941704dbd40317f623439db2dbad9f5c4bb8a142a8078649b142cc797a1196609e63822 WHIRLPOOL 72d84a637a2daf7da03c47a7b087328ca83364f4b84bbf5ae1237c5b8a103787d84c127670ff99463e09953c4a195656e1715de1dc16d5aa70aa4c63ac910898
|
||||
EBUILD obnam-1.21.ebuild 976 SHA256 f842c0707291e3e1ff94d0817f24c651e8623ce8e3fced9929c8502c1fdf2d0c SHA512 e31af43a164a96b81f23e2a375d66077ac1ac39e158f8a82d46f32cc0941704dbd40317f623439db2dbad9f5c4bb8a142a8078649b142cc797a1196609e63822 WHIRLPOOL 72d84a637a2daf7da03c47a7b087328ca83364f4b84bbf5ae1237c5b8a103787d84c127670ff99463e09953c4a195656e1715de1dc16d5aa70aa4c63ac910898
|
||||
EBUILD obnam-1.22.ebuild 976 SHA256 4be7691aaf225f942851d09c02d84846fb20b54a97c0b0a1a77b1ca017075117 SHA512 7f9d3eff643747e22ec172661e5fb624d6ad0c99ce65a1c80b11d1e58feac270629c338884f3a9a566307bfa30c03d1b86699fb70d9f99434875eb9ce66210fb WHIRLPOOL 423600eda42a907461ca93c12e3e716629bbcd22c3d289f0d8f4425defe9d5fec4199dbe1afcf659f639d9c7524d34e3ecdafdc8836dd00623bc4bb1fcfe82d2
|
||||
MISC ChangeLog 5044 SHA256 bcdcbcf5bc9c4ce13c437ca9ac069188c08d2fa634d2d8b6b41ee82df4690413 SHA512 0395bc2f83a8494fce0db84168c109847867afea1e929148f8d5104ecfc18a00baf6d250fcb9d1e1b45dcacc1f42bd2a9210b9baa47a902f5ecd3d5ec5eedd0f WHIRLPOOL d284f3f6fc907aa762dbced8901f542176ee267fd7f9a51ad3b2ba74e943fc7d4d518a08f91da89c7513bfc4e0f9618ce480dc2cbd9acd45a7e48f8745718f2d
|
||||
MISC ChangeLog-2015 4826 SHA256 bb45fc01948c13b57963aaf62611476c54d9448e0b5664a0802063f35721ff75 SHA512 d3c74142bd1e915769dd585f3c987897b48d8dc6ebdfd4d1c8759b446704fe0c277a5d82b3919262ef86a83a62f3a32f65880d33e5a4e3a4cdacf4f9b52ea4c3 WHIRLPOOL efdde003fc50bd2996d6d33feaa8d56ed858ce0e6087c9277f1f742c4624a84249f219ba9294595ed44cc06ed2911f24086619999df237deab2dd89dab766a74
|
||||
MISC metadata.xml 250 SHA256 dc7996b965794cc38ecefc226a6b05400ff49c69553249c3d0ac69fd277b7906 SHA512 924271cfb32ceafc4134e19b53fbeed96f2e9056addc3c2cbdec28890254abf5f0714979a3ab698ca046e41ef5c2cca2932350830bd8bd3a8e214d99123c12de WHIRLPOOL e00ced8aee67f075273a4c498a4c69671eef224f7b41ef8c194ae72404c242bb93bf31a48fcf94065ab6fe8afbfb667238deba4ea4eb9bec406ace4bfcdcdc8c
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A backup program that supports encryption and deduplication"
|
||||
HOMEPAGE="http://obnam.org/"
|
||||
SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/obnam/snapshot/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
dev-python/cliapp[${PYTHON_USEDEP}]
|
||||
dev-python/fuse-python[${PYTHON_USEDEP}]
|
||||
dev-python/larch[${PYTHON_USEDEP}]
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/tracing[${PYTHON_USEDEP}]
|
||||
dev-python/ttystatus[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
addwrite /proc/self/comm
|
||||
distutils-r1_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
find "${D}" -name "obnam-viewprof*" -delete
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/obnam.conf
|
||||
keepdir /var/log/obnam
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5} )
|
||||
|
||||
PLOCALES="ca cs cy da de es et eu fr hu it ja pl pt pt_BR ru sk sr sr@latin uk zh_TW"
|
||||
|
||||
inherit distutils-r1 virtualx l10n eutils
|
||||
|
||||
MY_PN="ReText"
|
||||
MY_P="${MY_PN}-${PV/_/~}"
|
||||
|
||||
DESCRIPTION="Simple editor for Markdown and reStructuredText"
|
||||
HOMEPAGE="https://github.com/retext-project/retext https://github.com/retext-project/retext/wiki"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+spell"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
>=dev-python/markups-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/chardet-2.3[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[gui,network,printsupport,webkit,widgets,${PYTHON_USEDEP}]
|
||||
spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
remove_locale() {
|
||||
find "${ED}" -name "retext_${1}.qm" -delete || die "Failed to remove locale ${1}."
|
||||
}
|
||||
|
||||
python_test() {
|
||||
virtx esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newicon {icons/,}${PN}.png
|
||||
newicon {icons/,}${PN}.svg
|
||||
|
||||
l10n_for_each_disabled_locale_do remove_locale
|
||||
|
||||
make_desktop_entry ${PN} "${MY_PN} Editor" ${PN} "Development;Utility;TextEditor"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
AUX cblas.eselect-0.1 352 SHA256 a7f9b102f06e72b8eed612d0672ec36bf5243d02653369ed0c03ec68c91ab469 SHA512 3f030c57d59a48817ee1eeafb3e967395c57f7f46724ffe134fcc58e6b4a3f37cad368fb4ab7f7e3cecf9a91bee4f7e1ef315dfcae6d0abbd80c7f85decc4f76 WHIRLPOOL 5099f298879870003fe15f631f1346ee662a05cbfbeb65d13dbd25177b032a5598a14c8e2ca3172060a06a04ecee0be6109f7fda7ff93b350ca2df086612b8aa
|
||||
AUX cblas.eselect.5 2084 SHA256 b288fea54c45d828ff44c6e6c102a34010fce272eef06cfe979bfb2765376b7e SHA512 1cc53334d65439a00bd3836bfaa5e130d946d0878d6a440974ff218d79aa10d3099edc7a84c94b300d742b96153d535649cd1580e2bd226d784a4dddc4a3cd41 WHIRLPOOL 082cf1e3e6b0385a1df6683e431f4dbbbf907cb95db82800a6bdb58953966cdbcd4aa728362747c05a82eae304c23a7c69d090dc304a0a70a36c3723a6acee88
|
||||
EBUILD eselect-cblas-0.1.ebuild 720 SHA256 219ef2b0f8fefba7084697b08803e58137804822f4aacb243f833e7ee1c0ac2f SHA512 63d7ab7c6fbb67a45228509feee1ff4ba0c8d464fb6c5cf866a1f0aaac2514d347666aedd927a4e63024f30fb84c20b5a4466a771ccb42603538a023bc95973e WHIRLPOOL a7a667647c6aa01a94cdd3489a04be3645727ecbf536c4ee78e68d8bab7f897c1fe1aaa5d2700c5f71af4ea0b515a0aacc4179aa6176e17c7d7a428dbb2232d1
|
||||
EBUILD eselect-cblas-0.1.ebuild 727 SHA256 9fca22b35c90454397a1937918eaab68dd1811a9f019c3af3bedc179bf7b1a36 SHA512 e24f7944246ca91ebfb15f4596338e146546366805ebe49681e40d29cce1aebbb4110fee98ed7b0bf09854c8fbb3d158cb19f14b584f3b28dde862645f128539 WHIRLPOOL 48d4fa8bcc0d9032778d31c322a0916fe299d4fdb0d49bbf23756e3f5f38fa7ac0fa3dd0de34441254336d94b06367e6bdda6516801ae746b438119d249dc712
|
||||
MISC ChangeLog 2524 SHA256 ff2f2485ae1129e229fcb864151ffbef71e596c6dad9fd5903e2bbf78da6411a SHA512 e535d90fb2c20b9b6c0d15a2560c37d276b18fdb338087dfca6fd50d48edc777621a802db96755f7951526f673da154aac78707723cfd569a53bc5b2a7cb8d8d WHIRLPOOL 9cb66d6ec425722c26640277abee7d94aa6b7d9459aa9d921b11cb0cfca7a3f62489a46cad98ea05e4fe7075ba73e1b87810300a59c1a5922c8e10684a17eac2
|
||||
MISC ChangeLog-2015 3139 SHA256 2024b50728011e6a0201cf0251d79e461e910ee54f36ff081aabdaa70b77cbeb SHA512 3957ced556c29bc9dc836a183d418445238315206d8e5d1775c9a691143ad1eee443beb2f215dbbdc231eb3e42a68f123d11c49f646db59fb9ed4f798a3d6b29 WHIRLPOOL 2b6ef9e01de60d6d52fbac6742b9823b2e8b6c1bb7dfa0ee413d3354ca8e325c67c5142dabf82db21157a1be58aa900a2ae74fe662979a6e7a085cf60e3b75e3
|
||||
MISC metadata.xml 249 SHA256 d92f4663e317d15aa310d71020356d744cc23e6d8bc8a52ef44a2331a3c37adb SHA512 29a9c1817fd4299246d5fa995b73b9f1996b112b70f468139cf9cd8f07077d831e0788d3b93aaba67bb38dce5850830c27543fccbddbac02b0da4ff899def519 WHIRLPOOL b995ffbeda7d1119f53cf016f0ed502521258c348735fe3b362dc082e0f76cf1a09c0848bcfd8b8bc97d6afc6104628f9c3d116a1a8f4c393b1fcc2471f6ddfe
|
||||
|
@ -1,6 +1,6 @@
|
||||
AUX lapack.eselect-0.1 354 SHA256 ff9a03a284479e300c64015defac733a73d3b92715afc3ba61cf0eb1e7bda6f2 SHA512 06e859b2ae6f93286a266f642aa374ed83b21c940ac25f9650973e6edb6e5fb75e9da39dba86e8f0f8a4ab2779b7a49065a6d4cc278e9becf6e8d35a34c47d9d WHIRLPOOL 4c6a297ddae14bdcf8f65c05318fcd9662669f4919554b6a1b608fdba7b23090223bfb9e82badcf5a6f6f53c0dfca2cd404206297dd5ab9a24ab8458f38a60d9
|
||||
AUX lapack.eselect.5 2103 SHA256 7595196bd4badac46ed1cfa2368ef478501105028f15c252d573b381535b3e87 SHA512 e393bf70301002df11d9b5ece21e5f6b15aab9dc0612315b74882ec5e255595b12ae05c408243b26563f477a7e77480d66f42be0582103e4967d4e12cfdc7f21 WHIRLPOOL b3b8abd290154da96fdff7ae290b0abb558b6f8a9ad0c95dec703f9337de699cd6afc631802ecff3f31085479753fcb0f7a721a60ba010daf4f482e4d893f571
|
||||
EBUILD eselect-lapack-0.1.ebuild 698 SHA256 6feb25911eba6ebd2d93b883eaf35b083c52d638b0ebd01495ddb7a7cf6eed8d SHA512 311d3337542fe4773ca4cf5c82c3c460df8057a6aa327f863f3de8226a883d814c3f3c4e40488376c5219917912bf058291a47738decfd0a5c232eb24d343d1e WHIRLPOOL 90e4ea13650e6af7c670df37edcd0a6ab56ae6310598cf0fb3ec7a2b4b4b28463789874db8079b941f0dcf679bd1a7ef8e3391c56c19bc7e01acecc32c187b54
|
||||
EBUILD eselect-lapack-0.1.ebuild 705 SHA256 57b196cea179d2dcd291dc731eace3e5c8d2e89c0b20385465301042e8e1f0af SHA512 a6267cfe49d88e988c1d827383c1291ac3b3336b1e04334f6ca6f50bad2cbe9afc5407f41c0e7b024f2da38bd035f984129253a2f0aadf3a5058c9a37988642f WHIRLPOOL a75568e802ff39c42fc5ffb88b6819636543f1d4d20c252a44b1db39ab6c5f51efe9f6508ae14462e93afacda258138b24af4aad5cd317abeed5596f23ebf00a
|
||||
MISC ChangeLog 2530 SHA256 427daaa77592a32b281cffbf94cf3811da92be74f2d4658afba053004851abed SHA512 d1aadef0ec75cbf3d9253e1293a96ecc396270e590d104ce0dbb15f152b45ffe64c2d7f25062ad14c86b71356db0d70fbe4db17c01c84c872e20b9c9f1bc6414 WHIRLPOOL ef0d5136bd1bc9743813822ef1b269b0f622ce53454e98be89f31cfa6db13994936c10ceba1ddb41724a97f843e034af5658361460d7c353937a515942d6cdcd
|
||||
MISC ChangeLog-2015 3050 SHA256 20787294be7568f90cf6d17a75bc6f69527a558a47543b1d19781f146d23fc7d SHA512 71bc8d925ad5ab2fdc891cac2542c9b7a3ff4607bcb3c263736d1a706b543c79899ee8df4708864a8dc46fe82c7267ee8e3e3dd71c88a44da7905838ad205497 WHIRLPOOL d36749aeecea89bc3a6a129ae67ae81b97ac1c2da29944dff5359298b0d7bf4d063ca588f95419f3fbc54c63fdb812b9e0f28132d48ce2e96731637848f08301
|
||||
MISC metadata.xml 249 SHA256 d92f4663e317d15aa310d71020356d744cc23e6d8bc8a52ef44a2331a3c37adb SHA512 29a9c1817fd4299246d5fa995b73b9f1996b112b70f468139cf9cd8f07077d831e0788d3b93aaba67bb38dce5850830c27543fccbddbac02b0da4ff899def519 WHIRLPOOL b995ffbeda7d1119f53cf016f0ed502521258c348735fe3b362dc082e0f76cf1a09c0848bcfd8b8bc97d6afc6104628f9c3d116a1a8f4c393b1fcc2471f6ddfe
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Unicode data from unicode.org"
|
||||
HOMEPAGE="http://www.unicode.org/ucd/"
|
||||
SRC_URI="http://www.unicode.org/Public/zipped/${PV}/UCD.zip -> ${P}-UCD.zip
|
||||
http://www.unicode.org/Public/zipped/${PV}/Unihan.zip -> ${P}-Unihan.zip"
|
||||
|
||||
LICENSE="unicode"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
# Unihan.zip needs to be installed as a zip for reverse deps
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=768210
|
||||
unpack ${P}-UCD.zip
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${S}"/*
|
||||
newins "${DISTDIR}"/${P}-Unihan.zip Unihan.zip
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="Unicode data from unicode.org"
|
||||
HOMEPAGE="http://unicode.org/"
|
||||
SRC_URI="mirror://debian/pool/main/u/${PN}/${PN}_${PV}.orig.tar.gz"
|
||||
|
||||
LICENSE="unicode"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
unpack ./*
|
||||
rm *.zip
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r "${S}"/*
|
||||
}
|
@ -1,23 +1,17 @@
|
||||
AUX elasticsearch-systemd-pre-exec 221 SHA256 cfe5d1afe9e7395c47d2a39ab85058ae6295fe9d094a8e25dc80a10c78e0b7f2 SHA512 1dc41303da367122779759fc1967540357a21aac6df4f5d8761d36dc643673df660b47e5c1b595ecf9316265fe7684ddcb5290df8369379c1bdbc8c933726644 WHIRLPOOL ae0548c7cc96c7ba91af04af02dd395ebc0a8290200168c014594b71d24954afc4be9d0182de3a4fc6de4a3e893daf42954926351dd1e96ed75c7692b089066c
|
||||
AUX elasticsearch.conf2 2282 SHA256 882544567858bcd107023be4679bf665a73a9051e8053554930c4c03fe3f8dc5 SHA512 7b294004b4273d6ea7e0709d3411fd175be74560ffc2acc85e45c5fa3b36a312e304412de50cb71ac138c55b2c7e637104caf314b6e4523065c5b7bfb90574cb WHIRLPOOL fdc0b3a46448c5d7d1520c6fd1745771238b9c3b871f86de95c1e9990fd3e018570f3e363c21e66c5ae9dcf60f08c9858d20bb8a9df6ace9cf7ebac8fdedac69
|
||||
AUX elasticsearch.conf3 2077 SHA256 ec51be1e6aade76dafebb63183693c4ab2de0e4111d5f358b31ff4ecc75a0b7c SHA512 d386f409e7c7d7e654b43ba42298d0c8d14f0973a656582c06e21dc5e1a93088367725c1ef1644d0bde553912297f1693fca9b461f51ac823be3140f56f9dd5a WHIRLPOOL 24e3fcecd818c0ec2625eb6fa01ff4d3656466334eb157e0675a1a0fcd678a3e407e66ed4cbf4c74fd848e7eed3fe43b11d417cc9d41c6597ab76e5f4ad835cf
|
||||
AUX elasticsearch.init6 2818 SHA256 fe943355d6bffddd76f4f0ed295fec3932aa84aae2296710483e76aed21c0643 SHA512 5fc1331df1cef46c179dfdc9837eb34dbeb6311c1c60cf5dca0b4fb1a20e666428c2885cf739a864b655d56f098d3d47b51d9abd84d21c31c4df02cfaa48e524 WHIRLPOOL d8dd213cf9b08c5cb7e71990217c88479a85a589add358d0768f24f1a53f3730b49e79a0ae54739898350d48896aa4f388bd426196ba14f52df719e93455e62a
|
||||
AUX elasticsearch.init7 2535 SHA256 94e356429b1ad02d712a86649e4ad5b48f0b7e1c4615387e571332fd6b04a08b SHA512 339ccf7ee47174be6082523020a237e21df9a89fd8e8c77518276855e1f784e901f5c93a9825bd666bb9b422c593888ec89087efe8291d4c0092fd0d6a25470a WHIRLPOOL 48d9aa41dabdb36b07ba561bb40dc173707208004729be6b9d91b1b9033bbc027512b45dadafbb25975b57f7ef64c95bc97ce891421dcaeb582e405f2a6c152f
|
||||
AUX elasticsearch.init8 2503 SHA256 d5a3225da5d00eaa6d8dd97bcd31503b8814cbc4e0a8b29e5a7c290ac03bb7bd SHA512 55369ea6fc19979a722528afead2a4a19912fd212db450e4fb840c88d0a868faaa87ff8fe33a8a12370559f68b729771ee4b5fdbf066a263a97bb7944d68b9b6 WHIRLPOOL cc6f72a296f8d612845fe624b29bea4d669ab9a0a5c2ca44f598dac6fff32695c64d19eb7c49a21a9f6bee3d49aaf881ebe348edea50d41e98eb355214a27ab8
|
||||
AUX elasticsearch.service5 1737 SHA256 467d767235cec6654983a4e93f81a2ff1ace37c0a9cbbd59bf5a5ff1c3048386 SHA512 1a092d8786fd9f75d25ba19bb874789a4d99f6c84dc7e4d8bdd2e45d48473912e0f897d738957034d40c3b7edb1e520d9f31387fb9f938398d90c1ab7f9a94b4 WHIRLPOOL 154f5d169502c55d7bcaa78124433fe901b9ad123629ea38cdbee0b2805d684f279694d87fbff920e094c6663839b7321e8132714d8685c83a8ad51b997a4eeb
|
||||
AUX elasticsearch.service6 1718 SHA256 444bf14b63eb2a702afa313d5d0e8a2c322bfceac742fe38844e44c02698bb2a SHA512 98530c01f41a2d98254033a1a292075abc6086e0608062dfbe28385e4f57da390a9c43521bfce72193c2b710e58e590f08f514257b8150140dbb9ade40ef5470 WHIRLPOOL f34e6c906a13e67b23d66de67466b6545eda413bea150b6da383e59eb4947720e8969ba3617320c3446522a788dc4bb5831c4cc1a1a99343c5b85d2397f3d2c7
|
||||
AUX elasticsearch.conf 2077 SHA256 ec51be1e6aade76dafebb63183693c4ab2de0e4111d5f358b31ff4ecc75a0b7c SHA512 d386f409e7c7d7e654b43ba42298d0c8d14f0973a656582c06e21dc5e1a93088367725c1ef1644d0bde553912297f1693fca9b461f51ac823be3140f56f9dd5a WHIRLPOOL 24e3fcecd818c0ec2625eb6fa01ff4d3656466334eb157e0675a1a0fcd678a3e407e66ed4cbf4c74fd848e7eed3fe43b11d417cc9d41c6597ab76e5f4ad835cf
|
||||
AUX elasticsearch.init 2503 SHA256 d5a3225da5d00eaa6d8dd97bcd31503b8814cbc4e0a8b29e5a7c290ac03bb7bd SHA512 55369ea6fc19979a722528afead2a4a19912fd212db450e4fb840c88d0a868faaa87ff8fe33a8a12370559f68b729771ee4b5fdbf066a263a97bb7944d68b9b6 WHIRLPOOL cc6f72a296f8d612845fe624b29bea4d669ab9a0a5c2ca44f598dac6fff32695c64d19eb7c49a21a9f6bee3d49aaf881ebe348edea50d41e98eb355214a27ab8
|
||||
AUX elasticsearch.service 1718 SHA256 444bf14b63eb2a702afa313d5d0e8a2c322bfceac742fe38844e44c02698bb2a SHA512 98530c01f41a2d98254033a1a292075abc6086e0608062dfbe28385e4f57da390a9c43521bfce72193c2b710e58e590f08f514257b8150140dbb9ade40ef5470 WHIRLPOOL f34e6c906a13e67b23d66de67466b6545eda413bea150b6da383e59eb4947720e8969ba3617320c3446522a788dc4bb5831c4cc1a1a99343c5b85d2397f3d2c7
|
||||
AUX elasticsearch.sysctl.d 24 SHA256 d2130d8587c6a8860d51903b5c2f70703da61cddeb42d526fcda20fd0ec9e99c SHA512 9f3d8238edff6704bea06b6535ee8915f4a3c9bdc8389d9d4943bcfa49161b61f9a1ca49dbcc415580438f4396fbc3d58eef301554f9426287606a755ada715c WHIRLPOOL fadf47db434ba8a1533be79adb7c3045315fca661900608f50a608ec6ccd5ab34032e9a15f6b8ec5fc754ef1123ba44c68d93483c2bef8530c8523a925c9b3bd
|
||||
AUX elasticsearch.tmpfiles.d 67 SHA256 61f8ff72a46c7da10a076af305ea545765bd149e221e838ba80c38faa6b5609a SHA512 e64c29879a43ad8cd2c272366e62c99b512f49d3cbfe669991c857c5c852aef28d3244040210da54a2f5b346a83e78e385ea86cb97daca76afafe549b80719a0 WHIRLPOOL 11a4e3a3f3fb52331f8f4ed6f0d1e6074601b0fcde818b4f71d36881276f8049dc81bb14a33c1e343623814c8d6e706f37a33456681fc6874d8c77307c963743
|
||||
DIST elasticsearch-2.4.4.tar.gz 27343272 SHA256 981092e6ca65ba5560b8b97a74e5ed0eb2236e9128efdb85bb652cec340158e2 SHA512 899a4d2fc64548bcd488ece223f5f189dfb191eceb36390c4b9d8d0d90ef9d2cb67ada475223b9b2e0bd0fb521a4ab978bc7f60781195927e36d027925338c14 WHIRLPOOL 1a90bb8c923a9eab6cc4390b3daaa44cd85d5c1a3a1a5ef7d274050eb25b061a11a91b0f57ebe9f3cb27aafee3267af8f63ca87837f79d622ff362fbc5b6ae1a
|
||||
DIST elasticsearch-5.1.2.tar.gz 33299777 SHA256 74d752f9a8b46898d306ad169b72f328e17215c0909149e156a576089ef11c42 SHA512 1867626e8a87f11ed109e1325fd1d16c9e0af06ebe6a30c78ea679ab533ab377f5da8ea55af6871be33af226f02187a2aadd77e5e23c097dd24055be21e9d691 WHIRLPOOL 2e9df71c915343e2cc8ad82c59b877f41f5e093cbeba21f471c32cb51a195eccc6223bc48da48bb4af2e6bea9f2539f2e93b866963148f4ca2940ba4466e614e
|
||||
DIST elasticsearch-5.2.2.tar.gz 33799732 SHA256 cf88930695794a8949342d386f028548bd10b26ecc8c4b422a94ea674faf8ac9 SHA512 670f8aa81a34191a13cc8c608a9dc7bec60c63bbed8fdb9bc0619585d644867576a7677eb0f14b4e4d064e59def186d4b431930bf79b54bcbf59a29b0b327e85 WHIRLPOOL 4ec1f3b5ed15b9f22d27512ea784ffe9e32e00808fec89418860955d2f4759d045775e18c0a61693da47f39de9f235de954eada231fbd6de5fbfd17f552e8452
|
||||
DIST elasticsearch-5.3.3.tar.gz 33701608 SHA256 c7e23fddd74d66207b01dea777597c9d04c242973e1ac61aec0f13b716ebed1d SHA512 36fc00081af5555ceb0c0c6e8300c184d40e7176e084d899f2bfaafc3a36c6ba0f457c4bccde95a282d441fa26d84aba4ee1b8ef634831ffdef2f14feb725daa WHIRLPOOL ce641c9cb2071661a221f95fe38018ae2108ffdd855c70aafba4286da369cde461ff39afc674d650ca33925c350592d82e170b2e937e73e949279ca49850a325
|
||||
DIST elasticsearch-5.4.1.tar.gz 33321278 SHA256 09d6422bd33b82f065760cd49a31f2fec504f2a5255e497c81050fd3dceec485 SHA512 6b88c1f93516aea57af462ced95fd32f3b2639c919fbb00348f4ea12849ce88521e095d9a4c7d96a09b420ac4ed07c7ad6fc9c54c0f2fa1f9f8fa4ec36071cb3 WHIRLPOOL 4725922bb7bb3300f6ca13533beac07e4aeab3b3d44f7013bae53449c45da510bb123a8eebce8b6eed5e5ecdf5f0b4b93cdafd9d7f654fcf341fcd175936ef64
|
||||
EBUILD elasticsearch-2.4.4.ebuild 1918 SHA256 27fdefbb47e35e830fadd989b68a97f2c30dcce1b001037893e9aa8198a38a76 SHA512 7fc3a78afc6ba00ed168217d45ebef468a20f7118b1711df38d848a7082d3134881eeb09fa48f416074534e4081aa2c5f101204d4dbccea1dcca898d29a7ca09 WHIRLPOOL 9e4cbafaed4cccabd964f5dba90fb5f74d044f0a0dbc7020c051d5352c2c829c818d4075e9a522ff53f65ab51d739960e32b123e0b3ab66d654ba8e4e3f8d74b
|
||||
EBUILD elasticsearch-5.1.2.ebuild 1911 SHA256 183847696a4f1aabbcf529b10768fd35db34d27ccd9bb41082b4a465c509c214 SHA512 24f0e6d8ae18b40d0159eaddac9ef94357541dd3046e9bebc4e39fc60f7e5f6637e0b4abf4252ce65c18e9b9311061cd1da31e3860918f9a77ad9a83357a3a3e WHIRLPOOL 6c914366921c802a1f99742273a0268f8747bea2abac1ce212091f58e37fe7220ea7815ebaaee4881b7d2994c1f07e1ac75688dbe2eb0c2bfa100fc9e5cf458b
|
||||
EBUILD elasticsearch-5.2.2.ebuild 1659 SHA256 182c9b6557ecd94ae9a7c354c42b5fc0c69497ad6dd4603d864f7c5045578312 SHA512 5b61af0c148953c79677d788cc43a353aeccca052c429f1086689909f236184c24e8cfb40d790d2e3579d8c7fdbd98b1c4c6858efc7e48fdc20be633c945b600 WHIRLPOOL a70160fffe4afc283aa73f8a5cd5450a17a4871645b53574d32648ee2d7bf38bd42162709c9c3f4120c27c6d7ede665bfdab8534b122890826ead3ec803a8599
|
||||
EBUILD elasticsearch-5.3.3.ebuild 1634 SHA256 827e81844c8cf43f4993b1b6c03d0de0f622c0481fa66726848433d24e94017d SHA512 129b596382ca41c78b6ca10460cdfc3fac27be5337ac3331b1fd8fe3480b7dba0926b50c1b72eb89a572ad71fa6e773326384a5e1cce391d00e43963e00e23dc WHIRLPOOL 662299d54dcc580c299bbf4bfd240d456962805bf0c285067fde6474da73625eb07edcd32ee4a3816109a4f0b15d7f3c6f90ceb172148ff3b721bdcf9bba4315
|
||||
EBUILD elasticsearch-5.4.1.ebuild 1634 SHA256 827e81844c8cf43f4993b1b6c03d0de0f622c0481fa66726848433d24e94017d SHA512 129b596382ca41c78b6ca10460cdfc3fac27be5337ac3331b1fd8fe3480b7dba0926b50c1b72eb89a572ad71fa6e773326384a5e1cce391d00e43963e00e23dc WHIRLPOOL 662299d54dcc580c299bbf4bfd240d456962805bf0c285067fde6474da73625eb07edcd32ee4a3816109a4f0b15d7f3c6f90ceb172148ff3b721bdcf9bba4315
|
||||
DIST elasticsearch-5.4.2.tar.gz 33322090 SHA256 0206124d101a293b34b19cebee83fbf0e2a540f5214aabf133cde0719b896150 SHA512 cbeacdc9f6b391cea753a656f190f37db8130bcce3210356b63a0e27964aff6c079a3650f94242c6b98b0a87f58f6748fed02eb1f3a70495e9d6ccd09d138b7d WHIRLPOOL a7f1780934626230bcc48bcf8777bd29fc2dd548d234433414f6e4e33853c0362cc5be6273c8916b692d16636f1be39be0d8ccb8fad91d6e532905ad491af8ad
|
||||
EBUILD elasticsearch-5.1.2.ebuild 1908 SHA256 f41ee13b09e83ada55501293d9b486b736fe014468a143ae94d0a2adb486baab SHA512 9f94215b521d9f0df81ae838d1257e04895c4b6de82c43d3fff83b29642941e68b54d187b7dbe963aaf08019b427528393f4aa6d5b7ab7b674f1409b3dedcb4b WHIRLPOOL 4a2920ad2915f57bd09e859f856e661ef4a553f4b9d818dc9fe6b81afd70a9c81160538374edbc35307a55e36dc307d1cd5488ba9bd3fa187046033e5a3c6a4f
|
||||
EBUILD elasticsearch-5.2.2.ebuild 1656 SHA256 a7da8676e25be26d18c2a9adb7d71641e6bfeaf471f7ccda9107473994290364 SHA512 5f43fba8a5fb648a6f7d609881fcde862dfb64901d9a9d3ab7cf7e782ed1b234adaca983c6b50569c3f2c5c969896f686f8bf27630a91355b2eee9f08ddde3bb WHIRLPOOL 4dd5dd07dba6abf84869c68db084f6715bed37dcdc8b4c7e9da58c169fa50a128fb3f92818b99771167a8f674abdc4d35cd1766004303dbb9b1df519107cd6f9
|
||||
EBUILD elasticsearch-5.3.3.ebuild 1631 SHA256 43aa71dc4fff36ad4c66c97843d54d7c02ea69934d9407e4c3a059d74fc6807f SHA512 26041cf1f12aca652c78bcf1f1df1ed5d925523cb7dbb47237c16f2e09a9c8be734771fee0cb1501c5cf55f6cf2b9306a540b1ef67bd250f2359c7110c515710 WHIRLPOOL 6ff13f155d12dd6eb9191cdad07bed9b1051b7e528564f1f9a64986a26fd08bb33a55f9036df5c5378736836c6da44d9351d76f9036b6c59062e8ee8d9829205
|
||||
EBUILD elasticsearch-5.4.2.ebuild 1631 SHA256 43aa71dc4fff36ad4c66c97843d54d7c02ea69934d9407e4c3a059d74fc6807f SHA512 26041cf1f12aca652c78bcf1f1df1ed5d925523cb7dbb47237c16f2e09a9c8be734771fee0cb1501c5cf55f6cf2b9306a540b1ef67bd250f2359c7110c515710 WHIRLPOOL 6ff13f155d12dd6eb9191cdad07bed9b1051b7e528564f1f9a64986a26fd08bb33a55f9036df5c5378736836c6da44d9351d76f9036b6c59062e8ee8d9829205
|
||||
MISC ChangeLog 8202 SHA256 1531683acbf9c20038e964e166b7b748c2ec4f12bb8f219d75cc685b7dc8825b SHA512 54cb8dc75318bc52e9c947cec07f8926fc1f022429e9b784b21b51faba3022c6f07f50dc065e9e90529b30941ced47e9a0c03e801328f7e694f6881b0a89e6bb WHIRLPOOL 2d1c8f0e9be37b76175dda86322581da84e07c6745d7b57dfad300f10e3ecd250a7abc90e1737d699b0844961864fbb10a3be00951dbc29d503ca3abd50cab65
|
||||
MISC ChangeLog-2015 5203 SHA256 8aa86f4c8b0c8a0c2d099ff71b4886f6e7be91d4e10e22d6f49d8ba1ab0ee7be SHA512 2326fb4073b91dc0a39d18ca0a81257c8995ce7afa0d53e31db1851dd45b3b3a94f7bfa9dda00a82b5ecaf16ad022e9236a07aebe9f2ee6f3b9b024b179039ed WHIRLPOOL 03f3e445a6f763d6e42d6d13b336ab10b4ee1d64c9119f8da2e03710b180db180e8abb702241edcdc56009992bea3a1ba0395eb096e61fb97930298099e4c4ff
|
||||
MISC metadata.xml 493 SHA256 d5758f4d01ca56bdfc258e4935a6cdb891f186c7ca36b96f783065fb23dc68ff SHA512 ce03769abc314d3bf561ff5820a8c8582196e9e6755e1e695dcf1224afbc04b609fdec7a1499d2d7a3aa0a350ad9fea94e0e3b46eff7c3c6150a524edd28d399 WHIRLPOOL a69393456ad8bcfd9f698131a0b6e0bca5d220101b0f3d8a91b716f92bbfe1c5e205bac3bbdb6e5f6e7764a30abfb6a0215440c11f288b3aa40ec6c5506cf608
|
||||
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils systemd user
|
||||
|
||||
DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
|
||||
HOMEPAGE="https://www.elastic.co/products/elasticsearch"
|
||||
SRC_URI="https://download.elasticsearch.org/${PN}/release/org/${PN}/distribution/tar/${PN}/${PV}/${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="|| ( virtual/jre:1.8 virtual/jre:1.7 )"
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version '<app-misc/elasticsearch-2.3.2'; then
|
||||
export UPDATE_NOTES=1
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 /bin/bash /usr/share/${PN} ${PN}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm -rf bin/*.{bat,exe} || die
|
||||
rm LICENSE.txt || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /etc/${PN}
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins config/*
|
||||
rm -rf config || die
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r ./*
|
||||
|
||||
exeinto /usr/share/${PN}/bin
|
||||
doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
|
||||
|
||||
chmod +x "${D}"/usr/share/${PN}/bin/* || die
|
||||
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
keepdir /usr/share/${PN}/plugins
|
||||
|
||||
systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d" "${PN}.conf"
|
||||
|
||||
insinto /etc/sysctl.d
|
||||
newins "${FILESDIR}/${PN}.sysctl.d" "${PN}.conf"
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.init6" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.conf2" "${PN}"
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service5 "${PN}.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "You may create multiple instances of ${PN} by"
|
||||
elog "symlinking the init script:"
|
||||
elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
|
||||
elog
|
||||
elog "Please make sure you put elasticsearch.yml and logging.yml"
|
||||
elog "into the configuration directory of the instance:"
|
||||
elog "/etc/${PN}/instance"
|
||||
elog
|
||||
if ! [ -z ${UPDATE_NOTES} ]; then
|
||||
elog "This update changes some configuration variables. Please review"
|
||||
elog "${EROOT%/}/etc/conf.d/elasticsearch before restarting your services."
|
||||
fi
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
################################
|
||||
# Elasticsearch
|
||||
################################
|
||||
|
||||
# Elasticsearch configuration directory
|
||||
#CONF_DIR=/etc/elasticsearch
|
||||
|
||||
# Elasticsearch data directory
|
||||
#DATA_DIR=/var/lib/elasticsearch
|
||||
|
||||
# Elasticsearch logs directory
|
||||
#LOG_DIR=/var/log/elasticsearch
|
||||
|
||||
# Elasticsearch PID directory
|
||||
#PID_DIR=/run/elasticsearch
|
||||
|
||||
# Heap size defaults to 256m min, 1g max
|
||||
# Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g
|
||||
#ES_HEAP_SIZE=2g
|
||||
|
||||
# Heap new generation
|
||||
#ES_HEAP_NEWSIZE=
|
||||
|
||||
# Maximum direct memory
|
||||
#ES_DIRECT_SIZE=
|
||||
|
||||
# Additional Java OPTS
|
||||
#ES_JAVA_OPTS=
|
||||
|
||||
# Path to the GC log file
|
||||
#ES_GC_LOG_FILE=/var/log/elasticsearch/gc.log
|
||||
|
||||
################################
|
||||
# Elasticsearch service
|
||||
################################
|
||||
|
||||
# When executing the init script, this user will be used to run the elasticsearch service.
|
||||
# The default value is 'elasticsearch' and is declared in the init.d file.
|
||||
# Note that this setting is only used by the init script. If changed, make sure that
|
||||
# the configured user can read and write into the data, work, plugins and log directories.
|
||||
# For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
|
||||
#ES_USER=elasticsearch
|
||||
#ES_GROUP=elasticsearch
|
||||
|
||||
# The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
|
||||
#ES_STARTUP_SLEEP_TIME=5
|
||||
|
||||
################################
|
||||
# System properties
|
||||
################################
|
||||
|
||||
# Specifies the maximum file descriptor number that can be opened by this process
|
||||
# When using Systemd, this setting is ignored and the LimitNOFILE defined in
|
||||
# /usr/lib/systemd/system/elasticsearch.service takes precedence
|
||||
#MAX_OPEN_FILES=65535
|
||||
|
||||
# The maximum number of bytes of memory that may be locked into RAM
|
||||
# Set to "unlimited" if you use the 'bootstrap.mlockall: true' option
|
||||
# in elasticsearch.yml (ES_HEAP_SIZE must also be set).
|
||||
# When using Systemd, the LimitMEMLOCK property must be set
|
||||
# in /usr/lib/systemd/system/elasticsearch.service
|
||||
#MAX_LOCKED_MEMORY=unlimited
|
||||
|
||||
# Maximum number of VMA (Virtual Memory Areas) a process can own
|
||||
# When using Systemd, this setting is ignored and the 'vm.max_map_count'
|
||||
# property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
|
||||
#MAX_MAP_COUNT=262144
|
@ -1,103 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="Elasticsearch"
|
||||
description="Elasticsearch Server"
|
||||
|
||||
ES_INSTANCE=${SVCNAME#*.}
|
||||
PID_DIR=${PID_DIR:="/run/elasticsearch"}
|
||||
|
||||
if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
|
||||
PIDFILE="${PID_DIR}/elasticsearch.${ES_INSTANCE}.pid"
|
||||
ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
|
||||
CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
|
||||
LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
|
||||
else
|
||||
PIDFILE="${PID_DIR}/elasticsearch.pid"
|
||||
ES_BASE_PATH="/var/lib/elasticsearch/_default"
|
||||
CONF_DIR="/etc/elasticsearch"
|
||||
LOG_DIR="/var/log/elasticsearch/_default"
|
||||
fi
|
||||
|
||||
ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
|
||||
ES_USER=${ES_USER:="elasticsearch"}
|
||||
ES_GROUP=${ES_GROUP:="elasticsearch"}
|
||||
ES_GC_LOG_FILE=${ES_GC_LOG_FILE:="/dev/null"}
|
||||
MAX_OPEN_FILES=${MAX_OPEN_FILES:=65535}
|
||||
MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
|
||||
|
||||
DATA_DIR="${ES_BASE_PATH}/data"
|
||||
|
||||
if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
|
||||
ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
|
||||
fi
|
||||
|
||||
export ES_INCLUDE
|
||||
export JAVA_OPTS
|
||||
export ES_JAVA_OPTS
|
||||
export ES_HEAP_SIZE
|
||||
export ES_HEAP_NEWSIZE
|
||||
export ES_DIRECT_SIZE
|
||||
export ES_GC_LOG_FILE
|
||||
export ES_STARTUP_SLEEP_TIME
|
||||
|
||||
server_command="/usr/share/elasticsearch/bin/elasticsearch"
|
||||
server_args="-d -p ${PIDFILE} --default.path.home=${ES_HOME} --default.path.logs=${LOG_DIR} --default.path.data=${DATA_DIR} --default.path.conf=${CONF_DIR}"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
local conf
|
||||
local conf_file
|
||||
for conf in elasticsearch.yml logging.yml; do
|
||||
conf_file="${CONF_DIR}/${conf}"
|
||||
if [ ! -f "${conf_file}" ]; then
|
||||
eerror "${conf_file} must be copied into place"
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "${MAX_LOCKED_MEMORY}" -a -z "${ES_HEAP_SIZE}" ]; then
|
||||
eerror "MAX_LOCKED_MEMORY is set - ES_HEAP_SIZE must also be set"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
|
||||
sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
|
||||
fi
|
||||
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
|
||||
if [ -n "${MAX_LOCKED_MEMORY}" ]; then
|
||||
rc_ulimit="${rc_ulimit} -l ${MAX_LOCKED_MEMORY}"
|
||||
fi
|
||||
|
||||
if [ -n "${MAX_OPEN_FILES}" ]; then
|
||||
rc_ulimit="${rc_ulimit} -n ${MAX_OPEN_FILES}"
|
||||
fi
|
||||
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
|
||||
checkpath -d -o root:root -m755 "${CONF_DIR}/scripts"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background \
|
||||
--chdir "${ES_HOME}" \
|
||||
--user="${ES_USER}" \
|
||||
--pidfile="${PIDFILE}" \
|
||||
--exec ${server_command} -- ${server_args}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${PIDFILE} \
|
||||
--user="${ES_USER}" \
|
||||
--retry=TERM/20
|
||||
eend $?
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="Elasticsearch"
|
||||
description="Elasticsearch Server"
|
||||
|
||||
ES_INSTANCE=${SVCNAME#*.}
|
||||
PID_DIR=${PID_DIR:="/run/elasticsearch"}
|
||||
|
||||
if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
|
||||
PIDFILE="${PID_DIR}/elasticsearch.${ES_INSTANCE}.pid"
|
||||
ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
|
||||
CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
|
||||
LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
|
||||
else
|
||||
PIDFILE="${PID_DIR}/elasticsearch.pid"
|
||||
ES_BASE_PATH="/var/lib/elasticsearch/_default"
|
||||
CONF_DIR="/etc/elasticsearch"
|
||||
LOG_DIR="/var/log/elasticsearch/_default"
|
||||
fi
|
||||
|
||||
ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
|
||||
ES_USER=${ES_USER:="elasticsearch"}
|
||||
ES_GROUP=${ES_GROUP:="elasticsearch"}
|
||||
ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
|
||||
MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
|
||||
MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
|
||||
|
||||
DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
|
||||
|
||||
if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
|
||||
ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
|
||||
fi
|
||||
|
||||
export ES_INCLUDE
|
||||
export JAVA_HOME
|
||||
export JAVA_OPTS
|
||||
export ES_JVM_OPTIONS
|
||||
export ES_JAVA_OPTS
|
||||
export ES_STARTUP_SLEEP_TIME
|
||||
|
||||
server_command="/usr/share/elasticsearch/bin/elasticsearch"
|
||||
server_args="-d -p ${PIDFILE} -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR}"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
local conf
|
||||
local conf_file
|
||||
for conf in elasticsearch.yml; do
|
||||
conf_file="${CONF_DIR}/${conf}"
|
||||
if [ ! -f "${conf_file}" ]; then
|
||||
eerror "${conf_file} must be copied into place"
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
|
||||
sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
|
||||
fi
|
||||
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
|
||||
if [ -n "${MAX_LOCKED_MEMORY}" ]; then
|
||||
rc_ulimit="${rc_ulimit} -l ${MAX_LOCKED_MEMORY}"
|
||||
fi
|
||||
|
||||
if [ -n "${MAX_OPEN_FILES}" ]; then
|
||||
rc_ulimit="${rc_ulimit} -n ${MAX_OPEN_FILES}"
|
||||
fi
|
||||
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${PID_DIR}"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background \
|
||||
--chdir "${ES_HOME}" \
|
||||
--user="${ES_USER}" \
|
||||
--pidfile="${PIDFILE}" \
|
||||
--exec ${server_command} -- ${server_args}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${PIDFILE} \
|
||||
--user="${ES_USER}" \
|
||||
--retry=TERM/20
|
||||
eend $?
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
[Unit]
|
||||
Description=Elasticsearch
|
||||
Documentation=http://www.elastic.co
|
||||
Wants=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=ES_HOME=/usr/share/elasticsearch
|
||||
Environment=CONF_DIR=/etc/elasticsearch
|
||||
Environment=DATA_DIR=/var/lib/elasticsearch
|
||||
Environment=LOG_DIR=/var/log/elasticsearch
|
||||
Environment=PID_DIR=/run/elasticsearch
|
||||
EnvironmentFile=-/etc/conf.d/elasticsearch
|
||||
|
||||
WorkingDirectory=/usr/share/elasticsearch
|
||||
|
||||
User=elasticsearch
|
||||
Group=elasticsearch
|
||||
|
||||
ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
|
||||
|
||||
ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
|
||||
-Des.pidfile=${PID_DIR}/elasticsearch.pid \
|
||||
-Des.default.path.home=${ES_HOME} \
|
||||
-Des.default.path.logs=${LOG_DIR} \
|
||||
-Des.default.path.data=${DATA_DIR} \
|
||||
-Des.default.path.conf=${CONF_DIR}
|
||||
|
||||
StandardOutput=journal
|
||||
StandardError=inherit
|
||||
|
||||
# Specifies the maximum file descriptor number that can be opened by this process
|
||||
LimitNOFILE=65535
|
||||
|
||||
# Specifies the maximum number of bytes of memory that may be locked into RAM
|
||||
# Set to "infinity" if you use the 'bootstrap.mlockall: true' option
|
||||
# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/conf.d/elasticsearch
|
||||
#LimitMEMLOCK=infinity
|
||||
|
||||
# Disable timeout logic and wait until process is stopped
|
||||
TimeoutStopSec=0
|
||||
|
||||
# SIGTERM signal is used to stop the Java process
|
||||
KillSignal=SIGTERM
|
||||
|
||||
# Java process is never killed
|
||||
SendSIGKILL=no
|
||||
|
||||
# When a JVM receives a SIGTERM signal it exits with code 143
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,88 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit rpm eutils multilib versionator
|
||||
|
||||
MY_PV=$(get_version_component_range 1-3)
|
||||
|
||||
DESCRIPTION="Translations for the Libreoffice suite"
|
||||
HOMEPAGE="http://www.libreoffice.org"
|
||||
BASE_SRC_URI_TESTING="http://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
|
||||
BASE_SRC_URI_STABLE="http://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="offlinehelp"
|
||||
|
||||
#
|
||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
||||
#
|
||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
||||
LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt-BR pt ru si sk sl sq sv tg tr ug uk vi zh-CN zh-TW "
|
||||
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa:sa-IN sat sd sid sr-Latn sr ss st sw-TZ ta te th tn ts tt uz ve xh zu "
|
||||
|
||||
for lang in ${LANGUAGES_HELP}; do
|
||||
helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz )"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
||||
done
|
||||
for lang in ${LANGUAGES}; do
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
langpack="${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
||||
fi
|
||||
IUSE+=" l10n_${lang%:*}"
|
||||
done
|
||||
unset lang helppack langpack
|
||||
|
||||
RDEPEND+="app-text/hunspell"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local lang dir rpmdir
|
||||
|
||||
# First remove dictionaries, we want to use system ones.
|
||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
||||
|
||||
for lang in ${LANGUAGES}; do
|
||||
# break away if not enabled
|
||||
use l10n_${lang%:*} || continue
|
||||
|
||||
dir=${lang#*:}
|
||||
|
||||
# for english we provide just helppack, as translation is always there
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
||||
rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
|
||||
# Condition required for people that do not install anything eg no l10n
|
||||
# or just english with no offlinehelp.
|
||||
if [[ -d "${dir}" ]] ; then
|
||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
||||
doins -r "${dir}"/*
|
||||
fi
|
||||
# remove extensions that are in the l10n for some weird reason
|
||||
rm -rf "${ED}"usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
|
||||
die "Failed to remove extensions"
|
||||
}
|
@ -0,0 +1,598 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_REQUIRED="optional"
|
||||
KDE_SCM="git"
|
||||
CMAKE_REQUIRED="never"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
PYTHON_REQ_USE="threads,xml"
|
||||
|
||||
# experimental ; release ; old
|
||||
# Usually the tarballs are moved a lot so this should make
|
||||
# everyone happy.
|
||||
DEV_URI="
|
||||
http://dev-builds.libreoffice.org/pre-releases/src
|
||||
http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
|
||||
http://download.documentfoundation.org/libreoffice/old/${PV}/
|
||||
"
|
||||
ADDONS_URI="http://dev-www.libreoffice.org/src/"
|
||||
|
||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
||||
|
||||
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
|
||||
inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS}
|
||||
unset SCM_ECLASS
|
||||
|
||||
DESCRIPTION="A full office productivity suite"
|
||||
HOMEPAGE="http://www.libreoffice.org"
|
||||
SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
|
||||
|
||||
# Split modules following git/tarballs
|
||||
# Core MUST be first!
|
||||
# Help is used for the image generator
|
||||
MODULES="core help"
|
||||
# Only release has the tarballs
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
for i in ${DEV_URI}; do
|
||||
for mod in ${MODULES}; do
|
||||
if [[ ${mod} == core ]]; then
|
||||
SRC_URI+=" ${i}/${P}.tar.xz"
|
||||
else
|
||||
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
|
||||
fi
|
||||
done
|
||||
unset mod
|
||||
done
|
||||
unset i
|
||||
fi
|
||||
unset DEV_URI
|
||||
|
||||
# Really required addons
|
||||
# These are bundles that can't be removed for now due to huge patchsets.
|
||||
# If you want them gone, patches are welcome.
|
||||
ADDONS_SRC=(
|
||||
"${ADDONS_URI}/86b1daaa438f5a7bea9a52d7b9799ac0-xmlsec1-1.2.23.tar.gz" # modifies source code
|
||||
"collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
|
||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||
# no release for 8 years, should we package it?
|
||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
||||
# Does not build with 1.6 rhino at all
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
||||
# requirement of rhino
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
||||
# not packageable
|
||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
||||
)
|
||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
||||
|
||||
unset ADDONS_URI
|
||||
unset ADDONS_SRC
|
||||
|
||||
# Extensions that need extra work:
|
||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
||||
|
||||
IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive
|
||||
gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc
|
||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
[[ ${PV} == *9999* ]] || \
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-text/hunspell:=
|
||||
>=app-text/libabw-0.1.0
|
||||
>=app-text/libebook-0.1
|
||||
>=app-text/libetonyek-0.1
|
||||
app-text/libexttextcat
|
||||
app-text/liblangtag
|
||||
>=app-text/libmspub-0.1.0
|
||||
>=app-text/libmwaw-0.3.1
|
||||
>=app-text/libodfgen-0.1.0
|
||||
app-text/libstaroffice
|
||||
app-text/libwpd:0.10[tools]
|
||||
app-text/libwpg:0.3
|
||||
>=app-text/libwps-0.4
|
||||
app-text/mythes
|
||||
>=dev-cpp/clucene-2.3.3.4-r2
|
||||
=dev-cpp/libcmis-0.5*
|
||||
dev-db/unixODBC
|
||||
dev-lang/perl
|
||||
dev-libs/boost:=
|
||||
dev-libs/expat
|
||||
dev-libs/hyphen
|
||||
dev-libs/icu:=
|
||||
=dev-libs/liborcus-0.12*
|
||||
dev-libs/librevenge
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
!libressl? ( >=dev-libs/openssl-1.0.0d:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
>=dev-libs/redland-1.0.16
|
||||
media-gfx/graphite2
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype:2
|
||||
>=media-libs/glew-1.10:=
|
||||
media-libs/harfbuzz:=[graphite,icu]
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libcdr-0.1.0
|
||||
>=media-libs/libfreehand-0.1.0
|
||||
media-libs/libpagemaker
|
||||
>=media-libs/libpng-1.4:0=
|
||||
>=media-libs/libvisio-0.1.0
|
||||
media-libs/libzmf
|
||||
net-libs/neon
|
||||
net-misc/curl
|
||||
net-nds/openldap
|
||||
sci-mathematics/lpsolve
|
||||
x11-libs/cairo[X,-xlib-xcb(-)]
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
virtual/glu
|
||||
virtual/jpeg:0
|
||||
virtual/opengl
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
coinmp? ( sci-libs/coinor-mp )
|
||||
collada? ( media-libs/opencollada )
|
||||
cups? ( net-print/cups )
|
||||
dbus? ( dev-libs/dbus-glib )
|
||||
eds? (
|
||||
dev-libs/glib:2
|
||||
gnome-extra/evolution-data-server
|
||||
)
|
||||
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 )
|
||||
gltf? ( =media-libs/libgltf-0.0* )
|
||||
gnome? ( gnome-base/dconf )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
)
|
||||
gtk? (
|
||||
x11-libs/gdk-pixbuf
|
||||
>=x11-libs/gtk+-2.24:2
|
||||
)
|
||||
gtk3? (
|
||||
dev-libs/glib:2
|
||||
dev-libs/gobject-introspection
|
||||
x11-libs/gtk+:3
|
||||
)
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
||||
mysql? ( dev-db/mysql-connector-c++ )
|
||||
pdfimport? ( app-text/poppler:=[cxx] )
|
||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||
telepathy? ( net-libs/telepathy-glib )
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!app-office/libreoffice-bin
|
||||
!app-office/libreoffice-bin-debug
|
||||
!app-office/openoffice
|
||||
media-fonts/liberation-fonts
|
||||
media-fonts/libertine
|
||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools $(add_kdeapps_dep kioclient) )
|
||||
java? ( >=virtual/jre-1.6 )
|
||||
vlc? ( media-video/vlc )
|
||||
"
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
|
||||
else
|
||||
# Translations are not reliable on live ebuilds
|
||||
# rather force people to use english only.
|
||||
PDEPEND="!app-office/libreoffice-l10n"
|
||||
fi
|
||||
|
||||
# FIXME: cppunit should be moved to test conditional
|
||||
# after everything upstream is under gbuild
|
||||
# as dmake execute tests right away
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
!<sys-devel/make-3.82
|
||||
>=dev-libs/libatomic_ops-7.2d
|
||||
>=dev-libs/libxml2-2.7.8
|
||||
dev-libs/libxslt
|
||||
dev-perl/Archive-Zip
|
||||
dev-util/cppunit
|
||||
>=dev-util/gperf-3
|
||||
dev-util/intltool
|
||||
>=dev-util/mdds-1.2.2:1=
|
||||
media-libs/glm
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
sys-devel/ucpp
|
||||
sys-libs/zlib
|
||||
virtual/pkgconfig
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
x11-proto/randrproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto
|
||||
java? (
|
||||
dev-java/ant-core
|
||||
>=virtual/jdk-1.6
|
||||
)
|
||||
odk? ( >=app-doc/doxygen-1.8.4 )
|
||||
test? ( dev-util/cppunit )
|
||||
"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
bluetooth? ( dbus )
|
||||
collada? ( gltf )
|
||||
eds? ( gnome )
|
||||
gnome? ( gtk )
|
||||
telepathy? ( gtk )
|
||||
libreoffice_extensions_nlpsolver? ( java )
|
||||
libreoffice_extensions_scripting-beanshell? ( java )
|
||||
libreoffice_extensions_scripting-javascript? ( java )
|
||||
libreoffice_extensions_wiki-publisher? ( java )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# not upstreamable stuff
|
||||
"${FILESDIR}/${PN}-5.3-system-pyuno.patch"
|
||||
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
||||
|
||||
# TODO: upstream
|
||||
"${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
use java || \
|
||||
ewarn "If you plan to use Base application you should enable java or you will get various crashes."
|
||||
|
||||
if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
|
||||
ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data,"
|
||||
ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3."
|
||||
ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
|
||||
fi
|
||||
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
|
||||
CHECKREQS_MEMORY="512M"
|
||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||
CHECKREQS_DISK_BUILD="22G"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="6G"
|
||||
fi
|
||||
check-reqs_pkg_pretend
|
||||
|
||||
if ! $(tc-is-clang) && { [[ $(gcc-major-version) -lt 4 ]] ||
|
||||
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
|
||||
eerror "Compilation with gcc older than 4.7 is not supported"
|
||||
die "Too old gcc found."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure pg version but we have to be sure the pg is installed (first
|
||||
# install on clean system)
|
||||
if use postgres && has_version dev-db/postgresql; then
|
||||
local pgslot=$(postgresql-config show)
|
||||
if [[ ${pgslot//.} -lt 90 ]] ; then
|
||||
eerror "PostgreSQL slot must be set to 9.0 or higher."
|
||||
eerror " postgresql-config set 9.0"
|
||||
die "PostgreSQL slot is not set to 9.0 or higher."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-opt-2_pkg_setup
|
||||
kde4-base_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
xdg_environment_reset
|
||||
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
CHECKREQS_MEMORY="512M"
|
||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||
CHECKREQS_DISK_BUILD="22G"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="6G"
|
||||
fi
|
||||
check-reqs_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local mod
|
||||
|
||||
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
|
||||
use branding && unpack "${BRANDING}"
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
unpack "${P}.tar.xz"
|
||||
for mod in ${MODULES}; do
|
||||
[[ ${mod} == core ]] && continue
|
||||
unpack "${PN}-${mod}-${PV}.tar.xz"
|
||||
done
|
||||
else
|
||||
local base_uri branch checkout mypv
|
||||
base_uri="git://anongit.freedesktop.org"
|
||||
for mod in ${MODULES}; do
|
||||
branch="master"
|
||||
mypv=${PV/.9999}
|
||||
[[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
|
||||
git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
|
||||
[[ ${mod} != core ]] && checkout="${S}/${mod}"
|
||||
[[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
|
||||
git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
|
||||
eapply "${PATCHES[@]}"
|
||||
eapply_user
|
||||
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
# hack in the autogen.sh
|
||||
touch autogen.lastrun
|
||||
|
||||
# system pyuno mess
|
||||
sed -i \
|
||||
-e "s:%eprefix%:${EPREFIX}:g" \
|
||||
-e "s:%libdir%:$(get_libdir):g" \
|
||||
pyuno/source/module/uno.py \
|
||||
pyuno/source/officehelper.py || die
|
||||
# sed in the tests
|
||||
sed -i \
|
||||
-e "s#all : build unitcheck#all : build#g" \
|
||||
solenv/gbuild/Module.mk || die
|
||||
sed -i \
|
||||
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
||||
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
||||
Makefile.in || die
|
||||
|
||||
sed -i \
|
||||
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
||||
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
||||
bin/distro-install-desktop-integration || die
|
||||
|
||||
if use branding; then
|
||||
# hack...
|
||||
mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
|
||||
fi
|
||||
|
||||
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
||||
if ! use pdfimport; then
|
||||
sed -i \
|
||||
-e ":MimeType: s:application/pdf;::" \
|
||||
-e ":Keywords: s:pdf;::" \
|
||||
sysui/desktop/menus/draw.desktop || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local java_opts
|
||||
local ext_opts
|
||||
|
||||
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
|
||||
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
||||
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
||||
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
||||
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
||||
|
||||
# optimization flags
|
||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||
# System python enablement:
|
||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||
export PYTHON_LIBS=$(python_get_LIBS)
|
||||
|
||||
if use collada; then
|
||||
export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
|
||||
export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
|
||||
fi
|
||||
|
||||
# libreoffice extensions handling
|
||||
for lo_xt in ${LO_EXTS}; do
|
||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
|
||||
else
|
||||
ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
|
||||
fi
|
||||
done
|
||||
|
||||
if use java; then
|
||||
# hsqldb: system one is too new
|
||||
java_opts="
|
||||
--without-junit
|
||||
--without-system-hsqldb
|
||||
--with-ant-home="${ANT_HOME}"
|
||||
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
||||
--with-jvm-path="${EPREFIX}/usr/lib/"
|
||||
"
|
||||
|
||||
use libreoffice_extensions_scripting-beanshell && \
|
||||
java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
|
||||
|
||||
use libreoffice_extensions_scripting-javascript && \
|
||||
java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
|
||||
fi
|
||||
|
||||
if use kde; then
|
||||
# bug 544108, bug 599076
|
||||
export QMAKEQT4="$(qt4_get_bindir)/qmake"
|
||||
export MOCQT4="$(qt4_get_bindir)/moc"
|
||||
fi
|
||||
|
||||
# system headers/libs/...: enforce using system packages
|
||||
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
||||
# --enable-cairo: ensure that cairo is always required
|
||||
# --enable-graphite: disabling causes build breakages
|
||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||
# --enable-release-build: build the libreoffice as release
|
||||
# --disable-fetch-external: prevent dowloading during compile phase
|
||||
# --enable-extension-integration: enable any extension integration support
|
||||
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||
# --without-system-sane: just sane.h header that is used for scan in writer,
|
||||
# not linked or anything else, worthless to depend on
|
||||
econf \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \
|
||||
--with-system-dicts \
|
||||
--with-system-headers \
|
||||
--with-system-jars \
|
||||
--with-system-libs \
|
||||
--enable-cairo-canvas \
|
||||
--enable-graphite \
|
||||
--enable-largefile \
|
||||
--enable-mergelibs \
|
||||
--enable-neon \
|
||||
--enable-python=system \
|
||||
--enable-randr \
|
||||
--enable-release-build \
|
||||
--disable-breakpad \
|
||||
--disable-ccache \
|
||||
--disable-dependency-tracking \
|
||||
--disable-epm \
|
||||
--disable-fetch-external \
|
||||
--disable-gstreamer-0-10 \
|
||||
--disable-online-update \
|
||||
--disable-report-builder \
|
||||
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
|
||||
--with-build-version="Gentoo official package" \
|
||||
--enable-extension-integration \
|
||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
|
||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
|
||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
|
||||
--with-external-tar="${DISTDIR}" \
|
||||
--with-lang="" \
|
||||
--with-parallelism=$(makeopts_jobs) \
|
||||
--with-system-ucpp \
|
||||
--with-vendor="Gentoo Foundation" \
|
||||
--with-x \
|
||||
--without-fonts \
|
||||
--without-myspell-dicts \
|
||||
--without-help \
|
||||
--with-helppack-integration \
|
||||
--without-system-sane \
|
||||
$(use_enable bluetooth sdremote-bluetooth) \
|
||||
$(use_enable coinmp) \
|
||||
$(use_enable collada) \
|
||||
$(use_enable cups) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable dbus) \
|
||||
$(use_enable eds evolution2) \
|
||||
$(use_enable firebird firebird-sdbc) \
|
||||
$(use_enable gltf) \
|
||||
$(use_enable gnome gio) \
|
||||
$(use_enable gnome dconf) \
|
||||
$(use_enable gstreamer gstreamer-1-0) \
|
||||
$(use_enable gtk) \
|
||||
$(use_enable gtk3) \
|
||||
$(use_enable kde kde4) \
|
||||
$(use_enable mysql ext-mariadb-connector) \
|
||||
$(use_enable odk) \
|
||||
$(use_enable pdfimport) \
|
||||
$(use_enable postgres postgresql-sdbc) \
|
||||
$(use_enable quickstarter systray) \
|
||||
$(use_enable telepathy) \
|
||||
$(use_enable vlc) \
|
||||
$(use_with coinmp system-coinmp) \
|
||||
$(use_with collada system-opencollada) \
|
||||
$(use_with gltf system-libgltf) \
|
||||
$(use_with googledrive gdrive-client-id ${google_default_client_id}) \
|
||||
$(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \
|
||||
$(use_with java) \
|
||||
$(use_with mysql system-mysql-cppconn) \
|
||||
$(use_with odk doxygen) \
|
||||
${java_opts} \
|
||||
${ext_opts}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
||||
# bug 501508, bug 540624, bug 545974 and probably more
|
||||
addpredict /dev/dri
|
||||
addpredict /dev/ati
|
||||
addpredict /dev/nvidiactl
|
||||
|
||||
# hack for offlinehelp, this needs fixing upstream at some point
|
||||
# it is broken because we send --without-help
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||
(
|
||||
grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
|
||||
source "${T}/config_host.mk" 2&> /dev/null
|
||||
|
||||
local path="${WORKDIR}/helpcontent2/source/auxiliary/"
|
||||
mkdir -p "${path}" || die
|
||||
|
||||
echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
|
||||
perl "${S}/helpcontent2/helpers/create_ilst.pl" \
|
||||
-dir=icon-themes/galaxy/res/helpimg \
|
||||
> "${path}/helpimg.ilst"
|
||||
[[ -s "${path}/helpimg.ilst" ]] || \
|
||||
ewarn "The help images list is empty, something is fishy, report a bug."
|
||||
)
|
||||
|
||||
local target
|
||||
use test && target="build" || target="build-nocheck"
|
||||
|
||||
# this is not a proper make script
|
||||
make ${target} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
make unitcheck || die
|
||||
make slowcheck || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# This is not Makefile so no buildserver
|
||||
make DESTDIR="${D}" distro-pack-install -o build -o check || die
|
||||
|
||||
# bug 593514
|
||||
if use gtk3; then
|
||||
dosym libreoffice/program/liblibreofficekitgtk.so \
|
||||
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
||||
fi
|
||||
|
||||
# bash completion aliases
|
||||
bashcomp_alias \
|
||||
libreoffice \
|
||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
||||
|
||||
if use branding; then
|
||||
insinto /usr/$(get_libdir)/${PN}/program
|
||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||
dodir /etc/env.d
|
||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
|
||||
fi
|
||||
|
||||
# Hack for offlinehelp, this needs fixing upstream at some point.
|
||||
# It is broken because we send --without-help
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=46506
|
||||
insinto /usr/$(get_libdir)/libreoffice/help
|
||||
doins xmlhelp/util/*.xsl
|
||||
|
||||
# Remove desktop files to support old installs that can't parse mime
|
||||
rm -r "${ED}"usr/share/mimelnk/ || die
|
||||
|
||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
|
||||
pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Cache updates - all handled by kde eclass for all environments
|
||||
kde4-base_pkg_preinst
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
kde4-base_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
kde4-base_pkg_postrm
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="AsciiDoc is a plain text human readable/writable document format"
|
||||
HOMEPAGE="http://asciidoc.org/"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="examples graphviz highlight test vim-syntax"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75
|
||||
dev-libs/libxslt
|
||||
graphviz? ( media-gfx/graphviz )
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
highlight? ( || ( dev-python/pygments[${PYTHON_USEDEP}] dev-util/source-highlight ) )
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
DEPEND="test? ( dev-util/source-highlight
|
||||
media-sound/lilypond
|
||||
media-gfx/imagemagick
|
||||
dev-texlive/texlive-latex
|
||||
app-text/dvipng
|
||||
media-gfx/graphviz
|
||||
${PYTHON_DEPS} )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
if ! use vim-syntax; then
|
||||
sed -i -e '/^install/s/install-vim//' Makefile.in || die
|
||||
else
|
||||
sed -i\
|
||||
-e "/^vimdir/s:@sysconfdir@/vim:${EPREFIX}/usr/share/vim/vimfiles:" \
|
||||
-e 's:/etc/vim::' \
|
||||
Makefile.in || die
|
||||
fi
|
||||
|
||||
# Only needed for prefix - harmless (does nothing) otherwise
|
||||
sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \
|
||||
"${S}/asciidoc.py" || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --sysconfdir="${EPREFIX}"/usr/share
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use vim-syntax && dodir /usr/share/vim/vimfiles
|
||||
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
python_fix_shebang "${ED}"/usr/bin/*.py
|
||||
|
||||
dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \
|
||||
dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt
|
||||
|
||||
# Below results in some files being installed twice in different locations, but they are in the right place,
|
||||
# uncompressed, and there won't be any broken links. See bug #483336.
|
||||
if use examples; then
|
||||
cp -rL examples/website "${D}"/usr/share/doc/${PF}/examples || die
|
||||
fi
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd tests || die
|
||||
local -x ASCIIDOC_PY=../asciidoc.py
|
||||
"${PYTHON}" test${PN}.py update || die
|
||||
"${PYTHON}" test${PN}.py run || die
|
||||
}
|
@ -1,12 +1,16 @@
|
||||
AUX calibre-2.83.0-lzxd-bounds-error-bug-540596.patch 1296 SHA256 468d264c1120ade7b423e75b181fca5cf1d289812cacaf3baca58cbc3886d804 SHA512 fba16c95a69b38113d4331faceae4a81f2319ae1631a03662bd3483ad6f1b687d16db28f9df019990a3bc6918c75f4a4492ca7ef772168a575cb06ff0761bddf WHIRLPOOL 01bd3f992794b9a68d75c87548623803d2a84ccba7ea2a83b43c272c42ba7bfb9e8ea425f864d1f0bfb5b906d3152044b4d1bcd2c5d5e4d11ad6f37f0d9c365b
|
||||
AUX calibre-2.9.0-no_updates_dialog.patch 1661 SHA256 2a711b55c48bb53ff54e1654c7a907212966e815dde879f8e154df389127c230 SHA512 9663b95ed64bdc2bc40692922384d1c6073177eee58a49c412883c4d2ae098e4e0b4ea51b80443108b7c0c3e4f3fda60c00fc3be4d0b62a5d79d982697927235 WHIRLPOOL 6af5e426e2f2f4d2dfc8c0f5150b5ae70dea0c536ddf50e531ecea06d203ecac93d6743a4cd7418dd93af95e2ee251a6c06aa93535bf75564819cf40babb1e5e
|
||||
AUX calibre-disable_plugins.patch 1042 SHA256 4921ba7be29d8e2789f3e31d23faa96f308cbf556f2704c001a3dd4dda9dfda2 SHA512 c152ddd92728a89db10c75a4d00a968bf119bef68da8b9116c76827e3cdc8f8a7e5c45fbb973f6ca8db1f79e461518351ce2d47e5e059c282f36d2df499d1629 WHIRLPOOL 8a4870df539bc768b9dcfb28623773d730ba27ef307dac856f4fd9ff682b710a7b33dc93e505cb5d974a95885089c079838a59d579c496ad6a173384eb14bdda
|
||||
AUX calibre-server-3.conf 541 SHA256 be3511e03fc38beadac6703eec5720bae5257b11f6bd6dce907ce977b1310ed9 SHA512 12ef793a5b6ffd4413f780a13cad63927a95f15d17d85d4229eb5005ead68e51779abb822f9898ab5ae8c2094affeec1f9e85c34f109499739e6726b7641542a WHIRLPOOL 18ead6612ec8eba3953323ca1327689610f5a84466e582f786aa8d650e946b20e8516c785fa172819c23b5d6e5540246493d70a728184286c67b41fab8044e78
|
||||
AUX calibre-server-3.init 1796 SHA256 49d43520cc064781a04cf53bc33892c75daad7bffde8ced9b92a986cf11fc74b SHA512 88110ded1b9c6cf8d3bfc3d5889654f77578f9d299e88daea9023767b930082e00fbddbb92a6e43c46d900248f3684232d93396ec1d0e784c7ec14b44783f98a WHIRLPOOL 3c1eebcceae3bc8599b68d038bfd5049d652114d43988ac5dfb182e677efa8d406ac7422b7a631ac9ad415437b96a9192d30c83823a81fe348afe10499998a73
|
||||
AUX calibre-server.conf 523 SHA256 55b20e6a208f7eb7128e0f8e0f8ead83a55ef80bcb62737d1658074141a5b213 SHA512 4595786d9b6ed7662a1124e8acc32e03e0149f614a07890f9df08d05811a1b8de51cc33cc1bfbf30b072c7ad75dc3b8247e9de53d20ee2b45017cb4160437058 WHIRLPOOL a4ba22fb5a9893c2db6254e2ee569514dd132284e0f4e8b62561ec3def773c917d17d6718975b1ecbd02197cb3330506e48b6dd656c20cfacfd610a680e34db1
|
||||
AUX calibre-server.init 1811 SHA256 52c42322c2766848384f1695d0ddd805fc6344984700e10678c991408d6839dd SHA512 760aa7a8f51b23b116ba07749855737869ff2313f0528d67e5a46bc362e5c0a04a7e1f46c32dd6e82add4fa5dc41d397db32dbd1a09c912008e0890d1a133eeb WHIRLPOOL a2d53be995c282c45d344002e8769fe73b9aa6baa4b53a8672e399e0155ad160aa45d74ff93c67c2f29e030acbba577c9e97427af406672ed6cf4eaeeb4d4404
|
||||
DIST calibre-2.78.0.tar.xz 38739404 SHA256 d2b0b0c5451d3ac05ce9de0b801ddf8de7664fee45f273d7ee8445a1ec2f898b SHA512 0779ac385dde45ac4baee7cecb0916e245f3e1cf20662bad9d9a4278265390b1aa89c2b478601b57113e7de08a69343288488ee299e8b43332f0129e650aa0ca WHIRLPOOL 325fc344445078ef0df0a29b4cd8e32445a881ede89e3db87606166ff0c8b7db10b7cc34432e63c2bb49382537a5107686339b987f1be807d59a1786ddfd4a75
|
||||
DIST calibre-2.85.1.tar.xz 37783284 SHA256 8c8db280c51b26284bff1c066fb503ecef9e1f15f7e2e7b4f705c817ee041abd SHA512 ce29924213fa7461bbf2fc62f26bd53e4eafdf3b0dd58e241071592be4ee038cdb3ac6ac2982229dd0e52595a93aca7d921640ea55796950d1f3ac3c2742af4f WHIRLPOOL 1432f71c19c8ff41dede3370287813281557f3659c862e7a9fe76d548bf393d8dd889aa4dc92d514244b2d35ce25b962c2942ef3dec2bf1ebaa81b1ea6bd0c94
|
||||
DIST calibre-3.1.1.tar.xz 35841216 SHA256 cfa00b953cf68f0760a4588c8adad066749cce673178e85e4c249790c07f01d2 SHA512 1da11ede70d93fa608873726fdcd9b39f261c045ea874521b45211df951bdb15e62958f50628eb6cfcfef2ff14b89da74b0f89481f3671480dbc9589b096d695 WHIRLPOOL fa85b83fc2502cdbdb12259a0d56cff9867606088f62b6a147ee4fa0f99174d5e74a396239b07441124da839aa1000d8ba146b588290b30a70a1caa1166003c0
|
||||
EBUILD calibre-2.78.0.ebuild 8033 SHA256 ae79fb390f3eda82331c14638fd184f1388f92dc4a367349e2cd8a70e5b1e661 SHA512 c65f281218b26c1f77c6e226ab86bce7dab3089c99e5a8be39b52cf6f77c643520cfb5a1026d303a09964044bfe6c9ff2f5dc1fef1a625a61354a9d950d43487 WHIRLPOOL 084d6f160cdecf7d58405c8d98a5bdab410d055024a2af96fc9a1ca1bd47ca208c1960f74dc757a676569ae0b6beaa41a589527ec6a0976ed8783dc1e748b4dd
|
||||
EBUILD calibre-2.85.1.ebuild 8148 SHA256 532d74fd4221b749579452893e39ddc50124998733ddd0cdfa38ab80db13b539 SHA512 7ed1aa17e1d4b9efad1d2a3215433c76e384f77c1d75e49dc23c79fe4228d2176ee99aaeeec0f71732697773db76cb78bd15417be2670200b2532360979f5f48 WHIRLPOOL 5e2619d3ab333ae93dfd6bcd7907515a778e24cf9bb5f62629db63bff357d4b6676a9c3b8b165c538cbc29f824620865009527d3c28fe95b9bb6508dc450f766
|
||||
EBUILD calibre-3.1.1-r2.ebuild 8800 SHA256 1e37cd836f0bc2a6ea54e44df4df54d7f6161c6e354a3d0231b75379febbdb75 SHA512 581cb6b0331a058b013cf32de5b7d87b7ddf35482f91c62dbb947d392c90d46cf58690780534a1bb2c243dca2cee1b015b0ef361ed9763fe3cddd20ef2faafb8 WHIRLPOOL b9a9b502c578f30775aeca3bae247a12e56e2123144fd1ae5b1021dfd637b44b68b27fdfe36586be5f9b87d75f36a43990b7ae4972622d0517ba6a02e0d1e189
|
||||
MISC ChangeLog 8048 SHA256 cda01ae0e25d1044578adf6eb9110e044a61e3632007117c44a6c8450e3d42ab SHA512 eeeb0d3508851fdb0781c100a35949b7cbbca54b2db0d90ace1d7442731763d64c82056e0140525aa583bea2a5781a85da7cfb3d29221a4978d9831bc3b0f9ed WHIRLPOOL f75954b21b0c03f53e5506056d789a0005ade7453e394bf2785caa83ad7fe3f65e1d94270cafafc8ce0a61d745643530e484adcfd99f8dc575097b720a4a0c7c
|
||||
MISC ChangeLog-2015 55764 SHA256 646fbdf0734a1e0b37bcbe60db314ed6d429f00855dbc5ad3998b421dc770162 SHA512 e5e3b325fb049600e53d40b0b57bd9cea6e85c42079c7fe7a237f103ed9c3ab2a4efc4d6e0805a1a2aac369fce402b431c3406a89c56df16e05f83e8e7b9275a WHIRLPOOL 74cdf07d68112e9c4a59fcbe7211708184df32f9c86af748382e706b8706d26e8d0dda3df9379d8b6fbba4cca758dcf51883e51d34077202657922f10fac499e
|
||||
MISC metadata.xml 382 SHA256 bbd3bcd6ae5f8fcad12ba26cca6573afdd5ce30f6b49a6c1906962e41503b724 SHA512 8503e0a4a48d93682c386eb1d6507b4b26585afc9d62b7cd52bc00b457a887bd17422a03669ff404570ff7f5ff6f0bba14ee935979f8b54722870d6620097de5 WHIRLPOOL 217d2edc15bb7a9abd41dfb48c0cfc6402145cb8b4b4a43493ea4b9f0df3c365b96918a092ec8f53b4f86fce229e5a1169949475f4299b628a88916e42232774
|
||||
|
@ -0,0 +1,276 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="sqlite,ssl"
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs python-single-r1
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
SLOT="0"
|
||||
IUSE="ios +udisks"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.26.5[qt5]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
dev-libs/glib:2
|
||||
>=dev-libs/icu-57.1:=
|
||||
>=dev-python/apsw-3.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}]
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
>=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cssutils-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}]
|
||||
>=dev-libs/dbus-glib-0.106
|
||||
>=sys-apps/dbus-1.10.8
|
||||
>=dev-python/lxml-3.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/mechanize-0.2.5[${PYTHON_USEDEP}]
|
||||
dev-python/msgpack[${PYTHON_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQt5-5.8[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}]
|
||||
dev-python/regex[${PYTHON_USEDEP}]
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libmtp-1.1.11:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-gfx/optipng-0.7.6
|
||||
sys-libs/zlib
|
||||
virtual/libusb:1=
|
||||
virtual/python-dnspython[${PYTHON_USEDEP}]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
>=x11-misc/xdg-utils-1.0.2-r2
|
||||
ios? (
|
||||
>=app-pda/usbmuxd-1.0.8
|
||||
>=app-pda/libimobiledevice-1.2.0
|
||||
)
|
||||
udisks? ( virtual/libudev )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}]
|
||||
>=virtual/podofo-build-0.9.4
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
eapply \
|
||||
"${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|, PreserveMIMEDefaults():|:|" \
|
||||
-e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|cmd\[2\]|cmd[4]|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/build.py || die "sed failed to patch build.py"
|
||||
|
||||
# use system beautifulsoup, instead of bundled
|
||||
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
|
||||
|| die "could not remove bundled beautifulsoup"
|
||||
find "${S}" -type f -name \*.py -exec \
|
||||
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
|
||||
|| die "could not sed bundled beautifulsoup out of the source tree"
|
||||
|
||||
# avoid failure of xdg tools to recognize vendor prefix
|
||||
sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \
|
||||
-e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \
|
||||
-e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \
|
||||
-i "${S}"/src/calibre/linux.py || die 'sed failed'
|
||||
|
||||
# don't create/install uninstaller
|
||||
sed '/self\.create_uninstaller()/d' -i src/calibre/linux.py || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
echo $0 : $@
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database} || die
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die
|
||||
|
||||
export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake"
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
#dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
#dodir $(python_get_sitedir)
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${PYTHON}" setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
find "${ED}"usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
einfo "Compiling python modules"
|
||||
python_optimize "${ED}"usr/lib/calibre
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
|
||||
|
||||
bashcomp_alias calibre \
|
||||
lrfviewer \
|
||||
calibre-debug \
|
||||
ebook-meta \
|
||||
calibre-server \
|
||||
ebook-viewer \
|
||||
ebook-polish \
|
||||
fetch-ebook-metadata \
|
||||
lrf2lrs \
|
||||
ebook-convert \
|
||||
ebook-edit \
|
||||
calibre-smtp \
|
||||
ebook-device
|
||||
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Indentify stray directories from upstream's "Binary install"
|
||||
# method (see bug 622728).
|
||||
CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre
|
||||
CALIBRE_LIB_CONTENT=$(for x in "${ED%/}${CALIBRE_LIB_DIR}"/*; do
|
||||
printf -- "${x##*/} "; done) || die "Failed to list ${ED%/}${CALIBRE_LIB_DIR}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
|
||||
local x
|
||||
for x in "${EROOT%/}${CALIBRE_LIB_DIR}"/*; do
|
||||
if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
|
||||
elog "Purging '${x}'"
|
||||
rm -rf "${x}"
|
||||
fi
|
||||
done
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
# /etc/conf.d/calibre-server
|
||||
# Change this to the user you want to run calibre-server as.
|
||||
# You may specify a group too, after a colon
|
||||
# NOTE: This must be set and not to root!
|
||||
CALIBRE_USER=
|
||||
|
||||
# Set the path of the library to serve.
|
||||
# Defaults to the default location for CALIBRE_USER.
|
||||
#CALIBRE_LIBRARY='<user home directory>/Calibre Library'
|
||||
|
||||
# Extra options to pass to calibre-server.
|
||||
# See the calibre-server man page for more options.
|
||||
#CALIBRE_SERVER_OPTS="--userdb /srv/calibre/users.sqlite --enable-auth --worker-count 10 --port 8080"
|
@ -0,0 +1,58 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
depend() {
|
||||
need net
|
||||
need localmount
|
||||
after bootmisc
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ "${CALIBRE_USER}" = "" -o "${CALIBRE_USER}" = "root" ] ; then
|
||||
eerror "Please edit /etc/conf.d/calibre-server"
|
||||
eerror "You have to specify a user to run calibre-server as, as we will not run it as root!"
|
||||
eerror "Modify CALIBRE_USER to your needs (you can also add a group, after a colon)"
|
||||
return 1
|
||||
fi
|
||||
if ! getent passwd "${CALIBRE_USER%:*}" >/dev/null ; then
|
||||
eerror "Please edit /etc/conf.d/calibre-server"
|
||||
eerror "Your user has to exist!"
|
||||
return 1
|
||||
fi
|
||||
if [ "${CALIBRE_USER%:*}" != "${CALIBRE_USER}" ] ; then
|
||||
if ! getent group "${CALIBRE_USER#*:}" >/dev/null ; then
|
||||
eerror "Please edit /etc/conf.d/calibre-server"
|
||||
eerror "Your group has to exist too!"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
if [ "${CALIBRE_LIBRARY}" = "" ] ; then
|
||||
CALIBRE_USER_HOME=$(getent passwd "${CALIBRE_USER%:*}" | cut -d ':' -f 6)
|
||||
CALIBRE_LIBRARY="${CALIBRE_USER_HOME}/Calibre Library"
|
||||
fi
|
||||
if [ ! -d "${CALIBRE_LIBRARY}" ] ; then
|
||||
eerror "Please edit /etc/conf.d/calibre-server"
|
||||
eerror "The Calibre library, '${CALIBRE_LIBRARY},' does not exist."
|
||||
eerror "Please modify CALIBRE_LIBRARY to point to a valid library."
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return $?
|
||||
local pidfile=/var/run/calibre-server.pid
|
||||
ebegin "Starting calibre-server"
|
||||
start-stop-daemon --user "${CALIBRE_USER}" \
|
||||
--pidfile "${pidfile}" --make-pidfile --background --exec /usr/bin/calibre-server \
|
||||
-- ${CALIBRE_OPTS} "${CALIBRE_LIBRARY}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping calibre-server"
|
||||
start-stop-daemon --stop --user "${CALIBRE_USER}" \
|
||||
--pidfile /var/run/calibre-server.pid
|
||||
eend $?
|
||||
}
|
@ -1,10 +1,12 @@
|
||||
AUX libmwaw-0.3.11-CVE-2017-9433.patch 792 SHA256 4bfe6e85cad2d9b5e8fcbc59c15d09cfbeab93fe310e05f6bf4c4a54a083044d SHA512 a5f2996dd2e2de6eec0c637ee9e9777a803a4f7386c38436ad59c0af972c0a2b0ababc90018e5ebf0a67453fd66f154c175b82a1fb7dc6ba82d16468f7aee696 WHIRLPOOL a90b6109af04787d923e4f5ffb0fde62e2aee201e59c4f29b6a0d76e9e9ff9e1bb174c0462831080e30c66f4be7741e5ee01b2c73a8e1d7377153641727a2f33
|
||||
DIST libmwaw-0.3.10.tar.xz 1229964 SHA256 b246a0c15fcf98076f2a1f2cf4d44a714f5c8eb39690442fc7fbbd01fa34f220 SHA512 5d225ecb89466d486900a33abf10b61e6f6bbff00053c5f6ab0046960c64c3022529a1e637594eca47b14c96c9f8440db9331d1db687f761c1026c64fb8301d5 WHIRLPOOL 7d537d55cc8491f8be2676d5b9a0e36ecdeb041e38e9416c43547730871bf757409c8b77460e507d87c4cc287b62ad2b449a5af8bed4b0406fbcca3759ef3ff4
|
||||
DIST libmwaw-0.3.11.tar.xz 1254200 SHA256 4b483a196bbe82bc0f7cb4cdf70ef1cedb91139bd2e037eabaed4a4d6ed2299a SHA512 d4a810c6066023608a15ece8a6bbc958e586d679fc4ad51156091ec88355292872f10198e723e28776b45e140a830fd4c698732cf6103743d6e80ad8e1d778ab WHIRLPOOL 2de11bde90937727372eb7e7d4d1af52b66e8ef2f14bd78ce1d26399aa6ee853dc1fe11000cfcf8a361698296866ced2f2da7848f75763a22458ae0504903b48
|
||||
DIST libmwaw-0.3.8.tar.xz 1200052 SHA256 6afcbb250b6bed042149cd4dfb3ba7b4be796b11fe2322dfcdebd121199a3b05 SHA512 3e3684479460d22b83da225f8f1bc4de306f8e4a9e48c7ea128cba08f122b093c529f2e73b8f8ae1b235665d4f3c7de2fc461692e21f13364da678add707d01c WHIRLPOOL 77d9b1253191089da5c869e7bb160253672747cfd502350b28acde538e02b8418c0ee63899bf903b4c3c9f1561d145d0626c822f26467cb8ba7aa4de04287158
|
||||
EBUILD libmwaw-0.3.10.ebuild 1048 SHA256 6aea7a083465feb5772e05a9507a03175bf3d2d93cbcd365ad12bc83f9c63c6b SHA512 76996c839ae0b7d1597ddeb976bad2c53587f2dc1b42303b58208a42ac5ed309be38f46ce751d7c18ba9455e3971fdd0ea2e833f41b58008c6a0bd1f6e900a45 WHIRLPOOL 65f06f460e1c201598125f83106bd12f6342fbe5b6ef1e016e82ca814d814fe785fbb67c2e406ff9d1b5b7af4194c14091977dc9450b847f0cbec2c0591ee7cc
|
||||
EBUILD libmwaw-0.3.11-r1.ebuild 1082 SHA256 bbe065da703b0bc885ac53c4a5e27e06562e6ca0e79205cf5e1ad89ae9024d67 SHA512 08e22f94fecdcba6e630c776bc1d9f085c84d7ab8469c5abe395a6a8082d0f080543756e14f6b4557d5091e5cd7f40b1024067dcf7f371c3d8080a3649713f02 WHIRLPOOL 114baa7c677a8998fd9ce83de55a73f6edaeefb5e5206267c8a543de5d064be872d4164a599f5c5288ac9e4546c409901b23cadc657df171d48f6cb33e97bcda
|
||||
EBUILD libmwaw-0.3.11.ebuild 1048 SHA256 6aea7a083465feb5772e05a9507a03175bf3d2d93cbcd365ad12bc83f9c63c6b SHA512 76996c839ae0b7d1597ddeb976bad2c53587f2dc1b42303b58208a42ac5ed309be38f46ce751d7c18ba9455e3971fdd0ea2e833f41b58008c6a0bd1f6e900a45 WHIRLPOOL 65f06f460e1c201598125f83106bd12f6342fbe5b6ef1e016e82ca814d814fe785fbb67c2e406ff9d1b5b7af4194c14091977dc9450b847f0cbec2c0591ee7cc
|
||||
EBUILD libmwaw-0.3.8.ebuild 1032 SHA256 38cca856cd78025b36f47782f6a7b80f5e2d1fd4037708d0a4dcd46a0d5ad8ad SHA512 e878d0732f0541ed17a1a62f84fd6087db6c8287a3d8370582b5c8c5b6bb8cdee83828daa4b78a6e8cc1f704e2eeb94a224ceb96d03e7f67c9f7201e5469a961 WHIRLPOOL 938bf40a570526dd77cc5ea2638ded67d3afad10deb877a43627269f3783962f8239dca7c1cd69e22719d6bda65baa850778260b93f43a831f917c2a0f2f9e95
|
||||
EBUILD libmwaw-9999.ebuild 1048 SHA256 6aea7a083465feb5772e05a9507a03175bf3d2d93cbcd365ad12bc83f9c63c6b SHA512 76996c839ae0b7d1597ddeb976bad2c53587f2dc1b42303b58208a42ac5ed309be38f46ce751d7c18ba9455e3971fdd0ea2e833f41b58008c6a0bd1f6e900a45 WHIRLPOOL 65f06f460e1c201598125f83106bd12f6342fbe5b6ef1e016e82ca814d814fe785fbb67c2e406ff9d1b5b7af4194c14091977dc9450b847f0cbec2c0591ee7cc
|
||||
EBUILD libmwaw-9999.ebuild 1030 SHA256 13c867cdabc34bbc8bd10fd65dfe61b8f1660650a56e3e0cfd50af6aa9489aef SHA512 ad24e38700f9fb91b90615c14b799bb677119e18303f90591a4f7df106677552b7fc4a005e5e5555e5bb6f6de3fb13d952a366dc534212eb6c84b053e3fb241e WHIRLPOOL 46cb6783a4e23ea20c3d3c9d1b40ad43bf1e3efdcafb2c7bca1917511d1bb07103b9fa3fb8263c1bfd63c50d4b37128abac869b5c5bc4b464af22285be73a185
|
||||
MISC ChangeLog 5189 SHA256 60cf618cc047ff50be95311d7ee467a81fc77c05ae515246aaf484b444d73db3 SHA512 92b79f39c8a5a2a46132ed7e92f2511a6b26fef8bdbc07afb5a46a09d8f27fcc44a9101657af2b2d7decaa4ad7aa1f68d089ec1f2751f73834f1a8468113d57c WHIRLPOOL 808bd24d756f597d51c52a13ab795fde0beaf6dbd9b15efd7f48c961829d8b1aeeddd083153f42a2a0741cf353a44988d7f14d571cbbff5fbaf2445516fe90fe
|
||||
MISC ChangeLog-2015 3078 SHA256 1024b69c7cda3bd25b237d89db5d8b7aa24ad4acdf8e8aee491811f797c43c83 SHA512 6057013db3fce9175ae94710482a6aa6b4ef519ffcccbb73c08da7328e9fd06df2ba8b9060c49af1f62d3f30a70a96f3c7a4ab64735da98db14aa6a7bd2dfe67 WHIRLPOOL 7b9875d8c9e6bf3a30224167007087a7070dad369e287a31fae1e7c1b3f261132faefbb2e83f944f8927a9f8d4b5574529a27cd30b1d913a8a56b1609e35b164
|
||||
MISC metadata.xml 403 SHA256 5489f721ce312bbf8d6b247d199be6c652bbddd67a96e0039e64505b82629d8c SHA512 12cebd7bdaff6a793598f40cb11f4ae6681dcb29b18ecb7db92681abf1f6d4ce0281ae292c84106a143c0ff5ff3395e37604b3576c6a479001fc351dba10c7ed WHIRLPOOL da130bec55d0970a2d7cd890cf1818a17dc4eb42bdfa20046420f30ff0e0ad7e1f8703314d970b627bee8299bacf0d44c8cf4549eb69b4f75e24557fed28d6ef
|
||||
|
@ -0,0 +1,19 @@
|
||||
commit 68b3b74569881248bfb6cbb4266177cc253b292f
|
||||
Author: David Tardon <dtardon@redhat.com>
|
||||
Date: Sat Apr 8 14:03:29 2017 +0200
|
||||
|
||||
ofz#1037 resize vector correctly
|
||||
|
||||
diff --git a/src/lib/MsWrd1Parser.cxx b/src/lib/MsWrd1Parser.cxx
|
||||
index 63547e6..3626064 100644
|
||||
--- a/src/lib/MsWrd1Parser.cxx
|
||||
+++ b/src/lib/MsWrd1Parser.cxx
|
||||
@@ -902,7 +902,7 @@ bool MsWrd1Parser::readFootnoteCorrespondance(MWAWVec2i limits)
|
||||
int id = fIt++->second;
|
||||
fPos[1] = fIt==footnoteMap.end() ? m_state->m_eot : fIt->first;
|
||||
if (id >= int(m_state->m_footnotesList.size()))
|
||||
- m_state->m_footnotesList.resize(size_t(id),MWAWVec2l(0,0));
|
||||
+ m_state->m_footnotesList.resize(size_t(id)+1,MWAWVec2l(0,0));
|
||||
m_state->m_footnotesList[size_t(id)]=fPos;
|
||||
}
|
||||
ascii().addDelimiter(input->tell(),'|');
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2017 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 tools"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/librevenge
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/libtool
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-CVE-2017-9433.patch" )
|
||||
|
||||
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=c++11 \
|
||||
$(use_with doc docs) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable tools)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
--- xindy-2.4/make-rules/inputenc/make-inp-rules.pl
|
||||
+++ xindy-2.4/make-rules/inputenc/make-inp-rules.pl
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
while (<STDIN>) {
|
||||
- if (/\\indexentry{(.+)--([8-9a-f][0-9a-f])\}\{1\}/) {
|
||||
+ if (/\\indexentry\{(.+)--([8-9a-f][0-9a-f])\}\{1\}/) {
|
||||
if (!($1 =~ /inputenc Error/)) {
|
||||
$i = hex($2);
|
||||
$macro = $1;
|
@ -1,7 +1,7 @@
|
||||
AUX xmlada-2016-gentoo.patch 736 SHA256 66e9636c44f7a512034c6b453aaebf7ee41df9a966635eabd70b3748bee051e0 SHA512 23de23e5af65b02133730cdc30112e1f0585019aa3e6154b30b029f3d2f3bec74d7fe93549d5c505426eb2a13e6b820bafb78c02885dd70c4f3bf66b754171d4 WHIRLPOOL 934ce64707ea5bd92410a5cb1568f5a2aa84e07191e24bb61d02289405f6f8f2b8076cc4fae9f93c359b5f680904865d0d9f84e4956cedbc023d7f77de3c679c
|
||||
DIST xmlada-gpl-2016-src.tar.gz 1440671 SHA256 ea64d8da2c5fb01a257fc5bf474b8d4ec40b01dc15b320b9fe260ff2db668ba4 SHA512 d1d7c3d91731394235aed4b80c91b1babe30d5f184282fae8087ee556318475e3923ed628b805693fc89a4d9bb219b0fb0937bc5024a742226da0245d36ed652 WHIRLPOOL b6ebb927d801394ad0b62d9538142c420ab33627582059466d4f64b12c3a45b1b5b489019aef715a59101370220a78507fe03d97c9e67233dfcc4f3aad1f16d7
|
||||
DIST xmlada-gpl-2017-src.tar.gz 1578393 SHA256 9b103157eb3ecd697b597ad4e60f56f39028bc2d6ea513d2dce8a3b0e65ac54b SHA512 371f6adc01550a4bb13204ec0404dc1165438db595f4346813e5a23a155de74c857c40c55adde173919c2fe35b3b91d78b235c9718ee86bc848e62ddfd7fa2b4 WHIRLPOOL 4b2da3fb799f8def6eb6383a9483258340368cc80e96e8ffab207c3c8849c1279a80cf68ca47c8a20ce91c084041bdfa95128a14321454055534d804272ef4dd
|
||||
EBUILD xmlada-2016.ebuild 1176 SHA256 47d04f4607e7881a7d9808da69150d29d1eb4037fb0a2302fac3f300c091d432 SHA512 5e6e7883d778aa06e343130d9c92d661d74208ea4f6d2624a512ba82add288f46c3c0190f83a92bbe617418930ed853998487e4c92f66f8447d55a1b06c16d5b WHIRLPOOL 51d1e566f547981e17740f4ca01e20d5e1a3360e2737e2ad62bc03250dbb5910fbc8dcd9e0409b53583ad502a84192aad748aeab2b41d29e84e701560042e845
|
||||
EBUILD xmlada-2017.ebuild 1350 SHA256 bad4cc1fd4ab0a1ebe8d982043a82f5b7ec46bcf630e47c74db97a9f4717eef4 SHA512 8c4b0a96badd4ece8fc7d07ffd52a0c3b0939b238658a2fad56f8a9aae7c9d040b5f6338fee81c9234a53734dde2c66a7de5ee040ce72cbc9cd3933565b8f6d6 WHIRLPOOL c0d4e8bed440e1d9e87336a4bae8e40c7a11303ce5ebaf946ae30ab427b51ab4e714dd82e741d059d361f09c81f00ea21cf259cc7fb25eadbd832968cc818777
|
||||
EBUILD xmlada-2016.ebuild 1236 SHA256 113ece65503d569ee45c43ded37ee9feb1ab204b8ef8147eaca512f143ef5568 SHA512 49a1a17034d3e8a4600ae237750528a5568798ebfaf9144280f67eb1e393bb8c030caf09f2f2066b53bcdb415c709c5bbd11b47034cb9e84eae3b43b34fdb2d6 WHIRLPOOL 4515805164b49c90e50d16c56f6a509b897822f9f122f5826605d0d06e2c153fed6450bb21eee517014735e06dee74949f7b63caba9cd37ad615a367dae2531c
|
||||
EBUILD xmlada-2017.ebuild 1480 SHA256 ae951953c56eb139bb2bc158a07a02566b3de9eb0d0efef8024f5125a38356e4 SHA512 93b51117c84e55abc54aebe54b95eee4c788044b83f1edbc626c8157a7eecab2c890ca41ac8a4f9530e251f20a1b3745493d1227c282415b78677535429d8a7f WHIRLPOOL 15e674a9263570c267c4d63353500faffe4d1ab1657960f36043f47a128717473125a9c043d16d9428a2e3adc187adc03fee62363713584888f8084351d99c83
|
||||
EBUILD xmlada-9999.ebuild 1129 SHA256 37dedece4f44257a753cb2e7417e7fb79fd3dfd39b145bef4dba5b7afb728782 SHA512 8de7898e7b58b752058ed21be0ad7514c7dda9f6b12d756dd568251a91a7b803771d7d50e182dd73ffa985033d57714c2d27055f0392bcbdcdbeb650cb23b8b8 WHIRLPOOL f4af5c43b3de0959e7bc6068420676ffb06b21662fc578a35cc203869e1153d7b8c5f9d9270a72bfad7a2503b22c62cf6a06c7c2cf91c94a094a3efd694feb4b
|
||||
MISC metadata.xml 982 SHA256 06762f73bcae4c892eac80f6bce7ddc0e7d08c9bb65fcfa4059916bfcb4733e0 SHA512 0dff6ca9e946c1ce52ca6dabe83d2b3c567506bce1c2c0e56ed2e39967477f5140061e2959444478e3a020757e54b822a98f6044762a96bd5bfd52372839ccec WHIRLPOOL 3b4281a5ab58140ea2320586e3702a6a3aedf0692430e0f62d3ab576918f7c48a7d06233d1263be436b7ea1721f4ae0a9b8a4c2a86e3a77cd245d405cc732b63
|
||||
MISC metadata.xml 1125 SHA256 cfa482b10d38fcda4b7f335521ae521d9b0425c67d2dca54d85bf37482467cee SHA512 ab8a13a6e09513797895a7966adf026a21aa5f738853b039ec15d7091e32a8dd747c1c179ef92a24f2eb83f0a381c819f891bf35e6b4a90e1085aced8606f14d WHIRLPOOL 1a50bd49742d194e4a075d593ca9b5fc66c7d293eb399be54039a5362b1001d72b5b15823b528418da55642c4de6be82faf210a6938807a2c2e9aaf34cfdde54
|
||||
|
@ -1,5 +1,7 @@
|
||||
DIST esptool-1.3.tar.gz 34412 SHA256 f3fcf7f34d7c5467f29a43ddcd37e7c1d412f198bb8db928f50ed4cfc8da11f8 SHA512 7458dfb3818619b96ac1003349504feafe909f41bd5dfef1b482b45dd12cee55453b3cc60fbd05f342876dff97b17a487525d951283d69e355582c21d1acc14c WHIRLPOOL 06334c5dd2865d73cd74060a119cc44c0274ee51d5fc1460f1c5a4481f9869b1cf8f8e7f62577c893d3f27a6cf217019afaee521defb7185c2a4077df78d2892
|
||||
DIST esptool-2.0.1.tar.gz 67905 SHA256 413bc0a47088cb10770a20a472eb297d92a7ba933539fff981ceea95d17d45bd SHA512 13bc1594fc5546c3a461929f9413eab47cd9173c4fa89572801e1be5f1956f0e71589005ab5d547919eec94064d64307349a8f79b3833a90d9e79ead8bd694c4 WHIRLPOOL b727d105a43d7da04f41264ced26e2e598edca1b88bdaf97e9edc4418b5afd00a16c13fb0c1c2b54658541bd6b4b8186585985f383eb3d5e3a74c40abea6c0c7
|
||||
DIST esptool-2.0.tar.gz 67742 SHA256 ce9978d0f003e9ff1e2ebc5f25d035e84d73de44d002ce43117bd50c686269ec SHA512 b8a0342267e7897da54d2841b2b187b938dcd998ff777b7eada629e73b4b42d882b44159dbd70c304c14571770d69e2cfa8f97388b14b6c0e1ce0aaf282b116c WHIRLPOOL b64fa279e5c42ef251ab89a20f532086cfeb23e3e0c37fd6f58c633ddf4f344b54b0ebe73fcfe5c5645e35a909b2689bedf7e50576beaae1bf9bbafe0999347a
|
||||
EBUILD esptool-1.3.ebuild 588 SHA256 949953eb4d8f4772451cbff7f753b6d918546e04df952f0dfe6b429b6dc55ebe SHA512 daa59361cb3504b9639e69d8ba602cfd3413c1dee91094d3e277347023ea35291870d9e799570a01202fc88e5c60860dd19b3d5c261702655761b519f966194d WHIRLPOOL a1da6fafbad1d557bab992a1623ed48daf579d942a65798eb00b6d6097e2123affd2a3d8c9f41e8e98b4eadd39221836532ac123158e1de872b03be7589c0f9c
|
||||
EBUILD esptool-2.0.1.ebuild 734 SHA256 943598c9e7c34eeaad8d011688d88da826ebb504c595e6d5049ffa50e23fa70a SHA512 547cce87574fe5bb093d5847462d705e748a3fafb71398c781e97a6537dad30b8fc5885410119ff216a9dc21b30a3d895df9be0fa269fa232bb6624ef1daf86d WHIRLPOOL 642c312021fb2fb3536a82efb8f72a3e646ac3063353b00701ab313b04ff22341f13005fc267ff930307c73c2339c21a143664bbfba642294faaf570eaa83f10
|
||||
EBUILD esptool-2.0.ebuild 734 SHA256 943598c9e7c34eeaad8d011688d88da826ebb504c595e6d5049ffa50e23fa70a SHA512 547cce87574fe5bb093d5847462d705e748a3fafb71398c781e97a6537dad30b8fc5885410119ff216a9dc21b30a3d895df9be0fa269fa232bb6624ef1daf86d WHIRLPOOL 642c312021fb2fb3536a82efb8f72a3e646ac3063353b00701ab313b04ff22341f13005fc267ff930307c73c2339c21a143664bbfba642294faaf570eaa83f10
|
||||
MISC metadata.xml 335 SHA256 26fcc9049f65e497e9a22aa83580da004a4b6933f8f8abfed4451c1fdaeb40f2 SHA512 df984768917fc7780a702ca813acc853cd34a275cb9cd6387454e3b11619a1ada088d1cbab589659317459033d7c4622c942db3c672f537936f5fee60d529533 WHIRLPOOL 83c2fc52917f2ee7fb0e9a0b0102e46279cf390b437ab8395f566346b06f61f754673442cb7dfb775c3e16968002486b197fddcc631156181d3a22aeeae123db
|
||||
|
@ -0,0 +1,29 @@
|
||||
# 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,3_5,3_6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32"
|
||||
HOMEPAGE="https://github.com/espressif/esptool"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/ecdsa[${PYTHON_USEDEP}]
|
||||
dev-python/pyaes[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyserial-2.5[${PYTHON_USEDEP}]"
|
||||
|
||||
RESTRICT="test" # Uses a device connected to the serial port
|
||||
|
||||
python_test() {
|
||||
${EPYTHON} test/test_esptool.py || die
|
||||
}
|
@ -1,8 +1,6 @@
|
||||
AUX gcj-jdk.env 569 SHA256 4eb519082db6e852c17851664a0555742bfc10e51104d6fc5151bd4eb2d89461 SHA512 b761fcd9ec04ec410d4a5d80ddb7543b50ab07b8c695c8f828380ee3db270cd1f71fce3d65cd61c14715a0b85e306f01658991ab1213449b8a083bba6983057a WHIRLPOOL 72c106e1cd1a6cc84e79ba8c927289140d4ad3efef9478c2416fa2ba275cd8ec37cbf4f778f1abe334a45e8a5efb79fcb30e2bc43d347e39a1296c13254e730d
|
||||
AUX gcj-jdk.env.sh 551 SHA256 e4dbdf034e6d673adab7c74d8112162c0d6f148893aa8cbf3dc1bd7a9de348d2 SHA512 7274f9d78114e5ad3e84160b952143676920e021a93cb6cf3a6d9534a2e5c6d501ef797adcd4f0df2a4c2138d3e275d3c955d53be6b78f286c16e9260730e316 WHIRLPOOL 43f4b66f69423825782eb1d60cba5f5e4aef895bc1d82029c37a3cba97008d5e4f579154d4e9aad422e9c128b7ee56f09023182c07d310fe45bc7d50f15c0f6f
|
||||
AUX gcj-jdk.env.sh 571 SHA256 ebc87751e2f16e433d609bb7c6e2261a6523d5f37348c9dc0176ed60607193e2 SHA512 375f295da5eb6847345a4c3cc01bcd2b2d55f455b182f0cb235be8ed51a1520d6e50f7ca9d076da5ab27bc59878ce4c49a67b9e37c34a74c5b675439655ffb2b WHIRLPOOL cf212979950d4b2ed325addc04be83865af410df8247abe613009c94409c778b2733fea6cfcba7b3b37f6ea224508f27a6108cde17946824eccf4074e04023c2
|
||||
AUX javac.in 1739 SHA256 3bb23cff0a6e5a7a820e19cce4b9b0f51a7b84ee9e0eeb048b463a5f3e996db0 SHA512 65170b747012e114b072cd28a688089cdf2f54ddd151ba0cea92241b9b75fd0c7c410bfa4186cf9d233af4328bf962e13e8838a0cc09a1fbf2c28d29b13e36cb WHIRLPOOL 2237edd6abffdfb762d178e611768396f0b93a38f8a70f83c986049b60e26bb7084e3a38b70ed29c09df739091cdbfbfdd688e5eccee6ca4ea4006c23cf2b7d8
|
||||
EBUILD gcj-jdk-4.9.4.ebuild 3716 SHA256 b1ecc0cbe83b802ea74960d1ad0b0891aec99580838deba1446670f7e487496c SHA512 2cb5c0ccb4767dfd9f6a98535fef20dac1382aac06de1200cd8d7bd130fb7aeb588c0401edcddc6b62142324155fc1c0594c4c666b6edfcc63ea0168d4230c31 WHIRLPOOL 3df194dd19231b785ab8aad052b5be52d84be22851b267b801b6934b529c274b2b489bd365e7ab4ff56efc1034c1a9f4e031d3f30ee26afa52ea4095f2c7c113
|
||||
EBUILD gcj-jdk-5.4.0.ebuild 3721 SHA256 89dba0beb3c8db3954eb562de686a8047aa0e9adc8da1b12dde62242c364d5eb SHA512 07f2fdcee8a2f7d88386ac2155f634d4534c724c4940e931a975fe71723da36d1da92cdaa00b2f23464060135120290b06b53131b0fb397438de52f3d6e33279 WHIRLPOOL 8900c4db90eb040b0d75dedcacaffe37af73dd8f4e469427067e78177be940abec5a2cbde5ba3bd896b8962f335c8e525ece5aaefcfa42ee665c71369bcfb1a2
|
||||
EBUILD gcj-jdk-5.4.0-r1.ebuild 3712 SHA256 78c7e0f0d9b2660b4fedb12e5dc8ba79188da05060b6847eaf2c073a7022bc3e SHA512 1f26adc24f66091ed51890a6fb748f48340670b359be609bb34c55038add83aedf6c060503e232cb5e0749d60685e4b5ef71fba7d0863ef942f9cbab429660ee WHIRLPOOL c8b705b725a51c6cb3e474f8edd6d4e404b095d428f2323c930d985bc7789f16d2fb02604c6185186090202fd790f8983204f09a4bfee11432da5509ec02fa38
|
||||
MISC ChangeLog 4100 SHA256 7ebedd8e5cb9573ecc501d7511a14ba3e28c89476ac07cbffa7adc8575fcd997 SHA512 840738ec6e5b3a7556d7b6f9dd1cdb7ae5ad97fe756cfdcf20ae318339052cf571b699208242cd7309632063a4b1b1bc57403ffba20f3ad85f155ea17e919782 WHIRLPOOL 8b5e2b6baef74b824d95b8d34bed216da23d4d657bb73fedd8886181ba580c10c1f80f3207a28165cb0874f80c810f98c4fb366240c6d247549a57228b3adad0
|
||||
MISC ChangeLog-2015 5701 SHA256 76df37b27adf8ed9f0c803c16fa8f174a26dda5fd9916a58bbdb75f075a527e0 SHA512 4cb81aeea312050bdbb2538b495b886070136bee436050b7a7bc5b574a230afb53c5a6e3194f68aa0f1e6e728b0b5c52c038c24be9e7761405700bd9fd2374d2 WHIRLPOOL fd3ca14edbf2a8e77d5b5a469e1efd37d383934cd83b67fd68434f6d0dfb00eb73aded6514505a383ee6493e338d0a182a92ad484f0cebdbccb20d06bcb91609
|
||||
MISC metadata.xml 716 SHA256 f1e5a6f41f9e6855a708faac39035a6b8334f1631027c111d6cf8b28f2e38b43 SHA512 ccd737b1118329a85ecd3f5b19548bec4a2e425b20955b578287d4f82dce165c31aa016019407e8a5b138a48718b61089ca7f9678c549d29d0bb27cdd9c48e68 WHIRLPOOL 65b4550f5bce3f3a50dde219d7e467d3adf3902187af69591dda36f9bf63b7b5503e5a82499de6fdeb19866001cd0318a7cdbdcbfbb34cf2de5d55e9075695f9
|
||||
|
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
VERSION="GCJ @PV@"
|
||||
JAVA_HOME="@GENTOO_PORTAGE_EPREFIX@/usr/lib/@P@"
|
||||
JDK_HOME="@GENTOO_PORTAGE_EPREFIX@/usr/lib/@P@"
|
||||
JAVAC="${JAVA_HOME}/bin/javac"
|
||||
PATH="${JAVA_HOME}/bin"
|
||||
ROOTPATH="${JAVA_HOME}/bin"
|
||||
LDPATH="${JAVA_HOME}/lib"
|
||||
INFOPATH="${JAVA_HOME}/info"
|
||||
MANPATH="${JAVA_HOME}/man"
|
||||
PROVIDES_TYPE="JDK JRE"
|
||||
PROVIDES_VERSION="1.5"
|
||||
BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar"
|
||||
GENERATION="2"
|
||||
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH INFOPATH MANPATH"
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit java-vm-2 multilib
|
||||
|
||||
DESCRIPTION="Java wrappers around GCJ"
|
||||
HOMEPAGE="https://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x86-linux"
|
||||
SLOT="0"
|
||||
IUSE="awt"
|
||||
|
||||
API_DIFF_PV="4.9.2"
|
||||
|
||||
# perl is needed for javac wrapper
|
||||
RDEPEND="
|
||||
dev-java/ecj-gcj:*
|
||||
dev-lang/perl
|
||||
~sys-devel/gcc-${PV}[awt?,gcj]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
# jre lib paths ...
|
||||
local libarch="$(get_system_arch)"
|
||||
local gcc_version=${PV}
|
||||
local gccbin=$(gcc-config -B ${gcc_version})
|
||||
gccbin=${gccbin#"${EPREFIX}"}
|
||||
local gcclib=$(gcc-config -L ${gcc_version} | cut -d':' -f1)
|
||||
gcclib=${gcclib#"${EPREFIX}"}
|
||||
local gcjhome="/usr/$(get_libdir)/${P}"
|
||||
local gcjprefix="${EPREFIX}${gcjhome}"
|
||||
local gccchost="${CHOST}"
|
||||
local gcjlibdir=$(echo "${EPREFIX}"/usr/$(get_libdir)/gcj-${gcc_version}-*)
|
||||
gcjlibdir=${gcjlibdir#"${EPREFIX}"}
|
||||
|
||||
# links
|
||||
dodir ${gcjhome}/bin
|
||||
dodir ${gcjhome}/jre/bin
|
||||
dosym ${gccbin}/gij ${gcjhome}/bin/java
|
||||
dosym ${gccbin}/gij ${gcjhome}/jre/bin/java
|
||||
dosym ${gccbin}/gjar ${gcjhome}/bin/jar
|
||||
dosym ${gccbin}/gjdoc ${gcjhome}/bin/javadoc
|
||||
dosym ${gccbin}/grmic ${gcjhome}/bin/rmic
|
||||
dosym ${gccbin}/gjavah ${gcjhome}/bin/javah
|
||||
dosym ${gccbin}/jcf-dump ${gcjhome}/bin/javap
|
||||
dosym ${gccbin}/gappletviewer ${gcjhome}/bin/appletviewer
|
||||
dosym ${gccbin}/gjarsigner ${gcjhome}/bin/jarsigner
|
||||
dosym ${gccbin}/grmiregistry ${gcjhome}/bin/rmiregistry
|
||||
dosym ${gccbin}/grmiregistry ${gcjhome}/jre/bin/rmiregistry
|
||||
dosym ${gccbin}/gkeytool ${gcjhome}/bin/keytool
|
||||
dosym ${gccbin}/gkeytool ${gcjhome}/jre/bin/keytool
|
||||
dosym ${gccbin}/gnative2ascii ${gcjhome}/bin/native2ascii
|
||||
dosym ${gccbin}/gorbd ${gcjhome}/bin/orbd
|
||||
dosym ${gccbin}/gorbd ${gcjhome}/jre/bin/orbd
|
||||
dosym ${gccbin}/grmid ${gcjhome}/bin/rmid
|
||||
dosym ${gccbin}/grmid ${gcjhome}/jre/bin/rmid
|
||||
dosym ${gccbin}/gserialver ${gcjhome}/bin/serialver
|
||||
dosym ${gccbin}/gtnameserv ${gcjhome}/bin/tnameserv
|
||||
dosym ${gccbin}/gtnameserv ${gcjhome}/jre/bin/tnameserv
|
||||
|
||||
dodir ${gcjhome}/jre/lib/${libarch}/client
|
||||
dodir ${gcjhome}/jre/lib/${libarch}/server
|
||||
dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/client/libjvm.so
|
||||
dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/server/libjvm.so
|
||||
use awt && dosym ${gcjlibdir}/libjawt.so ${gcjhome}/jre/lib/${libarch}/libjawt.so
|
||||
|
||||
dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-${gcc_version/_/-}.jar \
|
||||
${gcjhome}/jre/lib/rt.jar
|
||||
dodir ${gcjhome}/lib
|
||||
dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-tools-${gcc_version/_/-}.jar \
|
||||
${gcjhome}/lib/tools.jar
|
||||
dosym ${gcclib}/include ${gcjhome}/include
|
||||
|
||||
exeinto ${gcjhome}/bin
|
||||
sed -e "s#@JAVA@#${gcjprefix}/bin/java#" \
|
||||
-e "s#@ECJ_JAR@#${EPREFIX}/usr/share/eclipse-ecj/ecj.jar#" \
|
||||
-e "s#@RT_JAR@#${gcjprefix}/jre/lib/rt.jar#" \
|
||||
-e "s#@TOOLS_JAR@#${gcjprefix}/lib/tools.jar#" \
|
||||
"${FILESDIR}"/javac.in \
|
||||
| newexe - javac
|
||||
assert
|
||||
|
||||
set_java_env
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Do not set as system VM (see below)
|
||||
# java-vm-2_pkg_postinst
|
||||
|
||||
ewarn "gcj does not currently provide all the 1.5 or 1.6 APIs."
|
||||
ewarn "See http://fuseyism.com/japi/ibmjdk15-libgcj-${API_DIFF_PV}.html"
|
||||
ewarn "and http://fuseyism.com/japi/icedtea6-libgcj-${API_DIFF_PV}.html"
|
||||
ewarn "Check for existing bugs relating to missing APIs and file"
|
||||
ewarn "new ones at https://gcc.gnu.org/bugzilla/"
|
||||
ewarn
|
||||
ewarn "Due to this and limited manpower, we currently cannot support"
|
||||
ewarn "using gcj-jdk as a system VM. Its main purpose is to bootstrap"
|
||||
ewarn "IcedTea without prior binary VM installation. To do that, execute:"
|
||||
ewarn
|
||||
ewarn "emerge -o icedtea && emerge icedtea"
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 eutils java-ant-2
|
||||
|
||||
MY_PN="${PN}-api"
|
||||
MY_PV="11112001"
|
||||
MY_P="${MY_PN}-${MY_PV}"
|
||||
DESCRIPTION="Java implementation for specifications made by XML:DB"
|
||||
HOMEPAGE="https://sourceforge.net/projects/xmldb-org/"
|
||||
SRC_URI="mirror://sourceforge/xmldb-org/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# TODO please make compiling the junit tests optional
|
||||
COMMON_DEP="
|
||||
>=dev-java/xerces-2.7
|
||||
>=dev-java/xalan-2.7
|
||||
=dev-java/junit-3.8*"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEP}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEP}"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
rm -v *.jar || die
|
||||
mkdir lib
|
||||
|
||||
epatch "${FILESDIR}/${P}-unreachable.patch"
|
||||
|
||||
mkdir src && mv org src
|
||||
cp "${FILESDIR}/build-${PV}.xml" build.xml
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# --with-dependencies because of indirectly referenced xml-commons-external
|
||||
eant jar $(use_doc) \
|
||||
-Dclasspath=$(java-pkg_getjars --with-dependencies xerces-2,xalan,junit)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar dist/*.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc dist/doc/api
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libtommath
|
||||
dev-libs/libuv
|
||||
jit? ( dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp )
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libtommath"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex jit --lua=/usr/bin/lua --no-jit)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libtommath
|
||||
dev-libs/libuv
|
||||
jit? ( dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp )
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libtommath"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex jit --lua=/usr/bin/lua --no-jit)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libtommath
|
||||
dev-libs/libuv
|
||||
jit? ( dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp )
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libtommath"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex jit --lua=/usr/bin/lua --no-jit)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue