parent
deb3f2c154
commit
c87ac06d87
@ -0,0 +1,530 @@
|
||||
# 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} )
|
||||
JAVA_PKG_OPT_USE="collectd_plugins_java"
|
||||
|
||||
inherit autotools fcaps flag-o-matic java-pkg-opt-2 linux-info multilib perl-functions python-single-r1 systemd user
|
||||
|
||||
DESCRIPTION="Collects system statistics and provides mechanisms to store the values"
|
||||
|
||||
HOMEPAGE="https://collectd.org/"
|
||||
SRC_URI="${HOMEPAGE%/}/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="contrib debug java kernel_Darwin kernel_FreeBSD kernel_linux perl selinux static-libs udev xfs"
|
||||
|
||||
# The plugin lists have to follow here since they extend IUSE
|
||||
|
||||
# Plugins that don't build (e.g. dependencies not in Gentoo)
|
||||
# apple_sensors: Requires libIOKit
|
||||
# aquaero: Requires aerotools-ng/libaquaero5
|
||||
# barometer: Requires libi2c (i2c_smbus_read_i2c_block_data)
|
||||
# grpc: Requires libgrpc
|
||||
# lpar: Requires libperfstat (AIX only)
|
||||
# mic: Requires Intel Many Integrated Core Architecture API
|
||||
# (part of Intel's Xeon Phi software)
|
||||
# netapp: Requires libnetapp (http://communities.netapp.com/docs/DOC-1110)
|
||||
# pf: Requires BSD packet filter
|
||||
# pinba: Requires MySQL Pinba engine (http://pinba.org/)
|
||||
# tape: Requires libkstat (Solaris only)
|
||||
# write_mongodb: https://github.com/collectd/collectd/issues/492
|
||||
# write_riemann: Requires riemann-c-client
|
||||
# xmms: Requires libxmms (v1)
|
||||
# zone: Solaris only...
|
||||
COLLECTD_IMPOSSIBLE_PLUGINS="apple_sensors aquaero barometer grpc lpar mic
|
||||
netapp pf pinba tape write_kafka write_mongodb write_riemann xmms
|
||||
zone"
|
||||
|
||||
# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS
|
||||
COLLECTD_TESTED_PLUGINS="aggregation amqp apache apcups ascent battery bind
|
||||
ceph cgroups chrony conntrack contextswitch cpu cpufreq cpusleep
|
||||
csv curl curl_json curl_xml dbi df disk dns drbd email entropy
|
||||
ethstat exec fhcount filecount fscache gmond gps hddtemp interface
|
||||
ipc ipmi iptables ipvs irq java lua load logfile log_logstash lvm
|
||||
madwifi match_empty_counter match_hashed match_regex match_timediff
|
||||
match_value mbmon md memcachec memcached memory modbus mqtt
|
||||
multimeter mysql netlink network network nfs nginx notify_desktop
|
||||
notify_email notify_nagios ntpd numa nut olsrd onewire openldap
|
||||
openvpn oracle perl ping postgresql powerdns processes protocols
|
||||
python python redis routeros rrdcached rrdtool sensors serial
|
||||
sigrok smart snmp statsd swap syslog table tail tail_csv
|
||||
target_notification target_replace target_scale target_set tcpconns
|
||||
teamspeak2 ted thermal threshold tokyotyrant turbostat unixsock
|
||||
uptime users uuid varnish virt vmem vserver wireless write_graphite
|
||||
write_http write_kafka write_log write_redis write_sensu write_tsdb
|
||||
xencpu zfs_arc zookeeper"
|
||||
|
||||
COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS}"
|
||||
|
||||
COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS}
|
||||
|
||||
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||
IUSE="${IUSE} collectd_plugins_${plugin}"
|
||||
done
|
||||
unset plugin
|
||||
|
||||
# Now come the dependencies.
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/libgcrypt:=
|
||||
dev-libs/libltdl:0=
|
||||
perl? ( dev-lang/perl:=[ithreads] )
|
||||
udev? ( virtual/udev )
|
||||
xfs? ( sys-fs/xfsprogs )
|
||||
collectd_plugins_amqp? ( net-libs/rabbitmq-c )
|
||||
collectd_plugins_apache? ( net-misc/curl:0= )
|
||||
collectd_plugins_ascent? ( net-misc/curl:0= dev-libs/libxml2:2= )
|
||||
collectd_plugins_bind? ( net-misc/curl:0= dev-libs/libxml2:2= )
|
||||
collectd_plugins_ceph? ( dev-libs/yajl:= )
|
||||
collectd_plugins_curl? ( net-misc/curl:0= )
|
||||
collectd_plugins_curl_json? ( net-misc/curl:0= dev-libs/yajl:= )
|
||||
collectd_plugins_curl_xml? ( net-misc/curl:0= dev-libs/libxml2:2= )
|
||||
collectd_plugins_dbi? ( dev-db/libdbi )
|
||||
collectd_plugins_dns? ( net-libs/libpcap )
|
||||
collectd_plugins_gmond? ( sys-cluster/ganglia )
|
||||
collectd_plugins_gps? ( sci-geosciences/gpsd )
|
||||
collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 )
|
||||
collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13:0= )
|
||||
collectd_plugins_log_logstash? ( dev-libs/yajl:= )
|
||||
collectd_plugins_lua? ( dev-lang/lua:0= )
|
||||
collectd_plugins_lvm? ( sys-fs/lvm2 )
|
||||
collectd_plugins_memcachec? ( dev-libs/libmemcached )
|
||||
collectd_plugins_modbus? ( dev-libs/libmodbus )
|
||||
collectd_plugins_mqtt? ( app-misc/mosquitto )
|
||||
collectd_plugins_mysql? ( >=virtual/mysql-5.0 )
|
||||
collectd_plugins_netlink? ( net-libs/libmnl )
|
||||
collectd_plugins_nginx? ( net-misc/curl:0= )
|
||||
collectd_plugins_notify_desktop? ( x11-libs/libnotify )
|
||||
collectd_plugins_notify_email? ( net-libs/libesmtp )
|
||||
collectd_plugins_nut? ( >=sys-power/nut-2.7.2-r2 )
|
||||
collectd_plugins_openldap? ( net-nds/openldap )
|
||||
collectd_plugins_onewire? ( >=sys-fs/owfs-3.1:= )
|
||||
collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic )
|
||||
collectd_plugins_perl? ( dev-lang/perl:=[ithreads] )
|
||||
collectd_plugins_ping? ( net-libs/liboping )
|
||||
collectd_plugins_postgresql? ( dev-db/postgresql:= )
|
||||
collectd_plugins_python? ( ${PYTHON_DEPS} )
|
||||
collectd_plugins_redis? ( dev-libs/hiredis:= )
|
||||
collectd_plugins_routeros? ( net-libs/librouteros )
|
||||
collectd_plugins_rrdcached? ( net-analyzer/rrdtool:= )
|
||||
collectd_plugins_rrdtool? ( net-analyzer/rrdtool:= )
|
||||
collectd_plugins_sensors? ( sys-apps/lm_sensors )
|
||||
collectd_plugins_sigrok? ( <sci-libs/libsigrok-0.4 dev-libs/glib:2 )
|
||||
collectd_plugins_smart? ( dev-libs/libatasmart )
|
||||
collectd_plugins_snmp? ( net-analyzer/net-snmp )
|
||||
collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant )
|
||||
collectd_plugins_varnish? ( www-servers/varnish )
|
||||
collectd_plugins_virt? ( app-emulation/libvirt:= dev-libs/libxml2:2= )
|
||||
collectd_plugins_write_http? ( net-misc/curl:0= dev-libs/yajl:= )
|
||||
collectd_plugins_write_kafka? ( >=dev-libs/librdkafka-0.9.0.99:= dev-libs/yajl:= )
|
||||
collectd_plugins_write_redis? ( dev-libs/hiredis:= )
|
||||
collectd_plugins_xencpu? ( app-emulation/xen-tools:= )
|
||||
|
||||
kernel_FreeBSD? (
|
||||
collectd_plugins_disk? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_interface? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_load? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_memory? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_swap? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_users? ( sys-libs/libstatgrab:= )
|
||||
)"
|
||||
|
||||
# Enforcing <=sys-kernel/linux-headers-4.4 due to #577846
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
collectd_plugins_iptables? ( <=sys-kernel/linux-headers-4.4 )
|
||||
collectd_plugins_java? ( >=virtual/jdk-1.6 )
|
||||
virtual/pkgconfig"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
collectd_plugins_java? ( >=virtual/jre-1.6 )
|
||||
collectd_plugins_syslog? ( virtual/logger )
|
||||
selinux? ( sec-policy/selinux-collectd )
|
||||
!<sys-apps/openrc-0.18.2"
|
||||
|
||||
REQUIRED_USE="
|
||||
collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} )
|
||||
collectd_plugins_smart? ( udev )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.6.0-gentoo.patch
|
||||
)
|
||||
|
||||
# @FUNCTION: collectd_plugin_kernel_linux
|
||||
# @DESCRIPTION:
|
||||
# USAGE: <plugin name> <kernel_options> <severity>
|
||||
# kernel_options is a list of kernel configurations options; the check tests whether at least
|
||||
# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message
|
||||
# is emitted.
|
||||
collectd_plugin_kernel_linux() {
|
||||
local multi_opt opt
|
||||
if has ${1} ${COLLECTD_ALL_PLUGINS}; then
|
||||
if use collectd_plugins_${1}; then
|
||||
for opt in ${2}; do
|
||||
if linux_chkconfig_present ${opt}; then
|
||||
return 0;
|
||||
fi
|
||||
done
|
||||
multi_opt=${2//\ /\ or\ }
|
||||
case ${3} in
|
||||
(info)
|
||||
elog "The ${1} plugin can use kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(warn)
|
||||
ewarn "The ${1} plugin uses kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(error)
|
||||
eerror "The ${1} plugin needs kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(*)
|
||||
die "function collectd_plugin_kernel_linux called with invalid third argument"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
collectd_linux_kernel_checks() {
|
||||
if ! linux_chkconfig_present PROC_FS; then
|
||||
ewarn "/proc file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable PROC_FS in your kernel"
|
||||
fi
|
||||
|
||||
if ! linux_chkconfig_present SYSFS; then
|
||||
ewarn "/sys file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable SYSFS in your kernel"
|
||||
fi
|
||||
|
||||
# battery.c: /proc/pmu/battery_%i
|
||||
# battery.c: /proc/acpi/battery
|
||||
collectd_plugin_kernel_linux battery ACPI_BATTERY warn
|
||||
|
||||
# cgroups.c: /sys/fs/cgroup/
|
||||
collectd_plugin_kernel_linux cgroups CGROUPS warn
|
||||
|
||||
# cpufreq.c: /sys/devices/system/cpu/cpu%d/cpufreq/
|
||||
collectd_plugin_kernel_linux cpufreq SYSFS warn
|
||||
collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn
|
||||
|
||||
# drbd.c: /proc/drbd
|
||||
collectd_plugin_kernel_linux drbd BLK_DEV_DRBD warn
|
||||
|
||||
# conntrack.c: /proc/sys/net/netfilter/*
|
||||
collectd_plugin_kernel_linux conntrack NETFILTER warn
|
||||
|
||||
# fscache.c: /proc/fs/fscache/stats
|
||||
collectd_plugin_kernel_linux fscache FSCACHE warn
|
||||
|
||||
# nfs.c: /proc/net/rpc/nfs
|
||||
# nfs.c: /proc/net/rpc/nfsd
|
||||
collectd_plugin_kernel_linux nfs NFS_COMMON warn
|
||||
|
||||
# serial.c: /proc/tty/driver/serial
|
||||
# serial.c: /proc/tty/driver/ttyS
|
||||
collectd_plugin_kernel_linux serial SERIAL_CORE warn
|
||||
|
||||
# swap.c: /proc/meminfo
|
||||
collectd_plugin_kernel_linux swap SWAP warn
|
||||
|
||||
# thermal.c: /proc/acpi/thermal_zone
|
||||
# thermal.c: /sys/class/thermal
|
||||
collectd_plugin_kernel_linux thermal ACPI_THERMAL warn
|
||||
|
||||
# turbostat.c: /dev/cpu/%d/msr
|
||||
collectd_plugin_kernel_linux turbostat X86_MSR warn
|
||||
|
||||
# vmem.c: /proc/vmstat
|
||||
collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn
|
||||
|
||||
# vserver.c: /proc/virtual
|
||||
collectd_plugin_kernel_linux vserver VSERVER warn
|
||||
|
||||
# uuid.c: /sys/hypervisor/uuid
|
||||
collectd_plugin_kernel_linux uuid SYSFS info
|
||||
|
||||
# wireless.c: /proc/net/wireless
|
||||
collectd_plugin_kernel_linux wireless "WIRELESS MAC80211 IEEE80211" warn
|
||||
|
||||
# zfs_arc.c: /proc/spl/kstat/zfs/arcstats
|
||||
collectd_plugin_kernel_linux zfs_arc "SPL ZFS" warn
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use kernel_linux; then
|
||||
linux-info_pkg_setup
|
||||
|
||||
if linux_config_exists; then
|
||||
einfo "Checking your linux kernel configuration:"
|
||||
collectd_linux_kernel_checks
|
||||
else
|
||||
elog "Cannot find a linux kernel configuration. Continuing anyway."
|
||||
fi
|
||||
fi
|
||||
|
||||
if use collectd_plugins_java; then
|
||||
java-pkg-opt-2_pkg_setup
|
||||
fi
|
||||
|
||||
use collectd_plugins_python && python-single-r1_pkg_setup
|
||||
|
||||
enewgroup collectd
|
||||
enewuser collectd -1 -1 /var/lib/collectd collectd
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# There's some strange prefix handling in the default config file, resulting in
|
||||
# paths like "/usr/var/..."
|
||||
sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die
|
||||
|
||||
# fix installdirs for perl, bug 444360
|
||||
sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die
|
||||
|
||||
# Adjust upstream's systemd unit
|
||||
# - Get rid of EnvironmentFile directive; These files don't exist on Gentoo!
|
||||
# - Add User=collectd to run collectd as user "collectd" per default
|
||||
sed -i \
|
||||
-e '/^EnvironmentFile=.*/d' \
|
||||
-e '/^\[Service\]/aUser=collectd' \
|
||||
contrib/systemd.${PN}.service || die
|
||||
|
||||
if use collectd_plugins_java; then
|
||||
# Set javac -source and -target flags according to (R)DEPEND.
|
||||
sed -i -e "s/\$(JAVAC)/\0 $(java-pkg_javac-args)/g" bindings/java/Makefile.am || die
|
||||
fi
|
||||
|
||||
ebegin "Removing bundled libltdl"
|
||||
rm -rf libltdl || die
|
||||
eend 0
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here
|
||||
# should work independent of the operating system.
|
||||
|
||||
local linux_plugins="barometer battery cpu cpufreq disk drbd entropy
|
||||
ethstat interface iptables ipvs irq ipc load memory md netlink nfs
|
||||
numa processes serial swap tcpconns thermal turbostat users vmem
|
||||
wireless zfc_arc"
|
||||
|
||||
local need_libstatgrab=0
|
||||
local libstatgrab_plugins="cpu disk interface load memory swap users"
|
||||
local bsd_plugins="cpu tcpconns ${libstatgrab_plugins} zfc_arc"
|
||||
|
||||
local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns"
|
||||
|
||||
local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}"
|
||||
local myos_plugins=""
|
||||
if use kernel_linux; then
|
||||
einfo "Enabling Linux plugins."
|
||||
myos_plugins=${linux_plugins}
|
||||
elif use kernel_FreeBSD; then
|
||||
einfo "Enabling FreeBSD plugins."
|
||||
myos_plugins=${bsd_plugins}
|
||||
elif use kernel_Darwin; then
|
||||
einfo "Enabling Darwin plugins."
|
||||
myos_plugins=${darwin_plugins}
|
||||
fi
|
||||
|
||||
local myconf="--disable-werror"
|
||||
|
||||
# Do we debug?
|
||||
myconf+=" $(use_enable debug)"
|
||||
|
||||
# udev support?
|
||||
# Required for smart plugin via REQUIRED_USE; Optional for disk plugin
|
||||
if use udev; then
|
||||
myconf+=" --with-libudev"
|
||||
else
|
||||
myconf+=" --without-libudev"
|
||||
fi
|
||||
|
||||
local plugin
|
||||
|
||||
# Disable what needs to be disabled.
|
||||
for plugin in ${COLLECTD_DISABLED_PLUGINS}; do
|
||||
myconf+=" --disable-${plugin}"
|
||||
done
|
||||
|
||||
# Set enable/disable for each single plugin.
|
||||
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||
if has ${plugin} ${osdependent_plugins}; then
|
||||
# plugin is os-dependent ...
|
||||
if has ${plugin} ${myos_plugins}; then
|
||||
# ... and available in this os
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
# ... must we link against libstatgrab? Bug #541518
|
||||
if use kernel_FreeBSD && has ${plugin} ${libstatgrab_plugins}; then
|
||||
einfo "We must link against libstatgrab due to plugin \"${plugin}\" ..."
|
||||
need_libstatgrab=1
|
||||
fi
|
||||
else
|
||||
# ... and NOT available in this os
|
||||
if use collectd_plugins_${plugin}; then
|
||||
ewarn "You try to enable the ${plugin} plugin, but it is not available for this"
|
||||
ewarn "kernel. Disabling it automatically."
|
||||
fi
|
||||
myconf+=" --disable-${plugin}"
|
||||
fi
|
||||
elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then
|
||||
if use collectd_plugins_perl && ! use perl; then
|
||||
ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag"
|
||||
myconf+= --disable-perl
|
||||
else
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "${need_libstatgrab}" -eq 1 ]; then
|
||||
myconf+=" --with-libstatgrab"
|
||||
else
|
||||
myconf+=" --without-libstatgrab"
|
||||
fi
|
||||
|
||||
# JAVA_HOME is set by eclasses.
|
||||
if use collectd_plugins_java; then
|
||||
myconf+=" --with-java"
|
||||
fi
|
||||
|
||||
# Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens.
|
||||
# lots of libs are only needed for plugins, if they are disabled, also disable the lib
|
||||
use collectd_plugins_iptables || myconf+=" --with-libiptc=no"
|
||||
use collectd_plugins_openldap || myconf+=" --with-libldap=no"
|
||||
use collectd_plugins_redis || use collectd_plugins_write_redis || myconf+=" --with-libhiredis=no"
|
||||
use collectd_plugins_smart || myconf+=" --with-libatasmart=no"
|
||||
use collectd_plugins_gps || myconf+=" --with-libgps=no"
|
||||
|
||||
if use perl; then
|
||||
myconf+=" --with-perl-bindings=INSTALLDIRS=vendor"
|
||||
else
|
||||
myconf+=" --without-perl-bindings"
|
||||
fi
|
||||
|
||||
# No need for v5upgrade
|
||||
myconf+=" --disable-target_v5upgrade"
|
||||
|
||||
# Python
|
||||
if use collectd_plugins_python; then
|
||||
myconf+=" --with-libpython=yes"
|
||||
export PYTHON_CONFIG=$(python_get_PYTHON_CONFIG)
|
||||
else
|
||||
myconf+=" --with-libpython=no"
|
||||
fi
|
||||
|
||||
# XFS support
|
||||
myconf+=" $(use_enable xfs)"
|
||||
|
||||
# Finally, run econf.
|
||||
KERNEL_DIR="${KERNEL_DIR}" econf --config-cache \
|
||||
$(use_enable static-libs static) \
|
||||
--localstatedir=/var ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D%/}" install
|
||||
|
||||
perl_delete_localpod
|
||||
|
||||
find "${ED}"usr/ -name "*.la" -delete || die
|
||||
|
||||
if use collectd_plugins_java; then
|
||||
java-pkg_regjar "${ED}"usr/share/${PN}/java/*.jar
|
||||
fi
|
||||
|
||||
fowners root:collectd /etc/collectd.conf
|
||||
fperms u=rw,g=r,o= /etc/collectd.conf
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README TODO
|
||||
|
||||
if use contrib ; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r contrib
|
||||
fi
|
||||
|
||||
keepdir /var/lib/${PN}
|
||||
fowners collectd:collectd /var/lib/${PN}
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
||||
systemd_newunit "contrib/systemd.${PN}.service" ${PN}.service
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/run/collectd/collectd.pid":' "${ED}"etc/collectd.conf || die
|
||||
sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/run/collectd/collectd.socket":' "${ED}"etc/collectd.conf || die
|
||||
sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${ED}"etc/collectd.conf || die
|
||||
sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${ED}"etc/collectd.conf || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use filecaps; then
|
||||
local caps=()
|
||||
use collectd_plugins_ceph && caps+=('CAP_DAC_OVERRIDE')
|
||||
use collectd_plugins_exec && caps+=('CAP_SETUID' 'CAP_SETGID')
|
||||
use collectd_plugins_iptables && caps+=('CAP_NET_ADMIN')
|
||||
use collectd_plugins_filecount && caps+=('CAP_DAC_READ_SEARCH')
|
||||
|
||||
if use collectd_plugins_dns || use collectd_plugins_ping; then
|
||||
caps+=('CAP_NET_RAW')
|
||||
fi
|
||||
|
||||
if use collectd_plugins_turbostat || use collectd_plugins_smart; then
|
||||
caps+=('CAP_SYS_RAWIO')
|
||||
fi
|
||||
|
||||
if [ ${#caps[@]} -gt 0 ]; then
|
||||
local caps_str=$(IFS=","; echo "${caps[*]}")
|
||||
fcaps ${caps_str} usr/sbin/collectd
|
||||
elog "Capabilities for ${EROOT}usr/sbin/collectd set to:"
|
||||
elog " ${caps_str}+EP"
|
||||
elog
|
||||
|
||||
local systemd_unit="${EROOT}usr/lib/systemd/system/collectd.service"
|
||||
if [[ -e "${systemd_unit}" ]]; then
|
||||
caps_str="${caps[*]}"
|
||||
sed -i -e "s:^CapabilityBoundingSet=.*:CapabilityBoundingSet=${caps_str}:" "${systemd_unit}" || \
|
||||
die "Failed to set CapabilityBoundingSet in '${systemd_unit}'"
|
||||
|
||||
elog "CapabilityBoundingSet in '${systemd_unit}'"
|
||||
elog "updated to match capabilities set above."
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
elog "Note: Collectd is only the collector."
|
||||
elog " You need to install 'data' sources (applications) locally or"
|
||||
elog " remotely on your own."
|
||||
|
||||
elog
|
||||
elog "Collectd is configured to run as unprivileged user by default."
|
||||
elog "You may want to revisit the configuration."
|
||||
elog
|
||||
|
||||
if use collectd_plugins_email; then
|
||||
ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin."
|
||||
fi
|
||||
|
||||
if use collectd_plugins_smart; then
|
||||
elog ""
|
||||
elog "If you are using smart plugin and don't run collectd as root make sure"
|
||||
elog "that the collectd user is allowed to access the disk you want to monitor"
|
||||
elog "(can be done via udev rule for example) and that collectd has the required"
|
||||
elog "capabilities set (which is the default when package was emerged with"
|
||||
elog "'filecaps' USE flag set)."
|
||||
fi
|
||||
|
||||
if use contrib; then
|
||||
elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser,"
|
||||
elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed."
|
||||
fi
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST file-roller-3.20.3.tar.xz 1432400 SHA256 6b5c2de4c6bd52318cacd2a398cdfa45a5f1df8a77c6652a38a6a1d3e53644e9 SHA512 afa7a7e49b357f11a8e8c2678c02f9ce1c20e3bef4c64be0930342127b11dc271369958b634985fb1305fe913182a2e5a63326afc2d1839ab116ad773ee668c3 WHIRLPOOL aa96b158971ed0105f416fc5e83d9a8810d5ececa30a5b9761b9caeeaa607e50ce635629c4aaf05fabb9391959db149cd8b4b2d69c1c765c78001e9f2a11c467
|
||||
DIST file-roller-3.20.4.tar.xz 1432484 SHA256 d9346bb90d5f3296bf22f93a81f5bcd2e974620a4d81efea882db2b3db3b66c1 SHA512 a536876bed13838c4e3f2a2c4fb269ec814afb6fd6ff538e1de4b9872588e0bf2c6df7eece6fd93e79752b2bb8c17c2492b022cea3d84716c2f2cda49aeea130 WHIRLPOOL fb25b905e8b6ac98a838a156849e4bd1a0d5e6889d384e7ea963d1cd99cb62515582459c2fc7ddb15c4a8ee53277a41cefb50385cc6d2e3a5e4a115295ecd0c7
|
||||
DIST file-roller-3.22.1.tar.xz 1423712 SHA256 8106791dcecbd2ab64194f4aeb5cb709a15e9e0d28e6470528c7bf56969be552 SHA512 118b33e70dea357d3320ee8a1e13d161499682725a981806a6333918fb4f76eed8c10aa22db5d797cada893e38dea4d280d84f6fcd3303b4ea0782ef45295939 WHIRLPOOL 385fecf68f39413bd8b80ffdda9ce991ad84950c84017d1ede52f8a7d1abcc468c33f3356a42dd41ccf03817b8ebbdef305023510b1ee52334d12f9545cb45e9
|
||||
DIST file-roller-3.22.2.tar.xz 1423992 SHA256 27158cdcc366f82100312b1e0a02ad1f3aa7a6c32d4eba68fc5a2a8829685df9 SHA512 cd4ed804d7291868acd351b4f1b5d3fca48c1e493c37d9e20463dfbca11fe9859a2d1b8fd6d13c8ac2d4f2967f0734e6ff07efc08ca292f73640e631bea2fb22 WHIRLPOOL f79c7f50f62cf88100577721e7b5017fcc90cc2ed86946dfda40e0addea1ecb995e3536aa5901fcccac78f86e5269f459b04462163dcde5301d84e3e6c331fd9
|
||||
DIST file-roller-3.22.3.tar.xz 1423048 SHA256 de858640632a0e22769b6b73d5b98527f3cfc2c83f99692063e352e41d533505 SHA512 f234388686cf539fc085866322083199176f94043e4c2c888d5806a2efa0dfcf5a090f64240a3d08aae39ed3d34d6b281e1a06d748c56b0f80508a01fac40b28 WHIRLPOOL 9729c333d9d42d5714aa1fa9905f87f125e40c22800cd9cc85af67c31a90aad9863bd5a73aa659a0a5a997aacf638a9c974afbbc04541e90ee7d6c011e66e802
|
||||
|
@ -1,88 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit eutils gnome2 readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="Archive manager for GNOME"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/FileRoller"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
IUSE="nautilus packagekit"
|
||||
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
|
||||
# gdk-pixbuf used extensively in the source
|
||||
# cairo used in eggtreemultidnd.c
|
||||
# pango used in fr-window
|
||||
RDEPEND="
|
||||
>=app-arch/libarchive-3:=
|
||||
>=dev-libs/glib-2.36:2
|
||||
>=dev-libs/json-glib-0.14
|
||||
>=x11-libs/gtk+-3.13.2:3
|
||||
>=x11-libs/libnotify-0.4.3:=
|
||||
sys-apps/file
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/pango
|
||||
nautilus? ( >=gnome-base/nautilus-3 )
|
||||
packagekit? ( app-admin/packagekit-base )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/desktop-file-utils
|
||||
>=dev-util/intltool-0.50.1
|
||||
dev-util/itstool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# eautoreconf needs:
|
||||
# gnome-base/gnome-common
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="
|
||||
${PN} is a frontend for several archiving utilities. If you want a
|
||||
particular archive format support, see ${HOMEPAGE}
|
||||
and install the relevant package. For example:
|
||||
7-zip - app-arch/p7zip
|
||||
ace - app-arch/unace
|
||||
arj - app-arch/arj
|
||||
cpio - app-arch/cpio
|
||||
deb - app-arch/dpkg
|
||||
iso - app-cdr/cdrtools
|
||||
jar,zip - app-arch/zip and app-arch/unzip
|
||||
lha - app-arch/lha
|
||||
lzop - app-arch/lzop
|
||||
rar - app-arch/unrar or app-arch/unar
|
||||
rpm - app-arch/rpm
|
||||
unstuff - app-arch/stuffit
|
||||
zoo - app-arch/zoo"
|
||||
|
||||
src_prepare() {
|
||||
# File providing Gentoo package names for various archivers
|
||||
cp -f "${FILESDIR}"/3.6.0-packages.match data/packages.match || die
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --disable-debug because enabling it adds -O0 to CFLAGS
|
||||
gnome2_src_configure \
|
||||
--disable-run-in-place \
|
||||
--disable-static \
|
||||
--disable-debug \
|
||||
--enable-magic \
|
||||
--enable-libarchive \
|
||||
$(use_enable nautilus nautilus-actions) \
|
||||
$(use_enable packagekit)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit eutils gnome2 readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="Archive manager for GNOME"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/FileRoller"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
IUSE="libnotify packagekit"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
|
||||
# gdk-pixbuf used extensively in the source
|
||||
# cairo used in eggtreemultidnd.c
|
||||
# pango used in fr-window
|
||||
RDEPEND="
|
||||
>=app-arch/libarchive-3:=
|
||||
>=dev-libs/glib-2.36:2
|
||||
>=dev-libs/json-glib-0.14
|
||||
>=x11-libs/gtk+-3.13.2:3
|
||||
sys-apps/file
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/pango
|
||||
libnotify? ( >=x11-libs/libnotify-0.4.3:= )
|
||||
packagekit? ( app-admin/packagekit-base )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.50.1
|
||||
dev-util/itstool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# eautoreconf needs:
|
||||
# gnome-base/gnome-common
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="
|
||||
${PN} is a frontend for several archiving utilities. If you want a
|
||||
particular archive format support, see ${HOMEPAGE}
|
||||
and install the relevant package. For example:
|
||||
7-zip - app-arch/p7zip
|
||||
ace - app-arch/unace
|
||||
arj - app-arch/arj
|
||||
cpio - app-arch/cpio
|
||||
deb - app-arch/dpkg
|
||||
iso - app-cdr/cdrtools
|
||||
jar,zip - app-arch/zip and app-arch/unzip
|
||||
lha - app-arch/lha
|
||||
lzop - app-arch/lzop
|
||||
rar - app-arch/unrar or app-arch/unar
|
||||
rpm - app-arch/rpm
|
||||
unstuff - app-arch/stuffit
|
||||
zoo - app-arch/zoo"
|
||||
|
||||
src_prepare() {
|
||||
# File providing Gentoo package names for various archivers
|
||||
cp -f "${FILESDIR}"/3.6.0-packages.match data/packages.match || die
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --disable-debug because enabling it adds -O0 to CFLAGS
|
||||
gnome2_src_configure \
|
||||
--disable-run-in-place \
|
||||
--disable-static \
|
||||
--disable-debug \
|
||||
--enable-magic \
|
||||
--enable-libarchive \
|
||||
$(use_enable libnotify notification) \
|
||||
$(use_enable packagekit)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
[Package Matches]
|
||||
arj=app-arch/arj
|
||||
binutils=sys-devel/binutils
|
||||
bzip2=app-arch/bzip2
|
||||
cpio=app-arch/cpio
|
||||
dpkg=app-arch/dpkg
|
||||
genisoimage=virtual/cdrtools
|
||||
gzip=app-arch/gzip
|
||||
lha=app-arch/lha
|
||||
lrzip=app-arch/lrzip
|
||||
lz4=app-arch/lz4
|
||||
lzip=app-arch/lzip
|
||||
lzma=app-arch/xz-utils
|
||||
lzop=app-arch/lzop
|
||||
ncompress=app-arch/ncompress
|
||||
p7zip=app-arch/p7zip
|
||||
p7zip-full=
|
||||
p7zip-rar=
|
||||
rar=app-arch/rar
|
||||
rpm=app-arch/rpm
|
||||
rzip=app-arch/rzip
|
||||
zip=app-arch/zip
|
||||
zoo=app-arch/zoo
|
||||
tar=app-arch/tar
|
||||
unace=app-arch/unace
|
||||
unalz=
|
||||
unarchiver=app-arch/unar
|
||||
unrar=app-arch/unrar
|
||||
unstaff=
|
||||
unzip=app-arch/unzip
|
||||
xz=app-arch/xz-utils
|
||||
|
@ -1,3 +1,2 @@
|
||||
DIST lxd-2.5.tar.bz2 2267313 SHA256 d87ac77ec6f47cd3e3417a78b0c315dac367bc89c532cf1784d80b31e57cfc8d SHA512 c023f2b9ccd958560eead23806cb60a04371a3721420f5c0d65e55cf2d7647d6690677619c4f8fa91573545817a1444d9d61f6a2b6ca8c3870136911cb1fbce9 WHIRLPOOL e4702e2597c5fe88ffa5139b829146ea474959799910bed79db617d9486da73d9de77c1ad398c1112d04109a858e5684f2c676bfe9fd4d68cf5081fbc0f6ae7a
|
||||
DIST lxd-2.7.tar.bz2 2309735 SHA256 2681a77888e19ed95ea0bd562dee9d03d703d01d25ab8cb8e80eb6c6a5f115ed SHA512 53a34e96a1478bd73f5b12988a10162fc4d93554cfd66a38a82879662e63a6d34cbdba432dea6e45733cb66f3b40b46146c4be2d38a66eb3d553f8157104b212 WHIRLPOOL 7fd13e545c632ee16b96f172948509838bcd85fe3541bd014168acb978811827367d86461eb68579fd6aaf3311a87f960057f207eb9b5a6b908a0aac81a5004d
|
||||
DIST lxd-2.11.tar.bz2 2407968 SHA256 829643811a711c8e3c118274d517091b4fbd4701b760e46d7f53fcc4d356455d SHA512 8269a20e0c0c0f3a3a247af15fcda3aa764cd2353d8a7aa9183646dbf19a080ce09bf31ff91a9faca3eda494460a788deabdb145a59c2aa1861f2df89c43294b WHIRLPOOL ba12b4c41969e17b5f9beaa7908ca7be18d3ce35ae27c762a556fe6d59f48962cf0ccaecc512887d40338e6e26ccdc2cdf6c89d87fd1b2028fb5e04f3a74b639
|
||||
DIST lxd-2.8.tar.bz2 2317466 SHA256 57f08bd3c26ea4f32453aa163b502301ae0a80716d6de56b069eeebb35850011 SHA512 fdf906add25ab0b79ea7669ad569873a256f0cfc220ed816b0dc2c9b1e525a19e2606678d90d50c4f548b4322a2896d4c12069337f9571a9a4f6646fb6f673a5 WHIRLPOOL 049f3664e60e8f6fd98c8403db31db6e1dd5f6efed2e74b9007f9f99a4b337e9f58852253d226fc294c4bc964dd6d5d732a8a386606f206a74d83a32470dc1d3
|
||||
|
@ -0,0 +1,16 @@
|
||||
--- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
|
||||
+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
|
||||
@@ -13,13 +13,11 @@
|
||||
|
||||
.PHONY: default
|
||||
default:
|
||||
- go get -t -v -d ./...
|
||||
go install -v $(TAGS) $(DEBUG) ./...
|
||||
@echo "LXD built successfully"
|
||||
|
||||
.PHONY: client
|
||||
client:
|
||||
- go get -t -v -d ./...
|
||||
go install -v $(TAGS) $(DEBUG) ./lxc
|
||||
@echo "LXD client built successfully"
|
||||
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Container hypervisor based on LXC
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/lxd --group lxd
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,22 +0,0 @@
|
||||
--- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
|
||||
+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
|
||||
@@ -12,19 +12,11 @@
|
||||
|
||||
.PHONY: default
|
||||
default:
|
||||
- # Must a few times due to go get race
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
go install -v $(DEBUG) ./...
|
||||
@echo "LXD built successfully"
|
||||
|
||||
.PHONY: client
|
||||
client:
|
||||
- # Must a few times due to go get race
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
go install -v $(DEBUG) ./lxc
|
||||
@echo "LXD client built successfully"
|
||||
|
@ -1,49 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DAEMON=/usr/sbin/lxd
|
||||
PIDFILE=/run/lxd.pid
|
||||
|
||||
extra_commands="stopall"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use lxcfs
|
||||
|
||||
# remove with 2.0 release
|
||||
need cgmanager
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting lxd server"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--pidfile ${PIDFILE} \
|
||||
--exec ${DAEMON} \
|
||||
--background \
|
||||
--make-pidfile \
|
||||
-- \
|
||||
${LXD_OPTIONS}
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then
|
||||
stopall
|
||||
else
|
||||
ebegin "Stopping lxd service (but not containers)"
|
||||
start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
stopall() {
|
||||
ebegin "Stopping lxd service and containers"
|
||||
if "${DAEMON}" shutdown; then
|
||||
/etc/init.d/lxd zap
|
||||
rm -f ${PIDFILE}
|
||||
fi
|
||||
eend $?
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
--- /Makefile.orig 2016-07-11 23:34:40.299664675 +0000
|
||||
+++ /Makefile 2016-07-11 23:37:00.816018727 +0000
|
||||
@@ -12,19 +12,11 @@
|
||||
|
||||
.PHONY: default
|
||||
default:
|
||||
- # Must a few times due to go get race
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
go install -v $(DEBUG) ./...
|
||||
@echo "LXD built successfully"
|
||||
|
||||
.PHONY: client
|
||||
client:
|
||||
- # Must a few times due to go get race
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
- -go get -t -v -d ./...
|
||||
go install -v $(DEBUG) ./lxc
|
||||
@echo "LXD client built successfully"
|
||||
|
@ -1,27 +0,0 @@
|
||||
# Group which owns the shared socket
|
||||
LXD_OPTIONS+=" --group lxd"
|
||||
|
||||
|
||||
|
||||
# Enable cpu profiling into the specified file
|
||||
#LXD_OPTIONS+=" --cpuprofile /tmp/lxc_cpu_profile"
|
||||
|
||||
# Enable memory profiling into the specified file
|
||||
#LXD_OPTIONS+=" --memprofile /tmp/lxc_mem_profile"
|
||||
|
||||
|
||||
|
||||
# Enables debug mode
|
||||
#LXD_OPTIONS+=" --debug"
|
||||
|
||||
# For debugging, print a complete stack trace every n seconds
|
||||
#LXD_OPTIONS+=" --print-goroutines-every 5"
|
||||
|
||||
# Enables verbose mode
|
||||
#LXD_OPTIONS+=" -v"
|
||||
|
||||
# Logfile to log to
|
||||
#LXD_OPTIONS+=" --logfile /var/log/lxd/lxd.log"
|
||||
|
||||
# Enables syslog logging
|
||||
#LXD_OPTIONS+=" --syslog"
|
@ -1,194 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Fast, dense and secure container management"
|
||||
HOMEPAGE="https://linuxcontainers.org/lxd/introduction/"
|
||||
EGO_PN_PARENT="github.com/lxc"
|
||||
EGO_PN="${EGO_PN_PARENT}/lxd"
|
||||
|
||||
# The source is repackaged using a script at:
|
||||
# https://dev.gentoo.org/~stasibear/lxd_repackage.py
|
||||
# This is necessary because go's native package management assumes
|
||||
# that a build starts with checking out many git repositories, often
|
||||
# from HEAD. This provides no way to build the same code repeatably,
|
||||
# and anyway portage requires that fetching is only done from SRC_URI.
|
||||
# The only sane alternative I've seen is in the consul ebuild, which
|
||||
# is more transparent but raises other questions.
|
||||
SRC_URI="https://dev.gentoo.org/~stasibear/distfiles/${P}.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PLOCALES="de fr ja"
|
||||
IUSE="+daemon nls test"
|
||||
|
||||
# IUSE and PLOCALES must be defined before l10n inherited
|
||||
inherit bash-completion-r1 golang-build l10n linux-info systemd user vcs-snapshot
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.7.1
|
||||
dev-go/go-crypto
|
||||
dev-libs/protobuf
|
||||
nls? ( sys-devel/gettext )
|
||||
test? (
|
||||
app-misc/jq
|
||||
dev-db/sqlite
|
||||
net-misc/curl
|
||||
sys-devel/gettext
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
daemon? (
|
||||
app-admin/cgmanager
|
||||
app-arch/xz-utils
|
||||
app-emulation/lxc[cgmanager,seccomp]
|
||||
net-dns/dnsmasq[dhcp,ipv6]
|
||||
net-misc/rsync[xattr]
|
||||
sys-apps/iproute2[ipv6]
|
||||
sys-fs/squashfs-tools
|
||||
virtual/acl
|
||||
)
|
||||
"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~BRIDGE
|
||||
~DUMMY
|
||||
~IP6_NF_NAT
|
||||
~IP6_NF_TARGET_MASQUERADE
|
||||
~IPV6
|
||||
~IP_NF_NAT
|
||||
~IP_NF_TARGET_MASQUERADE
|
||||
~MACVLAN
|
||||
~NETFILTER_XT_MATCH_COMMENT
|
||||
~NET_IPGRE
|
||||
~NET_IPGRE_DEMUX
|
||||
~NET_IPIP
|
||||
~NF_NAT_MASQUERADE_IPV4
|
||||
~NF_NAT_MASQUERADE_IPV6
|
||||
~VXLAN
|
||||
"
|
||||
|
||||
ERROR_BRIDGE="BRIDGE: needed for network commands"
|
||||
ERROR_DUMMY="DUMMY: needed for network commands"
|
||||
ERROR_IP6_NF_NAT="IP6_NF_NAT: needed for network commands"
|
||||
ERROR_IP6_NF_TARGET_MASQUERADE="IP6_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_IPV6="IPV6: needed for network commands"
|
||||
ERROR_IP_NF_NAT="IP_NF_NAT: needed for network commands"
|
||||
ERROR_IP_NF_TARGET_MASQUERADE="IP_NF_TARGET_MASQUERADE: needed for network commands"
|
||||
ERROR_MACVLAN="MACVLAN: needed for network commands"
|
||||
ERROR_NETFILTER_XT_MATCH_COMMENT="NETFILTER_XT_MATCH_COMMENT: needed for network commands"
|
||||
ERROR_NET_IPGRE="NET_IPGRE: needed for network commands"
|
||||
ERROR_NET_IPGRE_DEMUX="NET_IPGRE_DEMUX: needed for network commands"
|
||||
ERROR_NET_IPIP="NET_IPIP: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV4="NF_NAT_MASQUERADE_IPV4: needed for network commands"
|
||||
ERROR_NF_NAT_MASQUERADE_IPV6="NF_NAT_MASQUERADE_IPV6: needed for network commands"
|
||||
ERROR_VXLAN="VXLAN: needed for network commands"
|
||||
|
||||
PATCHES=("${FILESDIR}/${P}-dont-go-get.patch")
|
||||
|
||||
# KNOWN ISSUES:
|
||||
# - Translations may not work. I've been unsuccessful in forcing
|
||||
# localized output. Anyway, upstream (Canonical) doesn't install the
|
||||
# message files.
|
||||
|
||||
src_prepare() {
|
||||
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||
|
||||
default_src_prepare
|
||||
|
||||
tmpgoroot="${T}/goroot"
|
||||
mkdir -p "$tmpgoroot" || die "Failed to create temporary GOROOT"
|
||||
cp -sR "$(get_golibdir_gopath)"/* "${tmpgoroot}" || die "Failed to copy files to temporary GOROOT"
|
||||
|
||||
# Warn on unhandled locale changes
|
||||
l10n_find_plocales_changes po "" .po
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
golang-build_src_compile
|
||||
|
||||
cd "${S}/src/${EGO_PN}" || die "Failed to change to deep src dir"
|
||||
|
||||
tmpgoroot="${T}/goroot"
|
||||
if use daemon; then
|
||||
# Build binaries
|
||||
GOPATH="${S}:${tmpgoroot}" emake
|
||||
else
|
||||
# build client tool
|
||||
GOPATH="${S}:${tmpgoroot}" emake client
|
||||
fi
|
||||
|
||||
use nls && emake build-mo
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use daemon; then
|
||||
# Go native tests should succeed
|
||||
golang-build_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Installs all src,pkg to /usr/lib/go-gentoo
|
||||
golang-build_src_install
|
||||
|
||||
cd "${S}"
|
||||
dobin bin/lxc
|
||||
use daemon && dosbin bin/lxd
|
||||
|
||||
cd "src/${EGO_PN}"
|
||||
|
||||
if use nls; then
|
||||
for lingua in ${PLOCALES}; do
|
||||
if use linguas_${lingua}; then
|
||||
domo po/${lingua}.mo
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if use daemon; then
|
||||
newinitd "${FILESDIR}"/${P}.initd lxd
|
||||
newconfd "${FILESDIR}"/${P}.confd lxd
|
||||
|
||||
systemd_dounit "${FILESDIR}"/lxd.service
|
||||
fi
|
||||
|
||||
newbashcomp config/bash/lxd-client lxc
|
||||
|
||||
dodoc AUTHORS CONTRIBUTING.md README.md doc/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "Consult https://wiki.gentoo.org/wiki/LXD for more information,"
|
||||
einfo "including a Quick Start."
|
||||
|
||||
# The messaging below only applies to daemon installs
|
||||
use daemon || return 0
|
||||
|
||||
# The control socket will be owned by (and writeable by) this group.
|
||||
enewgroup lxd
|
||||
|
||||
# Ubuntu also defines an lxd user but it appears unused (the daemon
|
||||
# must run as root)
|
||||
|
||||
einfo
|
||||
einfo "Though not strictly required, some features are enabled at run-time"
|
||||
einfo "when the relevant helper programs are detected:"
|
||||
einfo "- sys-apps/apparmor"
|
||||
einfo "- sys-fs/btrfs-progs"
|
||||
einfo "- sys-fs/lvm2"
|
||||
einfo "- sys-fs/lxcfs"
|
||||
einfo "- sys-fs/zfs"
|
||||
einfo "- sys-process/criu"
|
||||
einfo
|
||||
einfo "Since these features can't be disabled at build-time they are"
|
||||
einfo "not USE-conditional."
|
||||
einfo
|
||||
einfo "Networks with bridge.mode=fan are unsupported due to requiring"
|
||||
einfo "a patched kernel and iproute2."
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="A parser generator for many languages"
|
||||
HOMEPAGE="http://www.antlr2.org/"
|
||||
SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
JAVA_SRC_DIR="${S}/${PN}"
|
||||
|
||||
DOCS=( CHANGES.txt README.txt )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
java-pkg_clean
|
||||
|
||||
# Delete build files from examples.
|
||||
find examples \( -name Makefile.in -o -name shiplist \) -delete || die
|
||||
}
|
||||
|
||||
# Avoid configure script.
|
||||
src_configure() { :; }
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
java-pkg_dolauncher antlr --main antlr.Tool
|
||||
|
||||
use doc && java-pkg_dohtml -r doc/*
|
||||
use examples && java-pkg_doexamples examples/java
|
||||
use source && java-pkg_dosrc antlr
|
||||
|
||||
einstalldocs
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
https://bugs.gentoo.org/609592
|
||||
https://bugs.exim.org/show_bug.cgi?id=2035
|
||||
|
||||
From 7ddfbe9d0b9f43402f8043e940172a318cc407c6 Mon Sep 17 00:00:00 2001
|
||||
From: Zoltan Herczeg <hzmester@freemail.hu>
|
||||
Date: Tue, 14 Feb 2017 08:48:18 +0000
|
||||
Subject: [PATCH] Fix a missing else in the JIT compiler reported by
|
||||
'idaifish'.
|
||||
|
||||
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1680 2f5784b3-3f2a-0410-8824-cb99058d5e15
|
||||
---
|
||||
ChangeLog | 2 ++
|
||||
pcre_jit_compile.c | 2 +-
|
||||
testdata/testinput12 | 2 ++
|
||||
testdata/testoutput12 | 2 ++
|
||||
4 files changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index 373ee8422ef5..d813935539bd 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -15,6 +15,8 @@ mode with --only-matching matched several lines, it restarted scanning at the
|
||||
next line instead of moving on to the end of the matched string, which can be
|
||||
several lines after the start.
|
||||
|
||||
+3. Fix a missing else in the JIT compiler reported by 'idaifish'.
|
||||
+
|
||||
|
||||
Version 8.40 11-January-2017
|
||||
----------------------------
|
||||
diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c
|
||||
index c301f05d5e3f..6ef8e48ff5e8 100644
|
||||
--- a/pcre_jit_compile.c
|
||||
+++ b/pcre_jit_compile.c
|
||||
@@ -8110,7 +8110,7 @@ if (opcode == OP_COND || opcode == OP_SCOND)
|
||||
|
||||
if (*matchingpath == OP_FAIL)
|
||||
stacksize = 0;
|
||||
- if (*matchingpath == OP_RREF)
|
||||
+ else if (*matchingpath == OP_RREF)
|
||||
{
|
||||
stacksize = GET2(matchingpath, 1);
|
||||
if (common->currententry == NULL)
|
||||
diff --git a/testdata/testinput12 b/testdata/testinput12
|
||||
index 944be6943f5e..89ed4564bcd4 100644
|
||||
--- a/testdata/testinput12
|
||||
+++ b/testdata/testinput12
|
||||
@@ -104,4 +104,6 @@ and a couple of things that are different with JIT. --/
|
||||
/(.|.)*?bx/
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabax
|
||||
|
||||
+/((?(?!))x)(?'name')(?1)/S++
|
||||
+
|
||||
/-- End of testinput12 --/
|
||||
diff --git a/testdata/testoutput12 b/testdata/testoutput12
|
||||
index 87911086f498..7632c4e58013 100644
|
||||
--- a/testdata/testoutput12
|
||||
+++ b/testdata/testoutput12
|
||||
@@ -201,4 +201,6 @@ No match, mark = m (JIT)
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabax
|
||||
Error -8 (match limit exceeded)
|
||||
|
||||
+/((?(?!))x)(?'name')(?1)/S++
|
||||
+
|
||||
/-- End of testinput12 --/
|
||||
--
|
||||
2.12.0
|
||||
|
@ -0,0 +1,69 @@
|
||||
From 5be027b624bc866702808abadfe5f99360414086 Mon Sep 17 00:00:00 2001
|
||||
From: Philip Hazel <ph10@cam.ac.uk>
|
||||
Date: Fri, 10 Feb 2017 17:47:34 +0000
|
||||
Subject: [PATCH] Correct fix for pcre2grep multiline with --only-matching.
|
||||
|
||||
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1678 2f5784b3-3f2a-0410-8824-cb99058d5e15
|
||||
---
|
||||
ChangeLog | 5 +++++
|
||||
configure.ac | 6 +++---
|
||||
pcregrep.c | 20 +++++++++++++++-----
|
||||
3 files changed, 23 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index ab4e053e601e..373ee8422ef5 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -10,6 +10,11 @@ Version 8.41
|
||||
1. Fixed typo in CMakeLists.txt (wrong number of arguments for
|
||||
PCRE_STATIC_RUNTIME (affects MSVC only).
|
||||
|
||||
+2. Issue 1 for 8.40 below was not correctly fixed. If pcregrep in multiline
|
||||
+mode with --only-matching matched several lines, it restarted scanning at the
|
||||
+next line instead of moving on to the end of the matched string, which can be
|
||||
+several lines after the start.
|
||||
+
|
||||
|
||||
Version 8.40 11-January-2017
|
||||
----------------------------
|
||||
diff --git a/pcregrep.c b/pcregrep.c
|
||||
index fd2a67622baa..2070c057e4a0 100644
|
||||
--- a/pcregrep.c
|
||||
+++ b/pcregrep.c
|
||||
@@ -1804,11 +1804,6 @@ while (ptr < endptr)
|
||||
if (line_buffered) fflush(stdout);
|
||||
rc = 0; /* Had some success */
|
||||
|
||||
- /* If the current match ended past the end of the line (only possible
|
||||
- in multiline mode), we are done with this line. */
|
||||
-
|
||||
- if ((unsigned int)offsets[1] > linelength) goto END_ONE_MATCH;
|
||||
-
|
||||
startoffset = offsets[1]; /* Restart after the match */
|
||||
if (startoffset <= oldstartoffset)
|
||||
{
|
||||
@@ -1818,6 +1813,21 @@ while (ptr < endptr)
|
||||
if (utf8)
|
||||
while ((matchptr[startoffset] & 0xc0) == 0x80) startoffset++;
|
||||
}
|
||||
+
|
||||
+ /* If the current match ended past the end of the line (only possible
|
||||
+ in multiline mode), we must move on to the line in which it did end
|
||||
+ before searching for more matches. */
|
||||
+
|
||||
+ while (startoffset > (int)linelength)
|
||||
+ {
|
||||
+ matchptr = ptr += linelength + endlinelength;
|
||||
+ filepos += (int)(linelength + endlinelength);
|
||||
+ linenumber++;
|
||||
+ startoffset -= (int)(linelength + endlinelength);
|
||||
+ t = end_of_line(ptr, endptr, &endlinelength);
|
||||
+ linelength = t - ptr - endlinelength;
|
||||
+ }
|
||||
+
|
||||
goto ONLY_MATCHING_RESTART;
|
||||
}
|
||||
}
|
||||
--
|
||||
2.12.0
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 8b0fdf16e57ce9a653a0a03c39f6cc061e8122e8 Mon Sep 17 00:00:00 2001
|
||||
From: Philip Hazel <ph10@cam.ac.uk>
|
||||
Date: Sun, 12 Feb 2017 13:28:11 +0000
|
||||
Subject: [PATCH] Fix bug in most recent fix for multiline pcre2grep.
|
||||
|
||||
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1679 2f5784b3-3f2a-0410-8824-cb99058d5e15
|
||||
---
|
||||
pcregrep.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/pcregrep.c b/pcregrep.c
|
||||
index 2070c057e4a0..3cd70eeb4261 100644
|
||||
--- a/pcregrep.c
|
||||
+++ b/pcregrep.c
|
||||
@@ -1826,6 +1826,7 @@ while (ptr < endptr)
|
||||
startoffset -= (int)(linelength + endlinelength);
|
||||
t = end_of_line(ptr, endptr, &endlinelength);
|
||||
linelength = t - ptr - endlinelength;
|
||||
+ length = (size_t)(endptr - ptr);
|
||||
}
|
||||
|
||||
goto ONLY_MATCHING_RESTART;
|
||||
--
|
||||
2.12.0
|
||||
|
@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils multilib libtool flag-o-matic toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Perl-compatible regular expression library"
|
||||
HOMEPAGE="http://www.pcre.org/"
|
||||
MY_P="pcre-${PV/_rc/-RC}"
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
# Only the final releases are available here.
|
||||
SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2
|
||||
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
|
||||
else
|
||||
SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
|
||||
fi
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib"
|
||||
REQUIRED_USE="readline? ( !libedit )
|
||||
libedit? ( !readline )"
|
||||
|
||||
RDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
zlib? ( sys-libs/zlib )
|
||||
libedit? ( dev-libs/libedit )
|
||||
readline? ( sys-libs/readline:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${RDEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r2
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/pcre-config
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-pcregrep-multiline-{1,2}.patch
|
||||
"${FILESDIR}"/${P}-jit-else.patch #609592
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
--with-match-limit-recursion=$(usex recursion-limit 8192 MATCH_LIMIT) \
|
||||
$(multilib_native_use_enable bzip2 pcregrep-libbz2) \
|
||||
$(use_enable cxx cpp) \
|
||||
$(use_enable jit) $(use_enable jit pcregrep-jit) \
|
||||
$(use_enable pcre16) \
|
||||
$(use_enable pcre32) \
|
||||
$(multilib_native_use_enable libedit pcretest-libedit) \
|
||||
$(multilib_native_use_enable readline pcretest-libreadline) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable unicode utf) $(use_enable unicode unicode-properties) \
|
||||
$(multilib_native_use_enable zlib pcregrep-libz) \
|
||||
--enable-pcre8 \
|
||||
--enable-shared \
|
||||
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
$(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
|
||||
install
|
||||
gen_usr_ldscript -a pcre
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib /$(get_libdir)/libpcre.so.0
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify /$(get_libdir)/libpcre.so.0
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST File_Find-1.3.2.tgz 8157 SHA256 2e8837afebf64ac332c7e75c4df8941f7d181c5e51894a766d0dc553bb8121b8 SHA512 c764c3ad9b215a3c371414c94af191531ea714d5bc02b63debdf063b1a85aac952655ef64c92ce50c838bd49700956406fd4d314327f2d84c7c4b90258defce4 WHIRLPOOL c53757dbcf38df62249c431e2814da6a85d15145934c77c531b4d98051aa4eb10e7f72b2e9e5e3122588cb3372b4b1422c6d1f3a56cc28de45616da5326700e4
|
||||
DIST File_Find-1.3.3.tgz 8212 SHA256 a2fff81525a041ce54e5ec0941e7967e9faf109dd56e6f50b3111470f71c624b SHA512 f912e1f680c5869380791979bd33dabce0e95e40a84ee188052b2be8280de806fd117c11d66b98b7072724ecd9d57203ee5a32fe35705c337e73393fec075bb0 WHIRLPOOL 04e7909ceeb54f7f3dbe9c03943a7b044939277cb2333b147a273fe15d0a88918d13df9e34c7398b7388531eb02374a72152c3e4833ea6fda681ee204ab2d61e
|
||||
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>php-bugs@gentoo.org</email>
|
||||
<name>PHP</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>php-bugs@gentoo.org</email>
|
||||
<name>PHP</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">pear/File_Find</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
inherit php-pear-r2
|
||||
|
||||
DESCRIPTION="Swiss-army knife for reading and writing XML files"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="examples test"
|
||||
|
||||
RDEPEND="dev-lang/php:*[xml]
|
||||
>=dev-php/PEAR-XML_Parser-1.2.7
|
||||
>=dev-php/PEAR-XML_Util-1.1.1-r1
|
||||
"
|
||||
DEPEND="test? ( ${RDEPEND} )"
|
||||
|
||||
src_install() {
|
||||
php-pear-r2_src_install
|
||||
if use examples ; then
|
||||
insinto /usr/share/php/docs/${PN/PEAR-//}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
peardev run-tests -r || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST XML_Util-1.3.0.tgz 17186 SHA256 1396dbf975ae7235ec4131c40d772a3958d6086c34ea985a03e988e241c0892e SHA512 751af0c2329bee53b6b374fc613ed8c388ace6b9d5246f7ecade0e74e5f41101bd14727e1bcd566d850aea5b336981daac92d6adb8d66dbe7425990460ef0633 WHIRLPOOL d5dbbe9bcca96fdf11d009ea93c94b0eb3b2b332ad13ac23a8365a8e384d24b3da9e314fa56bd68c4b987d23a6a323772963f62390494b80f4be48a40d897195
|
||||
DIST XML_Util-1.4.2.tgz 18993 SHA256 f6b5b180dbdd7ae24504007d83cf482d6105747ed4381019bdf3a61b78610239 SHA512 e0a328f92cdcd09277238e14d68b73cba319ab9b4e9c50ab102b43f73c889599f5933415dc228bd1feb56a48c1527e0e9a86999ee2209b2d84131691aee74cbe WHIRLPOOL 263788abc1093b736f6db7b7e19b8c72c7fdce3e2d1fd1a3f8747198d9fa60217869e7a5e18d4aea6878e016aaf8306276c59764ff23f07aa85888e60d493315
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PN="${PN/PEAR-/}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="XML utility class"
|
||||
HOMEPAGE="http://pear.php.net/package/${MY_PN}"
|
||||
SRC_URI="http://pear.php.net/get/${MY_P}.tgz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86"
|
||||
IUSE="examples"
|
||||
|
||||
# PCRE is needed for a few calls to preg_replace and preg_match.
|
||||
RDEPEND="dev-lang/php:*[pcre(+)]"
|
||||
PDEPEND="dev-php/PEAR-PEAR"
|
||||
DEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/php
|
||||
doins -r XML
|
||||
|
||||
use examples && dodoc -r examples
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="History.md README.md"
|
||||
|
||||
# Rake tasks are not distributed in the gem.
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
inherit virtualx ruby-fakegem
|
||||
|
||||
DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications"
|
||||
HOMEPAGE="https://github.com/jnicklas/capybara"
|
||||
LICENSE="MIT"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="2"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="${DEPEND} test? ( www-client/firefox )"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/rspec:3 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 dev-ruby/sinatra )"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/addressable
|
||||
>=dev-ruby/mime-types-1.16:*
|
||||
>=dev-ruby/nokogiri-1.3.3
|
||||
>=dev-ruby/rack-1.0.0:*
|
||||
>=dev-ruby/rack-test-0.5.4
|
||||
>=dev-ruby/xpath-2.0.0:2"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid window-manager specific tests (sizes are specific for fluxbox)
|
||||
sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
VIRTUALX_COMMAND=${RUBY}
|
||||
virtualmake -Ilib -S rspec-3 spec || die "Tests failed."
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="History.md README.md"
|
||||
|
||||
# Rake tasks are not distributed in the gem.
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
inherit virtualx ruby-fakegem
|
||||
|
||||
DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications"
|
||||
HOMEPAGE="https://github.com/jnicklas/capybara"
|
||||
LICENSE="MIT"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="2"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="${DEPEND} test? ( www-client/firefox )"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/rspec:3 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 dev-ruby/sinatra )"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/addressable
|
||||
>=dev-ruby/mime-types-1.16:*
|
||||
>=dev-ruby/nokogiri-1.3.3
|
||||
>=dev-ruby/rack-1.0.0:*
|
||||
>=dev-ruby/rack-test-0.5.4
|
||||
>=dev-ruby/xpath-2.0.0:2"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/bundler/d' -e '/pry/d' -e '1igem "sinatra"' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid window-manager specific tests (sizes are specific for fluxbox)
|
||||
sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
VIRTUALX_COMMAND=${RUBY}
|
||||
virtualmake -Ilib -S rspec-3 spec || die "Tests failed."
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG Readme.md"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="GetText but 3.5x faster, 560x less memory, clean namespace and threadsave!"
|
||||
HOMEPAGE="https://github.com/grosser/fast_gettext"
|
||||
SRC_URI="https://github.com/grosser/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/activerecord dev-ruby/bundler )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile.lock || die
|
||||
|
||||
# Remove jeweler and bump from Gemfile since they are not needed for tests.
|
||||
sed -i -e '/jeweler/d' -e '/bump/d' -e '/appraisal/d' Gemfile || die
|
||||
|
||||
# Avoid unneeded dependency on git and development dependencies.
|
||||
sed -e '/git ls-files/ s:^:#:' \
|
||||
-e '/\(wwtd\|bump\)/ s:^:#:' \
|
||||
-i fast_gettext.gemspec || die
|
||||
|
||||
# Don't run a test that requires safe mode which we can't provide
|
||||
# due to insecure directory settings for the portage dir. This spec
|
||||
# also calls out to ruby which won't work with different ruby
|
||||
# implementations.
|
||||
sed -i -e '/can work in SAFE mode/,/^ end/ s:^:#:' spec/fast_gettext/translation_repository/mo_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
# Make sure the right ruby interpreter is used
|
||||
sed -i -e "s:bundle exec ruby:bundle exec ${RUBY}:" spec/fast_gettext/vendor/*spec.rb || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST fivemat-1.3.2.gem 9728 SHA256 f319d820bb37fe6292db9fc7184497ed76a99d87eac5edd915d424e6c9337cbf SHA512 76290698c35e6b26234bd76d07fd032a037cd21cb289557dc72c095de6ea86a81d6717ffff0391a9b6305a89f7559f199ec81a1ff29d470d0c7b3ea006119405 WHIRLPOOL 65273439fc6f7307103391e57e7e3f299ad4db2061f039120d9164d169f93386e111e5d4b3722fef176c6341b8f324265ce8e5c8ab6713fab66fe059eb43ac76
|
||||
DIST fivemat-1.3.3.gem 9728 SHA256 29fe65b73b87b68b95745cbd4edde8b7cc75e11bfdcef5f90fabe4b4e74fea73 SHA512 d120a834a4110df6f32d2aaab5a8eda83ea18bc98ce54550002d498763fa54e09f2b757ca1f1627280efa88c56197650fd77ccc30efebba1baac3b19f0f77bcc WHIRLPOOL 27ae1539ad5df23968acbfc58aed75003a05c40b659d753f2497be3db1ed2b80c5bbf1abad619655d8a666dee220d27c888eb73c99a4204f5c492bdc1aba9490
|
||||
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby21 ruby22 ruby23 ruby24"
|
||||
|
||||
# Package does not contain tests
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.markdown"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="MiniTest/RSpec/Cucumber formatter that gives each test file its own line of dots"
|
||||
HOMEPAGE="https://github.com/tpope/fivemat"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23 ruby24"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md ROADMAP.md STANDARD_RESPONSES.md"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="ext"
|
||||
|
||||
inherit ruby-fakegem eutils multilib
|
||||
|
||||
DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
|
||||
HOMEPAGE="http://nokogiri.org/"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
>=dev-libs/libxml2-2.9.2:=
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
DEPEND="${DEPEND}
|
||||
>=dev-libs/libxml2-2.9.2
|
||||
dev-libs/libxslt
|
||||
virtual/libiconv"
|
||||
|
||||
ruby_add_bdepend "
|
||||
dev-ruby/hoe
|
||||
>=dev-ruby/pkg-config-1.1.7
|
||||
dev-ruby/rexical
|
||||
dev-ruby/rdoc
|
||||
dev-ruby/racc
|
||||
test? ( dev-ruby/minitest )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i \
|
||||
-e '/tasks\/cross_compile/s:^:#:' \
|
||||
-e '/:test.*prerequisites/s:^:#:' \
|
||||
-e '/license/ s:^:#:' \
|
||||
Rakefile || die
|
||||
# Remove the cross compilation options since they interfere with
|
||||
# native building.
|
||||
sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
|
||||
sed -i -e '/cross_config_options/d' Rakefile || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
|
||||
${RUBY} -Cext/${PN} extconf.rb \
|
||||
--with-zlib-include="${EPREFIX}"/usr/include \
|
||||
--with-zlib-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-iconv-include="${EPREFIX}"/usr/include \
|
||||
--with-iconv-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
|
||||
--with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-xslt-dir="${EPREFIX}"/usr \
|
||||
--with-iconvlib=iconv \
|
||||
|| die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
|
||||
fi
|
||||
|
||||
if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
|
||||
fi
|
||||
|
||||
emake -Cext/${PN} \
|
||||
V=1 \
|
||||
CFLAGS="${CFLAGS} -fPIC" \
|
||||
archflag="${LDFLAGS}" || die "make extension failed"
|
||||
cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
# Clean up "ext" directory before installing it. nokogumbo expects
|
||||
# the header files and shared object to be in ext.
|
||||
rm -rf ext/java ext/nokogiri/*.o ext/nokogiri/{mkmf.log,Makefile} || die
|
||||
|
||||
each_fakegem_install
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST bcc-0.1.8.tar.gz 694032 SHA256 7535d0dec063454a858337dd07211ad2a207f8fa5665a3fad166f38415e50d70 SHA512 d5a0ba306043f8601c7e358546a57e518f2843228dbeca71d483385b00505af46c89eb92437955e9c325d9b326314101b344e8ca4930bca4161614ca1c893301 WHIRLPOOL 198bdcd72b1a701f8a73fa3ede9385dff2cc0869859962841187692838e002cb78a753f128084d67450d5aeb01034b873268188cecf4af188a5db7a67e676b50
|
||||
DIST bcc-0.2.0.tar.gz 1195653 SHA256 8bdea41286dda0605e3e52fc76d345356dc637434935a112e6378e2dcb439a70 SHA512 edb696a5382e2f56d06e6b8b65c37b50e719da944fbce43cbad116c773e759fb51837d57ae3d159d83a489dfd0254b9f50b97dab7116465d57f787cf50d58808 WHIRLPOOL ffa4b47dbb16a73699176bd2926763588c6f5ed73052d58ce8f9c51af1eba82c73ac541458b34d6fbd8cd9b698b37bfedc9c9f312967ce639f45daf4789138b2
|
||||
DIST bcc-0.3.0.tar.gz 1645152 SHA256 88f54dff96c30c6e7b45f475938eef790b1c9485f794b1ac6791c4e56007f7cc SHA512 e5a0f9ad1b0ba865b5644a5a4a0ad130708aac882239ed545bcfd74a5d80328361bc92287bad5569710849682501841e89279089efc71a97da4e02bfc709b916 WHIRLPOOL fb06e4bd7e5ffbee104b5ad4d6e6a9004fc77dccf9f9cdebfa16741c899ce16c0154d6700f9eb6f8754c90da69eeb17ac9a3e878b5f75965dbccd13f6ad35abb
|
||||
|
@ -1,5 +1 @@
|
||||
DIST gnustep-back-0.22.0.tar.gz 935034 SHA256 b9bf26346737d87160af669c3073b4eb511c743056af90aedb631e1537513608 SHA512 849078bd6c93df7177569d8d4d9b6ecf02e5aac6b60e51c8ae60f08bf45b30fe5abcc2c519d80c593c051d7eead31c219d32d24d95e2db8021fadea638d98478 WHIRLPOOL b21ebccb1afe84a144896312a6f7fc8403da2b39b92952ac9e5f1de02b7dfa218de0289c9333d4f9a21746739ac46ee22d1139d6df98e6d3c09063667d9ee6d6
|
||||
DIST gnustep-back-0.23.0.tar.gz 942380 SHA256 7e897849bf0359d2401a426c75bda89117b5506910892b4eb15262edfb26bbdc SHA512 8789e738b18e4eb1996024c449c4550a392404eb71693569a4b561df22652840a06ca4681b3ec7d47ff3d3d36755a065e956de9203f380c0cc60c76bb412b99c WHIRLPOOL 7b46d1a066889f40c00aa949b65d113027b6e0689349d686db83fd68a7c3a25d03a15c6b04f6c2b4d04ab7b61454bba428d2a3cbdea87541898ce68ec41e7017
|
||||
DIST gnustep-back-0.24.0.tar.gz 966735 SHA256 5fc2ed70076d1cd9d51bf3ad85c71a42bfd29e3fd7c22421cc1de739695c3d62 SHA512 d27ae170ad23ee18a5471f41ee67bcde6ee4ba3e7fa522dac72a1f7fdb363d64a15432e6abbf972089483b356959d060df91d797ab820a01ca4bd85af700bf57 WHIRLPOOL ef713f8ef84db12a75a2c1d1a56666c64edbf11ea302b1ed1f55a556eaecdbad74853ef736e665c5a2849210d7c273277c9a3d47ef5f7ca4a7544525367589e9
|
||||
DIST gnustep-back-0.24.1.tar.gz 966529 SHA256 e255628e0f9be9b10359bb1be6690c50a0929bc383e6996966076492af02457e SHA512 7de422b6743d9f8c20bdc1a9a1dda06cbd7bde31eca87a41a457640ec18ca2640797071def5c111383de379537350e57917ca10a156744c7b9db421cdb2db313 WHIRLPOOL 28bd8a4c4e5ceffb06260f5ef58d5500a167825fce876bb0d0465db7926492685f45ffdb4b2d8270553acb513b866592fc333a775ca37dad7021866dd72419ea
|
||||
DIST gnustep-back-0.25.0.tar.gz 974762 SHA256 4276e30e157fb450cc5144501e680e8142b484e6595e5e4f83d14225c60afa91 SHA512 38a098e7fe207c902428c05f01ebf0336b33fb9213368038c2513236255723b642fd9576524ad119ee9511c708be21c155eeaaf297e05c6ebdab8e59efe05770 WHIRLPOOL 2dc49763ecf30e695ae13f8197b140c7d4b9ce17b19364f04bbd0ed0beb626d50943210ad4f1a5baad8ae7957c6c32e5193eaf40d532aabd3f5f455b89776574
|
||||
|
@ -1,83 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="libart_lgpl back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=media-libs/libart_lgpl-2.3
|
||||
>=gnustep-base/mknfonts-0.5-r1
|
||||
media-fonts/dejavu
|
||||
|
||||
!gnustep-base/gnustep-back-cairo
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=art"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
gnustep-base_src_compile
|
||||
|
||||
# Create font lists for DejaVu
|
||||
einfo "Generating nfonts support files"
|
||||
(
|
||||
cd Fonts
|
||||
export "${GS_ENV[@]}"
|
||||
${GNUSTEP_SYSTEM_TOOLS}/mknfonts \
|
||||
$(fc-list : file|grep -v '\.gz'|cut -d: -f1) \
|
||||
|| die "nfonts support files creation failed"
|
||||
# Trim whitepsaces
|
||||
for fdir in *\ */; do
|
||||
mv "$fdir" `echo $fdir | tr -d [:space:]`
|
||||
done
|
||||
)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnustep-base_src_install
|
||||
|
||||
mkdir -p "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
cp -pPR Fonts/*.nfont "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
}
|
||||
|
||||
gnustep_config_script() {
|
||||
echo "echo ' * setting normal font to DejaVuSans'"
|
||||
echo "defaults write NSGlobalDomain NSFont DejaVuSans"
|
||||
echo "echo ' * setting bold font to DejaVuSans-Bold'"
|
||||
echo "defaults write NSGlobalDomain NSBoldFont DejaVuSans-Bold"
|
||||
echo "echo ' * setting fixed font to DejaVuSansMono'"
|
||||
echo "defaults write NSGlobalDomain NSUserFixedPitchFont DejaVuSansMono"
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="libart_lgpl back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=media-libs/libart_lgpl-2.3
|
||||
>=gnustep-base/mknfonts-0.5-r1
|
||||
media-fonts/dejavu
|
||||
|
||||
!gnustep-base/gnustep-back-cairo
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=art"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
gnustep-base_src_compile
|
||||
|
||||
# Create font lists for DejaVu
|
||||
einfo "Generating nfonts support files"
|
||||
(
|
||||
cd Fonts
|
||||
export "${GS_ENV[@]}"
|
||||
${GNUSTEP_SYSTEM_TOOLS}/mknfonts \
|
||||
$(fc-list : file|grep -v '\.gz'|cut -d: -f1) \
|
||||
|| die "nfonts support files creation failed"
|
||||
# Trim whitepsaces
|
||||
for fdir in *\ */; do
|
||||
mv "$fdir" `echo $fdir | tr -d [:space:]`
|
||||
done
|
||||
)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnustep-base_src_install
|
||||
|
||||
mkdir -p "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
cp -pPR Fonts/*.nfont "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
}
|
||||
|
||||
gnustep_config_script() {
|
||||
echo "echo ' * setting normal font to DejaVuSans'"
|
||||
echo "defaults write NSGlobalDomain NSFont DejaVuSans"
|
||||
echo "echo ' * setting bold font to DejaVuSans-Bold'"
|
||||
echo "defaults write NSGlobalDomain NSBoldFont DejaVuSans-Bold"
|
||||
echo "echo ' * setting fixed font to DejaVuSansMono'"
|
||||
echo "defaults write NSGlobalDomain NSUserFixedPitchFont DejaVuSansMono"
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="libart_lgpl back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=media-libs/libart_lgpl-2.3
|
||||
>=gnustep-base/mknfonts-0.5-r1
|
||||
media-fonts/dejavu
|
||||
|
||||
!gnustep-base/gnustep-back-cairo
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=art"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
gnustep-base_src_compile
|
||||
|
||||
# Create font lists for DejaVu
|
||||
einfo "Generating nfonts support files"
|
||||
(
|
||||
cd Fonts
|
||||
export "${GS_ENV[@]}"
|
||||
${GNUSTEP_SYSTEM_TOOLS}/mknfonts \
|
||||
$(fc-list : file|grep -v '\.gz'|cut -d: -f1) \
|
||||
|| die "nfonts support files creation failed"
|
||||
# Trim whitepsaces
|
||||
for fdir in *\ */; do
|
||||
mv "$fdir" `echo $fdir | tr -d [:space:]`
|
||||
done
|
||||
)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnustep-base_src_install
|
||||
|
||||
mkdir -p "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
cp -pPR Fonts/*.nfont "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
}
|
||||
|
||||
gnustep_config_script() {
|
||||
echo "echo ' * setting normal font to DejaVuSans'"
|
||||
echo "defaults write NSGlobalDomain NSFont DejaVuSans"
|
||||
echo "echo ' * setting bold font to DejaVuSans-Bold'"
|
||||
echo "defaults write NSGlobalDomain NSBoldFont DejaVuSans-Bold"
|
||||
echo "echo ' * setting fixed font to DejaVuSansMono'"
|
||||
echo "defaults write NSGlobalDomain NSUserFixedPitchFont DejaVuSansMono"
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="libart_lgpl back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=media-libs/libart_lgpl-2.3
|
||||
>=gnustep-base/mknfonts-0.5-r1
|
||||
media-fonts/dejavu
|
||||
|
||||
!gnustep-base/gnustep-back-cairo
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=art"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
gnustep-base_src_compile
|
||||
|
||||
# Create font lists for DejaVu
|
||||
einfo "Generating nfonts support files"
|
||||
(
|
||||
cd Fonts
|
||||
export "${GS_ENV[@]}"
|
||||
${GNUSTEP_SYSTEM_TOOLS}/mknfonts \
|
||||
$(fc-list : file|grep -v '\.gz'|cut -d: -f1) \
|
||||
|| die "nfonts support files creation failed"
|
||||
# Trim whitepsaces
|
||||
for fdir in *\ */; do
|
||||
mv "$fdir" `echo $fdir | tr -d [:space:]`
|
||||
done
|
||||
)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnustep-base_src_install
|
||||
|
||||
mkdir -p "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
cp -pPR Fonts/*.nfont "${D}/${GNUSTEP_SYSTEM_LIBRARY}/Fonts"
|
||||
}
|
||||
|
||||
gnustep_config_script() {
|
||||
echo "echo ' * setting normal font to DejaVuSans'"
|
||||
echo "defaults write NSGlobalDomain NSFont DejaVuSans"
|
||||
echo "echo ' * setting bold font to DejaVuSans-Bold'"
|
||||
echo "defaults write NSGlobalDomain NSBoldFont DejaVuSans-Bold"
|
||||
echo "echo ' * setting fixed font to DejaVuSansMono'"
|
||||
echo "defaults write NSGlobalDomain NSUserFixedPitchFont DejaVuSansMono"
|
||||
}
|
@ -1,5 +1 @@
|
||||
DIST gnustep-back-0.22.0.tar.gz 935034 SHA256 b9bf26346737d87160af669c3073b4eb511c743056af90aedb631e1537513608 SHA512 849078bd6c93df7177569d8d4d9b6ecf02e5aac6b60e51c8ae60f08bf45b30fe5abcc2c519d80c593c051d7eead31c219d32d24d95e2db8021fadea638d98478 WHIRLPOOL b21ebccb1afe84a144896312a6f7fc8403da2b39b92952ac9e5f1de02b7dfa218de0289c9333d4f9a21746739ac46ee22d1139d6df98e6d3c09063667d9ee6d6
|
||||
DIST gnustep-back-0.23.0.tar.gz 942380 SHA256 7e897849bf0359d2401a426c75bda89117b5506910892b4eb15262edfb26bbdc SHA512 8789e738b18e4eb1996024c449c4550a392404eb71693569a4b561df22652840a06ca4681b3ec7d47ff3d3d36755a065e956de9203f380c0cc60c76bb412b99c WHIRLPOOL 7b46d1a066889f40c00aa949b65d113027b6e0689349d686db83fd68a7c3a25d03a15c6b04f6c2b4d04ab7b61454bba428d2a3cbdea87541898ce68ec41e7017
|
||||
DIST gnustep-back-0.24.0.tar.gz 966735 SHA256 5fc2ed70076d1cd9d51bf3ad85c71a42bfd29e3fd7c22421cc1de739695c3d62 SHA512 d27ae170ad23ee18a5471f41ee67bcde6ee4ba3e7fa522dac72a1f7fdb363d64a15432e6abbf972089483b356959d060df91d797ab820a01ca4bd85af700bf57 WHIRLPOOL ef713f8ef84db12a75a2c1d1a56666c64edbf11ea302b1ed1f55a556eaecdbad74853ef736e665c5a2849210d7c273277c9a3d47ef5f7ca4a7544525367589e9
|
||||
DIST gnustep-back-0.24.1.tar.gz 966529 SHA256 e255628e0f9be9b10359bb1be6690c50a0929bc383e6996966076492af02457e SHA512 7de422b6743d9f8c20bdc1a9a1dda06cbd7bde31eca87a41a457640ec18ca2640797071def5c111383de379537350e57917ca10a156744c7b9db421cdb2db313 WHIRLPOOL 28bd8a4c4e5ceffb06260f5ef58d5500a167825fce876bb0d0465db7926492685f45ffdb4b2d8270553acb513b866592fc333a775ca37dad7021866dd72419ea
|
||||
DIST gnustep-back-0.25.0.tar.gz 974762 SHA256 4276e30e157fb450cc5144501e680e8142b484e6595e5e4f83d14225c60afa91 SHA512 38a098e7fe207c902428c05f01ebf0336b33fb9213368038c2513236255723b642fd9576524ad119ee9511c708be21c155eeaaf297e05c6ebdab8e59efe05770 WHIRLPOOL 2dc49763ecf30e695ae13f8197b140c7d4b9ce17b19364f04bbd0ed0beb626d50943210ad4f1a5baad8ae7957c6c32e5193eaf40d532aabd3f5f455b89776574
|
||||
|
@ -1,21 +0,0 @@
|
||||
Description: Disable workaround for a cairo bug fixed in 1.14.0.
|
||||
Bug-Debian: http://bugs.debian.org/770141
|
||||
Origin: upstream, commit: r38135
|
||||
Last-Update: 2014-11-19
|
||||
---
|
||||
|
||||
--- gnustep-back-0.24.0.orig/Source/cairo/CairoGState.m
|
||||
+++ gnustep-back-0.24.0/Source/cairo/CairoGState.m
|
||||
@@ -1316,9 +1316,10 @@
|
||||
ssize = [source->_surface size];
|
||||
}
|
||||
|
||||
- if (cairo_version() >= CAIRO_VERSION_ENCODE(1, 8, 0))
|
||||
+ if ((cairo_version() >= CAIRO_VERSION_ENCODE(1, 8, 0))
|
||||
+ && (cairo_version() <= CAIRO_VERSION_ENCODE(1, 13, 0)))
|
||||
{
|
||||
- // For cairo > 1.8 we seem to need this adjustment
|
||||
+ // For cairo > 1.8 and < 1.13 we seem to need this adjustment
|
||||
srcRectInBase.origin.y -= 2 * (source->offset.y - ssize.height);
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
|
||||
Subject: Pass a proper format string to syslog()
|
||||
Last-Update: 2011-11-17
|
||||
|
||||
--- gnustep-back.orig/Tools/gpbs.m
|
||||
+++ gnustep-back/Tools/gpbs.m
|
||||
@@ -64,7 +64,7 @@
|
||||
{
|
||||
if (is_daemon)
|
||||
{
|
||||
- syslog (log_priority | prio, ebuf);
|
||||
+ syslog (log_priority | prio, "%s", ebuf);
|
||||
}
|
||||
else if (prio == LOG_INFO)
|
||||
{
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="Cairo back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=x11-libs/cairo-1.2.0[X]
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=cairo"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="Cairo back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=x11-libs/cairo-1.2.0[X]
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=cairo"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnustep-base
|
||||
|
||||
DESCRIPTION="Cairo back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=x11-libs/cairo-1.2.0[X]
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
epatch "${FILESDIR}"/${P}-cairo-scrolling.patch
|
||||
epatch "${FILESDIR}"/${P}-format-security.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=cairo"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="Cairo back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=x11-libs/cairo-1.2.0[X]
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=cairo"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnustep-base
|
||||
|
||||
DESCRIPTION="Cairo back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
>=x11-libs/cairo-1.2.0[X]
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-xlib"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=cairo"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,5 +1 @@
|
||||
DIST gnustep-back-0.22.0.tar.gz 935034 SHA256 b9bf26346737d87160af669c3073b4eb511c743056af90aedb631e1537513608 SHA512 849078bd6c93df7177569d8d4d9b6ecf02e5aac6b60e51c8ae60f08bf45b30fe5abcc2c519d80c593c051d7eead31c219d32d24d95e2db8021fadea638d98478 WHIRLPOOL b21ebccb1afe84a144896312a6f7fc8403da2b39b92952ac9e5f1de02b7dfa218de0289c9333d4f9a21746739ac46ee22d1139d6df98e6d3c09063667d9ee6d6
|
||||
DIST gnustep-back-0.23.0.tar.gz 942380 SHA256 7e897849bf0359d2401a426c75bda89117b5506910892b4eb15262edfb26bbdc SHA512 8789e738b18e4eb1996024c449c4550a392404eb71693569a4b561df22652840a06ca4681b3ec7d47ff3d3d36755a065e956de9203f380c0cc60c76bb412b99c WHIRLPOOL 7b46d1a066889f40c00aa949b65d113027b6e0689349d686db83fd68a7c3a25d03a15c6b04f6c2b4d04ab7b61454bba428d2a3cbdea87541898ce68ec41e7017
|
||||
DIST gnustep-back-0.24.0.tar.gz 966735 SHA256 5fc2ed70076d1cd9d51bf3ad85c71a42bfd29e3fd7c22421cc1de739695c3d62 SHA512 d27ae170ad23ee18a5471f41ee67bcde6ee4ba3e7fa522dac72a1f7fdb363d64a15432e6abbf972089483b356959d060df91d797ab820a01ca4bd85af700bf57 WHIRLPOOL ef713f8ef84db12a75a2c1d1a56666c64edbf11ea302b1ed1f55a556eaecdbad74853ef736e665c5a2849210d7c273277c9a3d47ef5f7ca4a7544525367589e9
|
||||
DIST gnustep-back-0.24.1.tar.gz 966529 SHA256 e255628e0f9be9b10359bb1be6690c50a0929bc383e6996966076492af02457e SHA512 7de422b6743d9f8c20bdc1a9a1dda06cbd7bde31eca87a41a457640ec18ca2640797071def5c111383de379537350e57917ca10a156744c7b9db421cdb2db313 WHIRLPOOL 28bd8a4c4e5ceffb06260f5ef58d5500a167825fce876bb0d0465db7926492685f45ffdb4b2d8270553acb513b866592fc333a775ca37dad7021866dd72419ea
|
||||
DIST gnustep-back-0.25.0.tar.gz 974762 SHA256 4276e30e157fb450cc5144501e680e8142b484e6595e5e4f83d14225c60afa91 SHA512 38a098e7fe207c902428c05f01ebf0336b33fb9213368038c2513236255723b642fd9576524ad119ee9511c708be21c155eeaaf297e05c6ebdab8e59efe05770 WHIRLPOOL 2dc49763ecf30e695ae13f8197b140c7d4b9ce17b19364f04bbd0ed0beb626d50943210ad4f1a5baad8ae7957c6c32e5193eaf40d532aabd3f5f455b89776574
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="Default X11 back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-cairo"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=xlib"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="Default X11 back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-cairo"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=xlib"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="Default X11 back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-cairo"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=xlib"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base
|
||||
|
||||
DESCRIPTION="Default X11 back-end component for the GNUstep GUI Library"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="opengl xim"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
=gnustep-base/gnustep-gui-${PV%.*}*
|
||||
opengl? ( virtual/opengl virtual/glu )
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXft
|
||||
x11-libs/libXrender
|
||||
>=media-libs/freetype-2.1.9
|
||||
|
||||
!gnustep-base/gnustep-back-art
|
||||
!gnustep-base/gnustep-back-cairo"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/gnustep-back-${PV}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
myconf="$(use_enable opengl glx)"
|
||||
myconf="$myconf $(use_enable xim)"
|
||||
myconf="$myconf --enable-server=x11"
|
||||
myconf="$myconf --enable-graphics=xlib"
|
||||
|
||||
econf $myconf
|
||||
}
|
@ -1,4 +1 @@
|
||||
DIST gnustep-base-1.24.6.tar.gz 3502981 SHA256 b6d7bed40c52330928a1e27f8c7b5f8fcf24ede2113542546dcf157a9366d72a SHA512 998b39039cf199d7cd2e8ffded4fa320af1484db80971def0024d1bd6915456d10e30206ffcf1a9d249973e987570bc22dd297068296deab3d3d40a86c7e72e0 WHIRLPOOL 97264750420d9f02c0bbc12cea1218287519745f058dbeb6b532d89d32e6d5a6433e97b562774abe072f1a4ad33094afb23bdae4ec6aa9f267fb495173c9e601
|
||||
DIST gnustep-base-1.24.7.tar.gz 3471931 SHA256 3a907dd955abc41a148da88bd48ce654010050dff52aa20870dfeb190c871762 SHA512 a623b6e5884d8e9bcf04b92bc4c873528abb58d8b831cab91b00d8af393ea07cda0672d98c2dfd2b91fe3f5922ed387518321412151d2e8c1296d7ac30608e5b WHIRLPOOL 0c76467725e694acbf75768f0913f3a95cccb1c7b171fff4323612aa5cdad091e8fe93c46e15289414e505f96804ec22e05623d858d235859a0d392f9b8e6971
|
||||
DIST gnustep-base-1.24.8.tar.gz 3515290 SHA256 5b2a7042bc5001e97ac090143244a4344a6cba72cee53f3840e2492d3db443cb SHA512 ab783b2ab69f4d845d81c51db54686a4064b7ecec45e039d6e17ab8492d16304cfa67ee46a7e80219cbe9b7293b6b203342df0fab5020fd5ba6190d71c9b10df WHIRLPOOL 7f98c200fb8542d18206ad3a73423d7c9910665add63cf5495e31065ac07219ac08e6ca740a508484f6d0c561870e5738273079ccbfddf9fe69a3893ae17f182
|
||||
DIST gnustep-base-1.24.9.tar.gz 3561094 SHA256 059509f9f646c5b916685e74f0ea2a87fc277b16862177c91228735af1a272ef SHA512 baaa3541edf48a5d902f706f9dad261378bf65e5d89f7308ece6a1fe55c348506df4b6d474ae17cdf0072f1e8dec1b2050d59413abe28bd001d5717c54a3ab96 WHIRLPOOL 59f1b29c956185048129bc0ae89802655d446948552c1708030ad8d66e8264f724d6960d5db9a2026022a6533c49a09b0404705cca7071798815276bf17d1f04
|
||||
|
@ -1,65 +0,0 @@
|
||||
--- libs/base/trunk/Tools/gdomap.c 2014/03/19 08:07:41 37755
|
||||
+++ libs/base/trunk/Tools/gdomap.c 2014/03/19 08:18:09 37756
|
||||
@@ -296,7 +296,7 @@
|
||||
# define syslog(prio, msg,...) slogf(_SLOG_SETCODE(_SLOG_SYSLOG, 0), prio, msg, __VA_ARGS__)
|
||||
# endif
|
||||
|
||||
-static int log_priority;
|
||||
+static int log_priority = 0;
|
||||
|
||||
static void
|
||||
gdomap_log (int prio)
|
||||
@@ -4481,16 +4481,7 @@
|
||||
const char *machine = 0;
|
||||
const char *lookupf = 0;
|
||||
int donamesf = 0;
|
||||
-
|
||||
-#if defined(HAVE_SYSLOG)
|
||||
- /* Initially, gdomap_log errors to stderr as well as to syslogd. */
|
||||
-#if defined(SYSLOG_4_2)
|
||||
- openlog ("gdomap", LOG_NDELAY);
|
||||
- log_priority = LOG_DAEMON;
|
||||
-#elif !defined(HAVE_SLOGF)
|
||||
- openlog ("gdomap", LOG_NDELAY, LOG_DAEMON);
|
||||
-#endif
|
||||
-#endif
|
||||
+ int forked = 0;
|
||||
|
||||
#if defined(__MINGW__)
|
||||
WORD wVersionRequested;
|
||||
@@ -4851,7 +4842,6 @@
|
||||
#else
|
||||
if (nofork == 0)
|
||||
{
|
||||
- is_daemon = 1;
|
||||
/*
|
||||
* Now fork off child process to run in background.
|
||||
*/
|
||||
@@ -4865,6 +4855,7 @@
|
||||
/*
|
||||
* Try to run in background.
|
||||
*/
|
||||
+ forked = 1;
|
||||
#if defined(NeXT)
|
||||
setpgrp(0, getpid());
|
||||
#else
|
||||
@@ -4924,6 +4915,19 @@
|
||||
|
||||
#endif /* !__MINGW__ */
|
||||
|
||||
+ if (forked)
|
||||
+ {
|
||||
+ is_daemon = 1;
|
||||
+#if defined(HAVE_SYSLOG)
|
||||
+#if defined(SYSLOG_4_2)
|
||||
+ openlog ("gdomap", LOG_NDELAY);
|
||||
+ log_priority = LOG_DAEMON;
|
||||
+#elif !defined(HAVE_SLOGF)
|
||||
+ openlog ("gdomap", LOG_NDELAY, LOG_DAEMON);
|
||||
+#endif
|
||||
+#endif
|
||||
+ }
|
||||
+
|
||||
init_my_port(); /* Determine port to listen on. */
|
||||
init_ports(); /* Create ports to handle requests. */
|
||||
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnustep-base
|
||||
|
||||
DESCRIPTION="A library of general-purpose, non-graphical Objective C objects"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ppc ~ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="+icu +libffi ssl zeroconf"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=gnustep-base/gnustep-make-2.6.0
|
||||
icu? ( >=dev-libs/icu-4.0:= )
|
||||
!libffi? ( dev-libs/ffcall
|
||||
gnustep-base/gnustep-make[-native-exceptions] )
|
||||
libffi? ( virtual/libffi )
|
||||
ssl? ( net-libs/gnutls )
|
||||
>=dev-libs/libxml2-2.6
|
||||
>=dev-libs/libxslt-1.1
|
||||
>=dev-libs/gmp-4.1
|
||||
>=dev-libs/openssl-0.9.7
|
||||
>=sys-libs/zlib-1.2
|
||||
zeroconf? ( net-dns/avahi )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-gdomap_dos.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf
|
||||
if use libffi;
|
||||
then
|
||||
myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)"
|
||||
else
|
||||
myconf="--disable-libffi --enable-ffcall"
|
||||
fi
|
||||
|
||||
myconf="$myconf $(use_enable icu)"
|
||||
myconf="$myconf $(use_enable ssl tls)"
|
||||
myconf="$myconf $(use_enable zeroconf)"
|
||||
myconf="$myconf --with-xml-prefix=${EPREFIX}/usr"
|
||||
myconf="$myconf --with-gmp-include=${EPREFIX}/usr/include --with-gmp-library=${EPREFIX}/usr/lib"
|
||||
myconf="$myconf --with-default-config=${EPREFIX}/etc/GNUstep/GNUstep.conf"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# We need to set LD_LIBRARY_PATH because the doc generation program
|
||||
# uses the gnustep-base libraries. Since egnustep_env "cleans the
|
||||
# environment" including our LD_LIBRARY_PATH, we're left no choice
|
||||
# but doing it like this.
|
||||
|
||||
egnustep_env
|
||||
egnustep_install
|
||||
|
||||
if use doc ; then
|
||||
export LD_LIBRARY_PATH="${S}/Source/obj:${LD_LIBRARY_PATH}"
|
||||
egnustep_doc
|
||||
fi
|
||||
egnustep_install_config
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnustep-base
|
||||
|
||||
DESCRIPTION="A library of general-purpose, non-graphical Objective C objects"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="+icu +libffi ssl zeroconf"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=gnustep-base/gnustep-make-2.6.0
|
||||
icu? ( >=dev-libs/icu-4.0:= )
|
||||
!libffi? ( dev-libs/ffcall
|
||||
gnustep-base/gnustep-make[-native-exceptions] )
|
||||
libffi? ( virtual/libffi )
|
||||
ssl? ( net-libs/gnutls )
|
||||
>=dev-libs/libxml2-2.6
|
||||
>=dev-libs/libxslt-1.1
|
||||
>=dev-libs/gmp-4.1
|
||||
>=dev-libs/openssl-0.9.7
|
||||
>=sys-libs/zlib-1.2
|
||||
zeroconf? ( net-dns/avahi )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf
|
||||
if use libffi;
|
||||
then
|
||||
myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)"
|
||||
else
|
||||
myconf="--disable-libffi --enable-ffcall"
|
||||
fi
|
||||
|
||||
myconf="$myconf $(use_enable icu)"
|
||||
myconf="$myconf $(use_enable ssl tls)"
|
||||
myconf="$myconf $(use_enable zeroconf)"
|
||||
myconf="$myconf --with-xml-prefix=${EPREFIX}/usr"
|
||||
myconf="$myconf --with-gmp-include=${EPREFIX}/usr/include --with-gmp-library=${EPREFIX}/usr/lib"
|
||||
myconf="$myconf --with-default-config=${EPREFIX}/etc/GNUstep/GNUstep.conf"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# We need to set LD_LIBRARY_PATH because the doc generation program
|
||||
# uses the gnustep-base libraries. Since egnustep_env "cleans the
|
||||
# environment" including our LD_LIBRARY_PATH, we're left no choice
|
||||
# but doing it like this.
|
||||
|
||||
egnustep_env
|
||||
egnustep_install
|
||||
|
||||
if use doc ; then
|
||||
export LD_LIBRARY_PATH="${S}/Source/obj:${LD_LIBRARY_PATH}"
|
||||
egnustep_doc
|
||||
fi
|
||||
egnustep_install_config
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnustep-base
|
||||
|
||||
DESCRIPTION="A library of general-purpose, non-graphical Objective C objects"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="+gnutls +icu +libffi libressl +ssl zeroconf"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=gnustep-base/gnustep-make-2.6.0
|
||||
ssl? (
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
)
|
||||
icu? ( >=dev-libs/icu-4.0:= )
|
||||
!libffi? ( dev-libs/ffcall
|
||||
gnustep-base/gnustep-make[-native-exceptions] )
|
||||
libffi? ( virtual/libffi )
|
||||
>=dev-libs/libxml2-2.6
|
||||
>=dev-libs/libxslt-1.1
|
||||
>=dev-libs/gmp-4.1:=
|
||||
>=sys-libs/zlib-1.2
|
||||
zeroconf? ( net-dns/avahi )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_pretend() {
|
||||
if use ssl && use gnutls && use libressl ; then
|
||||
ewarn "You have enabled both gnutls and libressl, but only"
|
||||
ewarn "one provider can be active. Using gnutls!"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf
|
||||
if use libffi ; then
|
||||
myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)"
|
||||
else
|
||||
myconf="--disable-libffi --enable-ffcall"
|
||||
fi
|
||||
|
||||
if use ssl ; then
|
||||
if use gnutls ; then
|
||||
myconf="$myconf --enable-tls --disable-openssl"
|
||||
else
|
||||
myconf="$myconf --disable-tls --enable-openssl"
|
||||
fi
|
||||
else
|
||||
myconf="$myconf --disable-tls --disable-openssl"
|
||||
fi
|
||||
myconf="$myconf $(use_enable icu)"
|
||||
myconf="$myconf $(use_enable zeroconf)"
|
||||
myconf="$myconf --with-xml-prefix=${EPREFIX}/usr"
|
||||
myconf="$myconf --with-gmp-include=${EPREFIX}/usr/include --with-gmp-library=${EPREFIX}/usr/lib"
|
||||
myconf="$myconf --with-default-config=${EPREFIX}/etc/GNUstep/GNUstep.conf"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# We need to set LD_LIBRARY_PATH because the doc generation program
|
||||
# uses the gnustep-base libraries. Since egnustep_env "cleans the
|
||||
# environment" including our LD_LIBRARY_PATH, we're left no choice
|
||||
# but doing it like this.
|
||||
|
||||
egnustep_env
|
||||
egnustep_install
|
||||
|
||||
if use doc ; then
|
||||
export LD_LIBRARY_PATH="${S}/Source/obj:${LD_LIBRARY_PATH}"
|
||||
egnustep_doc
|
||||
fi
|
||||
egnustep_install_config
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils gnustep-base
|
||||
|
||||
DESCRIPTION="A library of general-purpose, non-graphical Objective C objects"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="+icu +libffi ssl zeroconf"
|
||||
|
||||
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=gnustep-base/gnustep-make-2.6.0
|
||||
icu? ( >=dev-libs/icu-4.0:= )
|
||||
!libffi? ( dev-libs/ffcall
|
||||
gnustep-base/gnustep-make[-native-exceptions] )
|
||||
libffi? ( virtual/libffi )
|
||||
ssl? ( net-libs/gnutls )
|
||||
>=dev-libs/libxml2-2.6
|
||||
>=dev-libs/libxslt-1.1
|
||||
>=dev-libs/gmp-4.1:=
|
||||
>=dev-libs/openssl-0.9.7:=
|
||||
>=sys-libs/zlib-1.2
|
||||
zeroconf? ( net-dns/avahi )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf
|
||||
if use libffi;
|
||||
then
|
||||
myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)"
|
||||
else
|
||||
myconf="--disable-libffi --enable-ffcall"
|
||||
fi
|
||||
|
||||
myconf="$myconf $(use_enable icu)"
|
||||
myconf="$myconf $(use_enable ssl tls)"
|
||||
myconf="$myconf $(use_enable zeroconf)"
|
||||
myconf="$myconf --with-xml-prefix=${EPREFIX}/usr"
|
||||
myconf="$myconf --with-gmp-include=${EPREFIX}/usr/include --with-gmp-library=${EPREFIX}/usr/lib"
|
||||
myconf="$myconf --with-default-config=${EPREFIX}/etc/GNUstep/GNUstep.conf"
|
||||
|
||||
econf $myconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# We need to set LD_LIBRARY_PATH because the doc generation program
|
||||
# uses the gnustep-base libraries. Since egnustep_env "cleans the
|
||||
# environment" including our LD_LIBRARY_PATH, we're left no choice
|
||||
# but doing it like this.
|
||||
|
||||
egnustep_env
|
||||
egnustep_install
|
||||
|
||||
if use doc ; then
|
||||
export LD_LIBRARY_PATH="${S}/Source/obj:${LD_LIBRARY_PATH}"
|
||||
egnustep_doc
|
||||
fi
|
||||
egnustep_install_config
|
||||
}
|
@ -1,6 +1 @@
|
||||
DIST gnustep-gui-0.22.0.tar.gz 2734733 SHA256 201a02da45a3ad2285fee6a6fcc7c8a463632e27d3175d7293e2290e573fca5d SHA512 b9704ac2147f9154acf4077fa8fe691180966535789d2495409d8688738597af1e025eebb5397180a680d3aeb285233608de05b5ec89cb2f7ef2b152865a7afb WHIRLPOOL 6929a40ff6bcbe60bcda79783549127483aa1384bc54dafcd0a14089dcae70d0815afaa1b6ea0e83c77b90595c7fbffcbb696890e69676b30a6e7894113b1c7f
|
||||
DIST gnustep-gui-0.23.0.tar.gz 2771544 SHA256 222886988dd4a94852d7c2d71bce4ef575c7c4a13cdaa4b4588ffb45a9f1a62e SHA512 76c1e37e06cd052c046a512217448c32c100b9823764a7ddb93a2f15537424f9db981675f73c3efda5296c4d77497fedc89216fb8f537bef96516b0424af30f5 WHIRLPOOL 65dd47c11dd9dff48fcfee17fcfc7763e7bf7ad4f721839f48a5daed9fc2c4ac055d6d60ec8a9b32492de626cb5c492fc8e98deaf69fc4373557c8e80d12af52
|
||||
DIST gnustep-gui-0.23.1.tar.gz 2776304 SHA256 417df23ac58e57d6b447e42849106f60c556bce13000e868d0713a7979817cab SHA512 ece579f134f21d8cca5645b026bb8bf260c397e7e5a8481c3a6e518fe5d0a6a449b7ddf80a4a9259451cfbb4df4e68eb6055d454237065d7076db4b56d9619f4 WHIRLPOOL 7d251adfcc615532b17a69fbc3d28a6f550df12dce6c2194bb254774807abfbb59466c3b47f4ae1545ad1b277f00f1908c8ada3ea4e99eee08c88cffdb3bd2e2
|
||||
DIST gnustep-gui-0.24.0.tar.gz 2816889 SHA256 afcbe6633d24a9ee56efdf3d5b990b7baaa0b7f6288d2b72feb233e599fbd234 SHA512 290087c1c985e3542515b2dc48db420ebcf2b37833daad213bb976927b8fc4c5a693e00306ba901031cec90cef29b3d818d26131d72fe86c1c52d9a08b768306 WHIRLPOOL 98b773005b7882111406f59e0e2404e4ba0e16be88eb02bd262899fda2dbcf8f992eb8ac9ae5a1e5b1b7e903c3b00ba5115c94a365b51ae44dc098482c487de8
|
||||
DIST gnustep-gui-0.24.1.tar.gz 2837611 SHA256 a749573c99d668b83230cc40b8b215b13d62e795615799a873981406cf2bb728 SHA512 b78865a10b8fbe51f50a88f0d8a79515662bb983c84e249380a8fd72059a18a7c6d90050bc2edf81eea57893d81ad63cf0d7f594c5beb15ad8633944fa2229ce WHIRLPOOL 541dcb758c48010f00e76056d3423b3ca90b5003b4d2bcc6c86d7efe1fc1e003f1005ec37a35dce9edc76e86f1f130ab234576cb5b204808e4af574c939afe98
|
||||
DIST gnustep-gui-0.25.0.tar.gz 2882556 SHA256 c5756026b339a838db5465b76af6aeda01c21b4f7a2f40215c1fa792631f4e82 SHA512 568c0c9160febbd9bc563bfc7fbec024bc583a2d6ccfb54e527630f1e761a51f57f984a8b83f06cab97f85e3eec183386057fed2d551a383a16cecb60f102dc2 WHIRLPOOL 613dc1c492660a8ef6e335408b05a70ba4cd0d5c0f9468bad6abe107c6f38c15f4f313b79523e45d9e8f4db20b282bdbc5376694363c4dccb54b57e32b9709d1
|
||||
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit gnustep-base multilib
|
||||
|
||||
DESCRIPTION="Library of GUI classes written in Obj-C"
|
||||
HOMEPAGE="http://www.gnustep.org/"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="cups gif jpeg png speech"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
app-text/aspell
|
||||
>=gnustep-base/gnustep-base-1.24.0
|
||||
media-libs/audiofile
|
||||
>=media-libs/tiff-3
|
||||
x11-libs/libXt
|
||||
cups? ( >=net-print/cups-1.1 )
|
||||
gif? ( >=media-libs/giflib-4.1 )
|
||||
jpeg? ( virtual/jpeg )
|
||||
png? ( >=media-libs/libpng-1.2 )
|
||||
speech? ( app-accessibility/flite )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
|
||||
# remove hardcoded -g -Werror, bug #378179
|
||||
sed -i -e 's/-g -Werror//' \
|
||||
Tools/say/GNUmakefile \
|
||||
Tools/speech/GNUmakefile \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf=
|
||||
use gif && myconf="--disable-ungif --enable-libgif"
|
||||
|
||||
econf \
|
||||
$(use_enable cups) \
|
||||
$(use_enable jpeg) \
|
||||
$(use_enable png) \
|
||||
$(use_enable speech) \
|
||||
--with-tiff-include="${EPREFIX}"/usr/include \
|
||||
--with-tiff-library="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The shared library version has changed in this release."
|
||||
ewarn "You will need to recompile all Applications/Tools/etc in order"
|
||||
ewarn "to use this library. Please run revdep-rebuild to do so"
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base multilib
|
||||
|
||||
DESCRIPTION="Library of GUI classes written in Obj-C"
|
||||
HOMEPAGE="http://www.gnustep.org/"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="cups gif jpeg png speech"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
app-text/aspell
|
||||
>=gnustep-base/gnustep-base-1.24.0
|
||||
media-libs/audiofile
|
||||
>=media-libs/tiff-3
|
||||
x11-libs/libXt
|
||||
cups? ( >=net-print/cups-1.1 )
|
||||
gif? ( >=media-libs/giflib-4.1 )
|
||||
jpeg? ( virtual/jpeg )
|
||||
png? ( >=media-libs/libpng-1.2 )
|
||||
speech? ( app-accessibility/flite )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
|
||||
# remove hardcoded -g -Werror, bug #378179
|
||||
sed -i -e 's/-g -Werror//' \
|
||||
Tools/say/GNUmakefile \
|
||||
Tools/speech/GNUmakefile \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf=
|
||||
use gif && myconf="--disable-ungif --enable-libgif"
|
||||
|
||||
econf \
|
||||
$(use_enable cups) \
|
||||
$(use_enable jpeg) \
|
||||
$(use_enable png) \
|
||||
$(use_enable speech) \
|
||||
--with-tiff-include="${EPREFIX}"/usr/include \
|
||||
--with-tiff-library="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The shared library version has changed in this release."
|
||||
ewarn "You will need to recompile all Applications/Tools/etc in order"
|
||||
ewarn "to use this library. Please run revdep-rebuild to do so"
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base multilib
|
||||
|
||||
DESCRIPTION="Library of GUI classes written in Obj-C"
|
||||
HOMEPAGE="http://www.gnustep.org/"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="cups gif jpeg png speech"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
app-text/aspell
|
||||
>=gnustep-base/gnustep-base-1.24.0
|
||||
media-libs/audiofile
|
||||
>=media-libs/tiff-3
|
||||
x11-libs/libXt
|
||||
cups? ( >=net-print/cups-1.1 )
|
||||
gif? ( >=media-libs/giflib-4.1 )
|
||||
jpeg? ( virtual/jpeg )
|
||||
png? ( >=media-libs/libpng-1.2 )
|
||||
speech? ( app-accessibility/flite )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
|
||||
# remove hardcoded -g -Werror, bug #378179
|
||||
sed -i -e 's/-g -Werror//' \
|
||||
Tools/say/GNUmakefile \
|
||||
Tools/speech/GNUmakefile \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf=
|
||||
use gif && myconf="--disable-ungif --enable-libgif"
|
||||
|
||||
econf \
|
||||
$(use_enable cups) \
|
||||
$(use_enable jpeg) \
|
||||
$(use_enable png) \
|
||||
$(use_enable speech) \
|
||||
--with-tiff-include="${EPREFIX}"/usr/include \
|
||||
--with-tiff-library="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The shared library version has changed in this release."
|
||||
ewarn "You will need to recompile all Applications/Tools/etc in order"
|
||||
ewarn "to use this library. Please run revdep-rebuild to do so"
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base multilib
|
||||
|
||||
DESCRIPTION="Library of GUI classes written in Obj-C"
|
||||
HOMEPAGE="http://www.gnustep.org/"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="cups gif jpeg png speech"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
app-text/aspell
|
||||
>=gnustep-base/gnustep-base-1.24.6
|
||||
media-libs/audiofile
|
||||
>=media-libs/tiff-3
|
||||
x11-libs/libXt
|
||||
cups? ( >=net-print/cups-1.7.4 )
|
||||
gif? ( >=media-libs/giflib-4.1 )
|
||||
jpeg? ( virtual/jpeg )
|
||||
png? ( >=media-libs/libpng-1.2 )
|
||||
speech? ( app-accessibility/flite )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
|
||||
# remove hardcoded -g -Werror, bug #378179
|
||||
sed -i -e 's/-g -Werror//' \
|
||||
Tools/say/GNUmakefile \
|
||||
Tools/speech/GNUmakefile \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf=
|
||||
use gif && myconf="--disable-ungif --enable-libgif"
|
||||
|
||||
econf \
|
||||
$(use_enable cups) \
|
||||
$(use_enable jpeg) \
|
||||
$(use_enable png) \
|
||||
$(use_enable speech) \
|
||||
--with-tiff-include="${EPREFIX}"/usr/include \
|
||||
--with-tiff-library="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base multilib
|
||||
|
||||
DESCRIPTION="Library of GUI classes written in Obj-C"
|
||||
HOMEPAGE="http://www.gnustep.org/"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="cups gif icu jpeg png speech"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
app-text/aspell
|
||||
>=gnustep-base/gnustep-base-1.24.6[icu?]
|
||||
media-libs/audiofile
|
||||
>=media-libs/tiff-3:=
|
||||
x11-libs/libXt
|
||||
cups? ( >=net-print/cups-1.7.4:= )
|
||||
gif? ( >=media-libs/giflib-4.1:= )
|
||||
icu? ( dev-libs/icu:= )
|
||||
jpeg? ( virtual/jpeg:= )
|
||||
png? ( >=media-libs/libpng-1.2:= )
|
||||
speech? ( app-accessibility/flite )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
gnustep-base_src_prepare
|
||||
|
||||
# remove hardcoded -g -Werror, bug #378179
|
||||
sed -i -e 's/-g -Werror//' \
|
||||
Tools/say/GNUmakefile \
|
||||
Tools/speech/GNUmakefile \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egnustep_env
|
||||
|
||||
local myconf=
|
||||
use gif && myconf="--disable-ungif --enable-libgif"
|
||||
|
||||
econf \
|
||||
$(use_enable cups) \
|
||||
$(use_enable icu) \
|
||||
$(use_enable jpeg) \
|
||||
$(use_enable png) \
|
||||
$(use_enable speech) \
|
||||
--with-tiff-include="${EPREFIX}"/usr/include \
|
||||
--with-tiff-library="${EPREFIX}"/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
@ -1,4 +1 @@
|
||||
DIST gnustep-make-2.6.2.tar.gz 562770 SHA256 7a95b3fc5bf14f6b06c4f1f716b48e9de13a11c1fa972aa3cc87736cd98f3e3a SHA512 5ef7889418e7e5acc40cd045772b08d178333dd7cb396b46bfcc117b8953c868cffff5ad41153f6cf2029f1d78d7213516cf1c2cfc88f028ffb883d0e83ea6a4 WHIRLPOOL 73f0953ba044323349a60393ca644031bac13ea48dab6ccbbf533ee5e52daa8411f6b7bdc4fc8928536c37c5edcaf3a6ef40c3c2ee335c0608b5c8d3a6d890d5
|
||||
DIST gnustep-make-2.6.6.tar.gz 576589 SHA256 bcef14d875ff70b26dfc9e892f33bd3665e3d5d9b12eca0c4f2aae133aca981d SHA512 bfabcca446e37a167a5ee2da5230023387ed6edec3ca9f7067131f0f1296eb32754f35db13e7fb4670ac9bb9fa2ccfeb728adb63b692ed7f3f8f30ba39276224 WHIRLPOOL 0872046506300e23c40d23a01f29641d299bdc87d4c35d9c189064ed9110fbb7c6aaaf67626282eaa0a1a4a7bc3920617654a412222c19b98571a115020fa033
|
||||
DIST gnustep-make-2.6.7.tar.gz 583730 SHA256 112b57737c3dcc66c78a5c88925ae1d672673d256d9935598e98bcd687d051e4 SHA512 4470844ec50d51ce4609b0ec8031e5dcb8422e46fbcfb6b3d6d2fee11f3b8140f6b07edcc3b8462177acb65d81cd4bc29a4fd86793ae52d6106e698170b0dad0 WHIRLPOOL da525cc4502e082ab1cce5f75c05472a1029041cf327104e714a2641f79961c4ecb9deb2afb707ae83af2fea1e50b0c064b27dd20e84d17d137a75226936d64f
|
||||
DIST gnustep-make-2.6.8.tar.gz 592266 SHA256 603ed2d1339b44d154ea25229330acdedb6784b9c802b3797b2fefe3d2200064 SHA512 1df6757cd1e0dbca3eb6e4ad4346406799ebb2782f5853014cc3b1e8ae47056026e6c5cd43e5671c8802232444602fde164dde352c15b4e0d64bdfdea06bd8a0 WHIRLPOOL d54b06a9082e0b19bdb779c2e3914c57a9ecbad2cbb18de8d6f5cbe07c68208c0e169ee6e8ff41e70d619b028d208ed4089afaa86250bcd7452ae8d90e40cfa8
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env csh
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Test for an interactive shell
|
||||
if ( $?prompt ) then
|
||||
|
||||
setenv GNUSTEP_SYSTEM_TOOLS "@GENTOO_PORTAGE_EPREFIX@"/usr/bin
|
||||
|
||||
if ( -x $GNUSTEP_SYSTEM_TOOLS/make_services ) then
|
||||
$GNUSTEP_SYSTEM_TOOLS/make_services
|
||||
endif
|
||||
|
||||
if ( -x $GNUSTEP_SYSTEM_TOOLS/gdnc ) then
|
||||
$GNUSTEP_SYSTEM_TOOLS/gdnc
|
||||
endif
|
||||
|
||||
endif
|
@ -1,22 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Test for an interactive shell
|
||||
case $- in
|
||||
*i*)
|
||||
;;
|
||||
*)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
GNUSTEP_SYSTEM_TOOLS="@GENTOO_PORTAGE_EPREFIX@"/usr/bin
|
||||
|
||||
if [ -x ${GNUSTEP_SYSTEM_TOOLS}/make_services ]; then
|
||||
${GNUSTEP_SYSTEM_TOOLS}/make_services
|
||||
fi
|
||||
|
||||
if [ -x ${GNUSTEP_SYSTEM_TOOLS}/gdnc ]; then
|
||||
${GNUSTEP_SYSTEM_TOOLS}/gdnc
|
||||
fi
|
@ -1,21 +0,0 @@
|
||||
* grobian@gentoo.org: because we use sandbox this check fails (cannot
|
||||
write outside the DESTDIR. Allowing to write in the
|
||||
GNUSTEP_INSTALLATION_DIR means our sandbox is useless, since then
|
||||
everything can be written, so prefer to just check the DESTDIR
|
||||
location instead.
|
||||
|
||||
--- Master/rules.make
|
||||
+++ Master/rules.make
|
||||
@@ -107,9 +107,9 @@
|
||||
|
||||
ifneq ($(GNUSTEP_INSTALLATION_DIR),)
|
||||
internal-check-install-permissions:
|
||||
- @if [ -d "$(GNUSTEP_INSTALLATION_DIR)" \
|
||||
- -a ! -w "$(GNUSTEP_INSTALLATION_DIR)" ]; then \
|
||||
- echo "*ERROR*: the software is configured to install itself into $(GNUSTEP_INSTALLATION_DIR)"; \
|
||||
+ @if [ -d "$(DESTDIR)$(GNUSTEP_INSTALLATION_DIR)" \
|
||||
+ -a ! -w "$(DESTDIR)$(GNUSTEP_INSTALLATION_DIR)" ]; then \
|
||||
+ echo "*ERROR*: the software is configured to install itself into $(DESTDIR)$(GNUSTEP_INSTALLATION_DIR)"; \
|
||||
echo "but you do not have permissions to write in that directory:";\
|
||||
echo "Aborting installation."; \
|
||||
echo ""; \
|
@ -1,10 +0,0 @@
|
||||
/**
|
||||
* Use "gcc -Werror -Wl,-l:libobjc.so.x testlibobjc.m -o /dev/null"
|
||||
* #import generates a warning with non-objc
|
||||
*/
|
||||
#import <stdio.h>
|
||||
|
||||
int main( int argc, const char *argv[] ) {
|
||||
printf("Linker test\n");
|
||||
return 0;
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit gnustep-base eutils prefix toolchain-funcs
|
||||
|
||||
DESCRIPTION="GNUstep Makefile Package"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="native-exceptions"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=sys-devel/make-3.75
|
||||
>=sys-devel/gcc-3.3[objc]
|
||||
!!gnustep-base/libobjc2"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
# Determine libobjc.so to use
|
||||
if use libobjc2; then
|
||||
libobjc_version=libobjc.so.4
|
||||
else
|
||||
# Find version in active gcc
|
||||
for ver in {2..5};
|
||||
do
|
||||
if $(tc-getCC) -Werror -Wl,-l:libobjc.so.${ver} \
|
||||
"${FILESDIR}"/testlibobjc.m -o /dev/null 2> /dev/null;
|
||||
then
|
||||
libobjc_version=libobjc.so.${ver}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Stop if we could not get libobjc.so
|
||||
if [[ -z ${libobjc_version} ]]; then
|
||||
die "Could not find Objective-C runtime"
|
||||
fi
|
||||
|
||||
# For existing installations, determine if we will use another libobjc.so
|
||||
if has_version gnustep-base/gnustep-make; then
|
||||
local current_libobjc="$(awk -F: '/^OBJC_LIB_FLAG/ {print $2}' ${EPREFIX}/usr/share/GNUstep/Makefiles/config.make)"
|
||||
# Old installations did not set this explicitely
|
||||
: ${current_libobjc:=libobjc.so.2}
|
||||
|
||||
if [[ ${current_libobjc} != ${libobjc_version} ]]; then
|
||||
ewarn "Warning: changed libobjc.so version!!"
|
||||
ewarn "The libobjc.so version used for gnustep-make has changed"
|
||||
ewarn "(either by the libojbc2 use-flag or a GCC upgrade)"
|
||||
ewarn "You must rebuild all gnustep packages installed."
|
||||
ewarn ""
|
||||
ewarn "To do so, please emerge gnustep-base/gnustep-updater and run:"
|
||||
ewarn "# gnustep-updater -l"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use libobjc2; then
|
||||
export CC=clang
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Multilib-strict
|
||||
sed -e "s#/lib#/$(get_libdir)#" -i FilesystemLayouts/fhs-system || die "sed failed"
|
||||
epatch "${FILESDIR}"/${PN}-2.0.1-destdir.patch
|
||||
cp "${FILESDIR}"/gnustep-4.{csh,sh} "${T}"/
|
||||
eprefixify "${T}"/gnustep-4.{csh,sh}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#--enable-objc-nonfragile-abi: only working in clang for now
|
||||
econf \
|
||||
--with-layout=fhs-system \
|
||||
--with-config-file="${EPREFIX}"/etc/GNUstep/GNUstep.conf \
|
||||
--with-objc-lib-flag=-l:${libobjc_version} \
|
||||
$(use_enable libobjc2 objc-nonfragile-abi) \
|
||||
$(use_enable native-exceptions native-objc-exceptions)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
# Prepare doc here (needed when no gnustep-make is already installed)
|
||||
if use doc ; then
|
||||
# If a gnustep-1 environment is set
|
||||
unset GNUSTEP_MAKEFILES
|
||||
pushd Documentation &> /dev/null
|
||||
emake all install
|
||||
popd &> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Get GNUSTEP_* variables
|
||||
. ./GNUstep.conf
|
||||
|
||||
local make_eval
|
||||
use debug || make_eval="${make_eval} debug=no"
|
||||
make_eval="${make_eval} verbose=yes"
|
||||
|
||||
emake ${make_eval} DESTDIR="${D}" install
|
||||
|
||||
# Copy the documentation
|
||||
if use doc ; then
|
||||
dodir ${GNUSTEP_SYSTEM_DOC}
|
||||
cp -r Documentation/tmp-installation/System/Library/Documentation/* \
|
||||
"${ED}"${GNUSTEP_SYSTEM_DOC=}
|
||||
fi
|
||||
|
||||
dodoc FAQ README RELEASENOTES
|
||||
|
||||
exeinto /etc/profile.d
|
||||
doexe "${T}"/gnustep-4.sh
|
||||
doexe "${T}"/gnustep-4.csh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Warn about new layout if old GNUstep directory is still here
|
||||
if [ -e /usr/GNUstep/System ]; then
|
||||
ewarn "Old layout directory detected (/usr/GNUstep/System)"
|
||||
ewarn "Gentoo has switched to FHS layout for GNUstep packages"
|
||||
ewarn "You must first update the configuration files from this package,"
|
||||
ewarn "then remerge all packages still installed with the old layout"
|
||||
ewarn "You can use gnustep-base/gnustep-updater for this task"
|
||||
fi
|
||||
}
|
@ -1,130 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base eutils prefix toolchain-funcs
|
||||
|
||||
DESCRIPTION="GNUstep Makefile Package"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="libobjc2 native-exceptions"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=sys-devel/make-3.75
|
||||
libobjc2? ( gnustep-base/libobjc2
|
||||
>=sys-devel/clang-2.9 )
|
||||
!libobjc2? ( >=sys-devel/gcc-3.3:=[objc]
|
||||
!!gnustep-base/libobjc2 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
# Determine libobjc.so to use
|
||||
if use libobjc2; then
|
||||
libobjc_version=libobjc.so.4
|
||||
else
|
||||
# Find version in active gcc
|
||||
for ver in {2..5};
|
||||
do
|
||||
if $(tc-getCC) -Werror -Wl,-l:libobjc.so.${ver} \
|
||||
"${FILESDIR}"/testlibobjc.m -o /dev/null 2> /dev/null;
|
||||
then
|
||||
libobjc_version=libobjc.so.${ver}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Stop if we could not get libobjc.so
|
||||
if [[ -z ${libobjc_version} ]]; then
|
||||
die "Could not find Objective-C runtime"
|
||||
fi
|
||||
|
||||
# For existing installations, determine if we will use another libobjc.so
|
||||
if has_version gnustep-base/gnustep-make; then
|
||||
local current_libobjc="$(awk -F: '/^OBJC_LIB_FLAG/ {print $2}' ${EPREFIX}/usr/share/GNUstep/Makefiles/config.make)"
|
||||
# Old installations did not set this explicitely
|
||||
: ${current_libobjc:=libobjc.so.2}
|
||||
|
||||
if [[ ${current_libobjc} != ${libobjc_version} ]]; then
|
||||
ewarn "Warning: changed libobjc.so version!!"
|
||||
ewarn "The libobjc.so version used for gnustep-make has changed"
|
||||
ewarn "(either by the libojbc2 use-flag or a GCC upgrade)"
|
||||
ewarn "You must rebuild all gnustep packages installed."
|
||||
ewarn ""
|
||||
ewarn "To do so, please emerge gnustep-base/gnustep-updater and run:"
|
||||
ewarn "# gnustep-updater -l"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use libobjc2; then
|
||||
export CC=clang
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Multilib-strict
|
||||
sed -e "s#/lib#/$(get_libdir)#" -i FilesystemLayouts/fhs-system || die "sed failed"
|
||||
cp "${FILESDIR}"/gnustep-5.{csh,sh} "${T}"/
|
||||
eprefixify "${T}"/gnustep-5.{csh,sh}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#--enable-objc-nonfragile-abi: only working in clang for now
|
||||
econf \
|
||||
INSTALL="${EPREFIX}"/usr/bin/install \
|
||||
--with-layout=fhs-system \
|
||||
--with-config-file="${EPREFIX}"/etc/GNUstep/GNUstep.conf \
|
||||
--with-objc-lib-flag=-l:${libobjc_version} \
|
||||
$(use_enable libobjc2 objc-nonfragile-abi) \
|
||||
$(use_enable native-exceptions native-objc-exceptions)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
# Prepare doc here (needed when no gnustep-make is already installed)
|
||||
if use doc ; then
|
||||
# If a gnustep-1 environment is set
|
||||
unset GNUSTEP_MAKEFILES
|
||||
pushd Documentation &> /dev/null
|
||||
emake -j1 all install
|
||||
popd &> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Get GNUSTEP_* variables
|
||||
. ./GNUstep.conf
|
||||
|
||||
local make_eval
|
||||
use debug || make_eval="${make_eval} debug=no"
|
||||
make_eval="${make_eval} verbose=yes"
|
||||
|
||||
emake ${make_eval} DESTDIR="${D}" install
|
||||
|
||||
# Copy the documentation
|
||||
if use doc ; then
|
||||
dodir ${GNUSTEP_SYSTEM_DOC}
|
||||
cp -r Documentation/tmp-installation/System/Library/Documentation/* \
|
||||
"${ED}"${GNUSTEP_SYSTEM_DOC=}
|
||||
fi
|
||||
|
||||
dodoc FAQ README RELEASENOTES
|
||||
|
||||
exeinto /etc/profile.d
|
||||
doexe "${T}"/gnustep-?.sh
|
||||
doexe "${T}"/gnustep-?.csh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Warn about new layout if old GNUstep directory is still here
|
||||
if [ -e /usr/GNUstep/System ]; then
|
||||
ewarn "Old layout directory detected (/usr/GNUstep/System)"
|
||||
ewarn "Gentoo has switched to FHS layout for GNUstep packages"
|
||||
ewarn "You must first update the configuration files from this package,"
|
||||
ewarn "then remerge all packages still installed with the old layout"
|
||||
ewarn "You can use gnustep-base/gnustep-updater for this task"
|
||||
fi
|
||||
}
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit gnustep-base eutils prefix toolchain-funcs
|
||||
|
||||
DESCRIPTION="GNUstep Makefile Package"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="libobjc2 native-exceptions"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=sys-devel/make-3.75
|
||||
libobjc2? ( gnustep-base/libobjc2
|
||||
sys-devel/clang )
|
||||
!libobjc2? ( !!gnustep-base/libobjc2
|
||||
|| (
|
||||
>=sys-devel/gcc-3.3[objc]
|
||||
sys-devel/clang
|
||||
) )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
# Determine libobjc.so to use
|
||||
if use libobjc2; then
|
||||
libobjc_version=libobjc.so.4
|
||||
else
|
||||
# Find version in active gcc
|
||||
for ver in {2..5};
|
||||
do
|
||||
if $(tc-getCC) -Werror -Wl,-l:libobjc.so.${ver} \
|
||||
"${FILESDIR}"/testlibobjc.m -o /dev/null 2> /dev/null;
|
||||
then
|
||||
libobjc_version=libobjc.so.${ver}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Stop if we could not get libobjc.so
|
||||
if [[ -z ${libobjc_version} ]]; then
|
||||
eerror "${P} requires a working Objective-C runtime and a compiler with"
|
||||
eerror "Objective-C support. Your current settings lack these requirements"
|
||||
if ! use libobjc2;
|
||||
then
|
||||
eerror "Please switch your active compiler to gcc with USE=objc, or clang"
|
||||
fi
|
||||
die "Could not find Objective-C runtime"
|
||||
fi
|
||||
|
||||
# For existing installations, determine if we will use another libobjc.so
|
||||
if has_version gnustep-base/gnustep-make; then
|
||||
local current_libobjc="$(awk -F: '/^OBJC_LIB_FLAG/ {print $2}' ${EPREFIX}/usr/share/GNUstep/Makefiles/config.make)"
|
||||
# Old installations did not set this explicitely
|
||||
: ${current_libobjc:=libobjc.so.2}
|
||||
|
||||
if [[ ${current_libobjc} != ${libobjc_version} ]]; then
|
||||
ewarn "Warning: changed libobjc.so version!!"
|
||||
ewarn "The libobjc.so version used for gnustep-make has changed"
|
||||
ewarn "(either by the libojbc2 use-flag or a GCC upgrade)"
|
||||
ewarn "You must rebuild all gnustep packages installed."
|
||||
ewarn ""
|
||||
ewarn "To do so, please emerge gnustep-base/gnustep-updater and run:"
|
||||
ewarn "# gnustep-updater -l"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use libobjc2; then
|
||||
export CC=clang
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Multilib-strict
|
||||
sed -e "s#/lib#/$(get_libdir)#" -i FilesystemLayouts/fhs-system || die "sed failed"
|
||||
cp "${FILESDIR}"/gnustep-5.{csh,sh} "${T}"/
|
||||
eprefixify "${T}"/gnustep-5.{csh,sh}
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#--enable-objc-nonfragile-abi: only working in clang for now
|
||||
econf \
|
||||
INSTALL="${EPREFIX}"/usr/bin/install \
|
||||
--with-layout=fhs-system \
|
||||
--with-config-file="${EPREFIX}"/etc/GNUstep/GNUstep.conf \
|
||||
--with-objc-lib-flag=-l:${libobjc_version} \
|
||||
$(use_enable libobjc2 objc-nonfragile-abi) \
|
||||
$(use_enable native-exceptions native-objc-exceptions)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
# Prepare doc here (needed when no gnustep-make is already installed)
|
||||
if use doc ; then
|
||||
# If a gnustep-1 environment is set
|
||||
unset GNUSTEP_MAKEFILES
|
||||
pushd Documentation &> /dev/null
|
||||
emake -j1 all install
|
||||
popd &> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Get GNUSTEP_* variables
|
||||
. ./GNUstep.conf
|
||||
|
||||
local make_eval
|
||||
use debug || make_eval="${make_eval} debug=no"
|
||||
make_eval="${make_eval} verbose=yes"
|
||||
|
||||
emake ${make_eval} DESTDIR="${D}" install
|
||||
|
||||
# Copy the documentation
|
||||
if use doc ; then
|
||||
dodir ${GNUSTEP_SYSTEM_DOC}
|
||||
cp -r Documentation/tmp-installation/System/Library/Documentation/* \
|
||||
"${ED}"${GNUSTEP_SYSTEM_DOC=}
|
||||
fi
|
||||
|
||||
dodoc FAQ README RELEASENOTES
|
||||
|
||||
exeinto /etc/profile.d
|
||||
doexe "${T}"/gnustep-?.sh
|
||||
doexe "${T}"/gnustep-?.csh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Warn about new layout if old GNUstep directory is still here
|
||||
if [ -e /usr/GNUstep/System ]; then
|
||||
ewarn "Old layout directory detected (/usr/GNUstep/System)"
|
||||
ewarn "Gentoo has switched to FHS layout for GNUstep packages"
|
||||
ewarn "You must first update the configuration files from this package,"
|
||||
ewarn "then remerge all packages still installed with the old layout"
|
||||
ewarn "You can use gnustep-base/gnustep-updater for this task"
|
||||
fi
|
||||
}
|
@ -1,130 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit gnustep-base eutils prefix toolchain-funcs
|
||||
|
||||
DESCRIPTION="GNUstep Makefile Package"
|
||||
HOMEPAGE="http://www.gnustep.org"
|
||||
SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="libobjc2 native-exceptions"
|
||||
|
||||
DEPEND="${GNUSTEP_CORE_DEPEND}
|
||||
>=sys-devel/make-3.75
|
||||
libobjc2? ( gnustep-base/libobjc2
|
||||
>=sys-devel/clang-2.9 )
|
||||
!libobjc2? ( >=sys-devel/gcc-3.3:=[objc]
|
||||
!!gnustep-base/libobjc2 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
# Determine libobjc.so to use
|
||||
if use libobjc2; then
|
||||
libobjc_version=libobjc.so.4
|
||||
else
|
||||
# Find version in active gcc
|
||||
for ver in {2..5};
|
||||
do
|
||||
if $(tc-getCC) -Werror -Wl,-l:libobjc.so.${ver} \
|
||||
"${FILESDIR}"/testlibobjc.m -o /dev/null 2> /dev/null;
|
||||
then
|
||||
libobjc_version=libobjc.so.${ver}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Stop if we could not get libobjc.so
|
||||
if [[ -z ${libobjc_version} ]]; then
|
||||
die "Could not find Objective-C runtime"
|
||||
fi
|
||||
|
||||
# For existing installations, determine if we will use another libobjc.so
|
||||
if has_version gnustep-base/gnustep-make; then
|
||||
local current_libobjc="$(awk -F: '/^OBJC_LIB_FLAG/ {print $2}' ${EPREFIX}/usr/share/GNUstep/Makefiles/config.make)"
|
||||
# Old installations did not set this explicitely
|
||||
: ${current_libobjc:=libobjc.so.2}
|
||||
|
||||
if [[ ${current_libobjc} != ${libobjc_version} ]]; then
|
||||
ewarn "Warning: changed libobjc.so version!!"
|
||||
ewarn "The libobjc.so version used for gnustep-make has changed"
|
||||
ewarn "(either by the libojbc2 use-flag or a GCC upgrade)"
|
||||
ewarn "You must rebuild all gnustep packages installed."
|
||||
ewarn ""
|
||||
ewarn "To do so, please emerge gnustep-base/gnustep-updater and run:"
|
||||
ewarn "# gnustep-updater -l"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use libobjc2; then
|
||||
export CC=clang
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Multilib-strict
|
||||
sed -e "s#/lib#/$(get_libdir)#" -i FilesystemLayouts/fhs-system || die "sed failed"
|
||||
cp "${FILESDIR}"/gnustep-5.{csh,sh} "${T}"/
|
||||
eprefixify "${T}"/gnustep-5.{csh,sh}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#--enable-objc-nonfragile-abi: only working in clang for now
|
||||
econf \
|
||||
INSTALL="${EPREFIX}"/usr/bin/install \
|
||||
--with-layout=fhs-system \
|
||||
--with-config-file="${EPREFIX}"/etc/GNUstep/GNUstep.conf \
|
||||
--with-objc-lib-flag=-l:${libobjc_version} \
|
||||
$(use_enable libobjc2 objc-nonfragile-abi) \
|
||||
$(use_enable native-exceptions native-objc-exceptions)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
# Prepare doc here (needed when no gnustep-make is already installed)
|
||||
if use doc ; then
|
||||
# If a gnustep-1 environment is set
|
||||
unset GNUSTEP_MAKEFILES
|
||||
pushd Documentation &> /dev/null
|
||||
emake -j1 all install
|
||||
popd &> /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Get GNUSTEP_* variables
|
||||
. ./GNUstep.conf
|
||||
|
||||
local make_eval
|
||||
use debug || make_eval="${make_eval} debug=no"
|
||||
make_eval="${make_eval} verbose=yes"
|
||||
|
||||
emake ${make_eval} DESTDIR="${D}" install
|
||||
|
||||
# Copy the documentation
|
||||
if use doc ; then
|
||||
dodir ${GNUSTEP_SYSTEM_DOC}
|
||||
cp -r Documentation/tmp-installation/System/Library/Documentation/* \
|
||||
"${ED}"${GNUSTEP_SYSTEM_DOC=}
|
||||
fi
|
||||
|
||||
dodoc FAQ README RELEASENOTES
|
||||
|
||||
exeinto /etc/profile.d
|
||||
doexe "${T}"/gnustep-?.sh
|
||||
doexe "${T}"/gnustep-?.csh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Warn about new layout if old GNUstep directory is still here
|
||||
if [ -e /usr/GNUstep/System ]; then
|
||||
ewarn "Old layout directory detected (/usr/GNUstep/System)"
|
||||
ewarn "Gentoo has switched to FHS layout for GNUstep packages"
|
||||
ewarn "You must first update the configuration files from this package,"
|
||||
ewarn "then remerge all packages still installed with the old layout"
|
||||
ewarn "You can use gnustep-base/gnustep-updater for this task"
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue