parent
fe36ad00e7
commit
59ab66a3d9
@ -1,3 +1,4 @@
|
||||
DIST syslog-ng-3.7.1.tar.gz 3509575 SHA256 4c19841b9079b377cd814b1e6ebbf273af41d04d51c648f4c31f19bfadc20220 SHA512 6f9a68aec2594d83c43cf40e12a3d56e65661929a47c2a053ae120e34ad358d4dfd0b5b0303a374a5557f2ac0670114037a339530b111b1078b56e5baf284ed4 WHIRLPOOL 247498f144aec419d1214378332bc286795fa8f59ba33ce75b3d000be6340758f00a694d76b5cbfdd6b68d138a6cd373c06bb52c70e6ed6de29189c03a56d16b
|
||||
DIST syslog-ng_3.4.8.tar.gz 3169372 SHA256 96c2f970fbba4fdd7659b1fee5e476d2858c911d4304d42099f495493762ff49 SHA512 23ba9908664e594c186cbe4bd5dcfb5d2ed3faf02ec45b931bb91b078660547989c2340a08b478a33adb530d39a6d6f39a2e7519107a3f6b923ac9f39529620e WHIRLPOOL 1085fa2c90e0c85421c64ed50e8a357f29006afea2f3e329e42d1e27f4210a10fe0f05d4af95a11c245d68b43644a4a829a50c05b7d541f59a6f580b3643b434
|
||||
DIST syslog-ng_3.6.2.tar.gz 3207456 SHA256 ef47fada52981e09af570457a5af30f815f5d5b6c2e33754cedd4ca9780d8261 SHA512 15603b4df2001e1ce7e0019d0dd9a0f4295445e3fd19a527ebf3d49486da7da27fac6c465727ec0354f8f70ca0f671a285ec132f9aa0de62b40f18b44af2a226 WHIRLPOOL 7135db242374d6e5789c0820a06187b7e325054fd214e3aee75aac5b8dde56786b432cc4519c07ce0cd413c3a560e8e74ee6eca319c21eaa750ca8140ef1b63f
|
||||
DIST syslog-ng_3.6.4.tar.gz 3276432 SHA256 7be11df31ac7d716f1f952e22b5ae8e2049edd633a41b223776a853d9106f4e7 SHA512 9c648628b9bd3ebb25bc44fa6586e88a4b9ed7c24b1c337569d3cccb04bf2f427ba1218900f8dfd8f668f245d6ab44ad45b67da661b7c2af68c6c42101b722e1 WHIRLPOOL 496a9b2e06e33b0c42726f3b13f859f356f136367c48363cd22b086b72f4f54a32cc057235636f2d2ea3ad7bdd622354ea67df1cbc770be608a84bc861fce93d
|
||||
|
@ -0,0 +1,37 @@
|
||||
@version: 3.7
|
||||
# $Id$
|
||||
#
|
||||
# Syslog-ng default configuration file for Gentoo Linux
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=426814
|
||||
@include "scl.conf"
|
||||
|
||||
options {
|
||||
threaded(yes);
|
||||
chain_hostnames(no);
|
||||
|
||||
# The default action of syslog-ng is to log a STATS line
|
||||
# to the file every 10 minutes. That's pretty ugly after a while.
|
||||
# Change it to every 12 hours so you get a nice daily update of
|
||||
# how many messages syslog-ng missed (0).
|
||||
stats_freq(43200);
|
||||
# The default action of syslog-ng is to log a MARK line
|
||||
# to the file every 20 minutes. That's seems high for most
|
||||
# people so turn it down to once an hour. Set it to zero
|
||||
# if you don't want the functionality at all.
|
||||
mark_freq(3600);
|
||||
};
|
||||
|
||||
source src { system(); internal(); };
|
||||
|
||||
destination messages { file("/var/log/messages"); };
|
||||
|
||||
# By default messages are logged to tty12...
|
||||
destination console_all { file("/dev/tty12"); };
|
||||
# ...if you intend to use /dev/console for programs like xconsole
|
||||
# you can comment out the destination line above that references /dev/tty12
|
||||
# and uncomment the line below.
|
||||
#destination console_all { file("/dev/console"); };
|
||||
|
||||
log { source(src); destination(messages); };
|
||||
log { source(src); destination(console_all); };
|
@ -0,0 +1,25 @@
|
||||
@version: 3.7
|
||||
# $Id$
|
||||
#
|
||||
# Syslog-ng default configuration file for Gentoo FreeBSD
|
||||
#
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=426814
|
||||
@include "scl.conf"
|
||||
|
||||
options {
|
||||
threaded(yes);
|
||||
chain_hostnames(no);
|
||||
|
||||
# The default action of syslog-ng is to log a STATS line
|
||||
# to the file every 10 minutes. That's pretty ugly after a while.
|
||||
# Change it to every 12 hours so you get a nice daily update of
|
||||
# how many messages syslog-ng missed (0).
|
||||
stats_freq(43200);
|
||||
};
|
||||
|
||||
source src { system(); internal(); };
|
||||
|
||||
destination messages { file("/var/log/messages"); };
|
||||
|
||||
log { source(src); destination(messages); };
|
@ -0,0 +1,115 @@
|
||||
@version: 3.7
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=426814
|
||||
@include "scl.conf"
|
||||
|
||||
#
|
||||
# Syslog-ng configuration file, compatible with default hardened installations.
|
||||
#
|
||||
|
||||
options {
|
||||
threaded(yes);
|
||||
chain_hostnames(no);
|
||||
stats_freq(43200);
|
||||
};
|
||||
|
||||
source src {
|
||||
unix-dgram("/dev/log");
|
||||
internal();
|
||||
};
|
||||
source kernsrc {
|
||||
file("/proc/kmsg");
|
||||
};
|
||||
|
||||
#source net { udp(); };
|
||||
#log { source(net); destination(net_logs); };
|
||||
#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); };
|
||||
|
||||
destination authlog { file("/var/log/auth.log"); };
|
||||
destination _syslog { file("/var/log/syslog"); };
|
||||
destination cron { file("/var/log/cron.log"); };
|
||||
destination daemon { file("/var/log/daemon.log"); };
|
||||
destination kern { file("/var/log/kern.log"); file("/dev/tty12"); };
|
||||
destination lpr { file("/var/log/lpr.log"); };
|
||||
destination user { file("/var/log/user.log"); };
|
||||
destination uucp { file("/var/log/uucp.log"); };
|
||||
#destination ppp { file("/var/log/ppp.log"); };
|
||||
destination mail { file("/var/log/mail.log"); };
|
||||
|
||||
destination avc { file("/var/log/avc.log"); };
|
||||
destination audit { file("/var/log/audit.log"); };
|
||||
destination pax { file("/var/log/pax.log"); };
|
||||
destination grsec { file("/var/log/grsec.log"); };
|
||||
|
||||
destination mailinfo { file("/var/log/mail.info"); };
|
||||
destination mailwarn { file("/var/log/mail.warn"); };
|
||||
destination mailerr { file("/var/log/mail.err"); };
|
||||
|
||||
destination newscrit { file("/var/log/news/news.crit"); };
|
||||
destination newserr { file("/var/log/news/news.err"); };
|
||||
destination newsnotice { file("/var/log/news/news.notice"); };
|
||||
|
||||
destination debug { file("/var/log/debug"); };
|
||||
destination messages { file("/var/log/messages"); };
|
||||
destination console { usertty("root"); };
|
||||
destination console_all { file("/dev/tty12"); };
|
||||
#destination loghost { udp("loghost" port(999)); };
|
||||
|
||||
destination xconsole { pipe("/dev/xconsole"); };
|
||||
|
||||
filter f_auth { facility(auth); };
|
||||
filter f_authpriv { facility(auth, authpriv); };
|
||||
filter f_syslog { not facility(authpriv, mail); };
|
||||
filter f_cron { facility(cron); };
|
||||
filter f_daemon { facility(daemon); };
|
||||
filter f_kern { facility(kern); };
|
||||
filter f_lpr { facility(lpr); };
|
||||
filter f_mail { facility(mail); };
|
||||
filter f_user { facility(user); };
|
||||
filter f_uucp { facility(uucp); };
|
||||
#filter f_ppp { facility(ppp); };
|
||||
filter f_news { facility(news); };
|
||||
filter f_debug { not facility(auth, authpriv, news, mail); };
|
||||
filter f_messages { level(info..warn)
|
||||
and not facility(auth, authpriv, mail, news); };
|
||||
filter f_emergency { level(emerg); };
|
||||
|
||||
filter f_info { level(info); };
|
||||
|
||||
filter f_notice { level(notice); };
|
||||
filter f_warn { level(warn); };
|
||||
filter f_crit { level(crit); };
|
||||
filter f_err { level(err); };
|
||||
|
||||
filter f_avc { message(".*avc: .*"); };
|
||||
filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); };
|
||||
filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); };
|
||||
filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); };
|
||||
|
||||
log { source(src); filter(f_authpriv); destination(authlog); };
|
||||
log { source(src); filter(f_syslog); destination(_syslog); };
|
||||
log { source(src); filter(f_cron); destination(cron); };
|
||||
log { source(src); filter(f_daemon); destination(daemon); };
|
||||
log { source(kernsrc); filter(f_kern); destination(kern); };
|
||||
log { source(src); filter(f_lpr); destination(lpr); };
|
||||
log { source(src); filter(f_mail); destination(mail); };
|
||||
log { source(src); filter(f_user); destination(user); };
|
||||
log { source(src); filter(f_uucp); destination(uucp); };
|
||||
log { source(kernsrc); filter(f_pax); destination(pax); };
|
||||
log { source(kernsrc); filter(f_grsec); destination(grsec); };
|
||||
log { source(kernsrc); filter(f_audit); destination(audit); };
|
||||
log { source(kernsrc); filter(f_avc); destination(avc); };
|
||||
log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
|
||||
log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
|
||||
log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
|
||||
log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
|
||||
log { source(src); filter(f_news); filter(f_err); destination(newserr); };
|
||||
log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
|
||||
log { source(src); filter(f_debug); destination(debug); };
|
||||
log { source(src); filter(f_messages); destination(messages); };
|
||||
log { source(src); filter(f_emergency); destination(console); };
|
||||
#log { source(src); filter(f_ppp); destination(ppp); };
|
||||
log { source(src); destination(console_all); };
|
@ -0,0 +1,42 @@
|
||||
# Config file for /etc/init.d/syslog-ng
|
||||
|
||||
# If you are not using network logging, this entire section should be
|
||||
# commented out. Otherwise, choose one of the settings below based on
|
||||
# how you are configuring your network.
|
||||
#
|
||||
# If you are using the net.* scripts to configure your network, you should
|
||||
# set rc_need to match the interface through which your logging server
|
||||
# can be reached.
|
||||
#rc_need="net.eth0"
|
||||
#
|
||||
# If you are using an interface manager like wicd, dhcpcd in standalone
|
||||
# mode, networkmanager, etc to control your interfaces, set rc_need to
|
||||
# the name of that service.
|
||||
# rc_need="dhcpcd"
|
||||
#rc_need="networkmanager"
|
||||
#
|
||||
# If you are using newnet and configuring your interface statically with
|
||||
# the network script, you should use this setting.
|
||||
#rc_need="network"
|
||||
#
|
||||
# You can use this setting, but I do not recommend relying on it.
|
||||
#rc_need="net"
|
||||
#
|
||||
# You may also want to uncomment the following if you are using network
|
||||
# logging.
|
||||
#rc_use="stunnel"
|
||||
|
||||
# For very customized setups these variables can be adjusted as needed
|
||||
# but for most situations they should remain commented:
|
||||
# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf
|
||||
# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng
|
||||
# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist
|
||||
# SYSLOG_NG_PIDFILE_DIR=/run
|
||||
# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid
|
||||
# SYSLOG_NG_GROUP=root
|
||||
# SYSLOG_NG_USER=root
|
||||
|
||||
# Put any additional options for syslog-ng here.
|
||||
# See syslog-ng(8) for more information.
|
||||
|
||||
SYSLOG_NG_OPTS=""
|
@ -0,0 +1,59 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf}
|
||||
SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng}
|
||||
SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist}
|
||||
SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/run}
|
||||
SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid}
|
||||
|
||||
SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root}
|
||||
SYSLOG_NG_USER=${SYSLOG_NG_USER:-root}
|
||||
|
||||
command="/usr/sbin/syslog-ng"
|
||||
command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}"
|
||||
extra_commands="checkconfig"
|
||||
extra_started_commands="reload"
|
||||
pidfile="${SYSLOG_NG_PIDFILE}"
|
||||
start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\""
|
||||
description="Syslog-ng is a syslog replacement with advanced filtering features."
|
||||
description_checkconfig="Check the configuration file that will be used by \"start\""
|
||||
description_reload="Reload the configuration without exiting"
|
||||
required_files="${SYSLOG_NG_CONFIGFILE}"
|
||||
required_dirs="${SYSLOG_NG_PIDFILE_DIR}"
|
||||
|
||||
depend() {
|
||||
use clock
|
||||
need hostname localmount
|
||||
after bootmisc
|
||||
provide logger
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})"
|
||||
syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}"
|
||||
eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})"
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkconfig || return 1
|
||||
checkpath \
|
||||
-d \
|
||||
--mode 0700 \
|
||||
--owner "${SYSLOG_NG_USER}:${SYSLOG_NG_GROUP}" \
|
||||
"${SYSLOG_NG_STATEFILE_DIR}"
|
||||
}
|
||||
|
||||
stop_pre() {
|
||||
[ "$RC_CMD" = restart ] && sleep 1
|
||||
return 0
|
||||
}
|
||||
|
||||
reload() {
|
||||
checkconfig || return 1
|
||||
ebegin "Reloading configuration and re-opening log files"
|
||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit autotools python-any-r1 eutils multilib systemd versionator
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
MY_PV_MM=$(get_version_component_range 1-2)
|
||||
DESCRIPTION="syslog replacement with advanced filtering features"
|
||||
HOMEPAGE="http://www.balabit.com/network-security/syslog-ng"
|
||||
SRC_URI="https://github.com/balabit/syslog-ng/releases/download/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="amqp caps dbi geoip ipv6 json mongodb pacct python redis smtp spoof-source systemd tcpd"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
caps? ( sys-libs/libcap )
|
||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
||||
geoip? ( >=dev-libs/geoip-1.5.0 )
|
||||
json? ( >=dev-libs/json-c-0.9 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
redis? ( dev-libs/hiredis )
|
||||
smtp? ( net-libs/libesmtp )
|
||||
spoof-source? ( net-libs/libnet:1.1 )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
|
||||
dev-libs/libpcre
|
||||
dev-libs/openssl:=
|
||||
>=dev-libs/eventlog-0.2.12
|
||||
>=dev-libs/glib-2.10.1:2"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
sys-devel/flex"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
use python && python_fix_shebang .
|
||||
|
||||
if use !json ; then
|
||||
sed -i \
|
||||
-e '1 s/cim //' \
|
||||
scl/Makefile.am || die
|
||||
eautoreconf
|
||||
fi
|
||||
|
||||
cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die
|
||||
cd "${TMPDIR}" || die
|
||||
|
||||
for f in *logrotate*.in ; do
|
||||
if use systemd ; then
|
||||
sed \
|
||||
's/@GENTOO_RESTART@/systemctl kill -s HUP syslog-ng/' \
|
||||
$f > ${f/.in/} || die
|
||||
else
|
||||
sed \
|
||||
's:@GENTOO_RESTART@:/etc/init.d/syslog-ng reload:' \
|
||||
$f > ${f/.in/} || die
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-java \
|
||||
--disable-docs \
|
||||
--enable-manpages \
|
||||
--with-embedded-crypto \
|
||||
--with-ivykis=internal \
|
||||
--with-libmongo-client=internal \
|
||||
--sysconfdir=/etc/syslog-ng \
|
||||
--localstatedir=/var/lib/syslog-ng \
|
||||
--with-pidfile-dir=/var/run \
|
||||
--with-module-dir=/usr/$(get_libdir)/syslog-ng \
|
||||
$(systemd_with_unitdir) \
|
||||
$(use_enable systemd) \
|
||||
$(use_enable caps linux-caps) \
|
||||
$(use_enable geoip) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable json) \
|
||||
$(use_enable mongodb) \
|
||||
$(use_enable pacct) \
|
||||
$(use_enable python) \
|
||||
$(use_enable redis) \
|
||||
$(use_enable smtp) \
|
||||
$(use_enable amqp) \
|
||||
$(usex amqp --with-librabbitmq-client=internal --without-librabbitmq-client) \
|
||||
$(use_enable spoof-source) \
|
||||
$(use_enable dbi sql) \
|
||||
$(use_enable tcpd tcp-wrapper)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# -j1 for bug #484470
|
||||
emake -j1 DESTDIR="${D}" install
|
||||
|
||||
dodoc AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf* \
|
||||
contrib/syslog2ng "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.hardened" \
|
||||
"${TMPDIR}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened"
|
||||
|
||||
# Install default configuration
|
||||
insinto /etc/syslog-ng
|
||||
if use userland_BSD ; then
|
||||
newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo.fbsd" syslog-ng.conf
|
||||
else
|
||||
newins "${FILESDIR}/${MY_PV_MM}/syslog-ng.conf.gentoo" syslog-ng.conf
|
||||
fi
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${TMPDIR}/syslog-ng.logrotate" syslog-ng
|
||||
|
||||
newinitd "${FILESDIR}/${MY_PV_MM}/syslog-ng.rc6" syslog-ng
|
||||
newconfd "${FILESDIR}/${MY_PV_MM}/syslog-ng.confd" syslog-ng
|
||||
keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng
|
||||
prune_libtool_files --modules
|
||||
|
||||
use python && python_optimize
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "For detailed documentation please see the upstream website:"
|
||||
elog "http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.7-guides/en/syslog-ng-ose-v3.7-guide-admin/html/index.html"
|
||||
|
||||
# bug #355257
|
||||
if ! has_version app-admin/logrotate ; then
|
||||
echo
|
||||
elog "It is highly recommended that app-admin/logrotate be emerged to"
|
||||
elog "manage the log files. ${PN} installs a file in /etc/logrotate.d"
|
||||
elog "for logrotate to use."
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,6 +1,3 @@
|
||||
DIST stress-0.18.6.tar.gz 162798 SHA256 e69f78cfb0f956b087275c535f960c281430812243374bf13a784055a453d938 SHA512 870a86a2b67005d58cd14c68e97a66650dc314d7f0f4a0c6061d7fd571916650ec0f4a81d9117762ec489d8caac042d8271e15a303eff5ef45a17a3faea05a7e WHIRLPOOL 1474a41692bc905648a39ab0c3a844254f75e64deff154a8351feb8dce495774d6e65f9aafef262743ebd6a5c43f4fb13df5e1bd567e9ba3e65a5eadd02a8cb5
|
||||
DIST stress-1.0.0.tar.gz 178155 SHA256 778126fdcc3ecb54d4a8dad6164001603bcc3b79ba64b3c2c5285275bc0cbedf SHA512 e71f004f8351b6c29e161084eb5c5b5de78c8c2f7c90b0a3e3669ed35bce08443cb407db781b4291d6e929374cfd2fb8e1c114296f90500d9f22dd994290d8ac WHIRLPOOL 67c6dc89245ec4040e36a74c2cfc04c9bfd62bd202f8726b4b3e22b402dfe9a0eb020d6c12ad4b762c51316fdbd45c41cefc2cf57e426b71cce3bdd4b26c9668
|
||||
DIST stress-1.0.1.tar.gz 203343 SHA256 813a9c78d0a7c27e257ab4523f1b0013e32b0eceabc19154d7d26118e9b73bed SHA512 d7de86cab38a688d2fc55f26a9b3562d58a40ef30bbfa974b6777b6a7d7e1b1f609ef78258af2d1b8aee0bcda432d5abe4f59b9529ea2730e26a054d1683d666 WHIRLPOOL 89349408fbeb654fae162f0e5435264e426b63f7ab05f3199505ded530ab5bb6c426a61440c5ecce34ea07641615a7b38c5d0c35abdb43153b6d9f71c0049c96
|
||||
DIST stress-1.0.3.tar.gz 201376 SHA256 078e63ce88ebb78d0953954b6aaf2d55c6fdc0e6c778f7ad11af3863af941d03 SHA512 21072ef4eff0f689a363fc5350775c162ed34c8c94ae7457a16550e2fcb428cbc9246be617f67c584f384cddfa27587a9f949bf1de34b11c3b97b8a3d589254c WHIRLPOOL 9cd4a73663e7c3374006ae43b2803c8b7f536da36d25709b97a404c46326fd8dbdd20c169ac0d45dde952087f78c727ac58479c2f934440cc468398fa19ffb76
|
||||
DIST stress-1.0.4-r1.tar.gz 191800 SHA256 057e4fc2a7706411e1014bf172e4f94b63a12f18412378fca8684ca92408825b SHA512 623a7d9585828bed4b7673e19fb0cfdda904552cd56353d74106047b64249299d5f8da892ec135f1781ec3984c7d5835dcc6c0d8e659e06c8a1e4fb2af9fd9c4 WHIRLPOOL f61eb216ec44242c74ae86b3c5390c361c16f4466cfad231d4fbfa93f61578c36dde779db3cf0ba8a0e0751b74fb33a1085372d825d9fd0ebb8120962e9f1cdf
|
||||
DIST stress-1.0.4.tar.gz 201495 SHA256 369c997f65e8426ae8b318d4fdc8e6f07a311cfa77cc4b25dace465c582163c0 SHA512 54b3f9edbdaff228f2cfd40a7ce324eea95fc9ab54194d3bac04dc67f72b690e4748c8ff5161bca563d7dd573609092c3631cd4cceb14d813f16f7226ad1ce98 WHIRLPOOL a1ca33b3c3c4ac3e5073a9ea5fa43fe4295bfa2c26627b36366e875dc9c2b1776493d6895ca40008037e2bf2246117067b23cfab568143f1e0e3ec759aa458ea
|
||||
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_P="${PN}-${PV/_/}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DESCRIPTION="Imposes stressful loads on different aspects of the system"
|
||||
HOMEPAGE="http://people.seas.harvard.edu/~apw/stress"
|
||||
SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~mips ppc ppc64 ~sparc x86"
|
||||
IUSE="static"
|
||||
|
||||
src_compile() {
|
||||
use static && append-ldflags -static
|
||||
econf || die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die "make install failed"
|
||||
dodoc ChangeLog AUTHORS README
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
MY_P="${PN}-${PV/_/}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DESCRIPTION="Imposes stressful loads on different aspects of the system"
|
||||
HOMEPAGE="http://people.seas.harvard.edu/~apw/stress"
|
||||
SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~mips ppc ppc64 sparc x86"
|
||||
IUSE="static"
|
||||
|
||||
DEPEND="sys-apps/help2man"
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# Force rebuild of the manpage.
|
||||
rm -f doc/stress.1
|
||||
|
||||
# Honour Gentoo CFLAGS.
|
||||
sed -i -e "/CFLAGS/s/-Werror//" \
|
||||
-e "s/CFLAGS/AM_CFLAGS/" \
|
||||
src/Makefile.am || die "sed cflags failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use static && append-ldflags -static
|
||||
econf
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc ChangeLog AUTHORS README
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
MY_P="${PN}-${PV/_/}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DESCRIPTION="Imposes stressful loads on different aspects of the system"
|
||||
HOMEPAGE="http://people.seas.harvard.edu/~apw/stress"
|
||||
SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="static"
|
||||
|
||||
DEPEND="sys-apps/help2man"
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# Force rebuild of the manpage.
|
||||
rm -f doc/stress.1
|
||||
|
||||
# Honour Gentoo CFLAGS.
|
||||
sed -i -e "/CFLAGS/s/-Werror//" \
|
||||
-e "s/CFLAGS/AM_CFLAGS/" \
|
||||
src/Makefile.am || die "sed cflags failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use static && append-ldflags -static
|
||||
econf
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc ChangeLog AUTHORS README
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST scim-m17n-0.2.2.tar.gz 343103 SHA256 cc88ece9460c25960c092c8cc088162a56c52a9d211c929ecadc15c8aca986ce SHA512 ed29cd191fcf8b56ede3e02034a5cfde0506985648364fed89798aa98d83a2110d1caa32c3b3517008f931a0b3f6dd4f1e9603695ff64230d9e2c1c0d84c4db4 WHIRLPOOL 3231d84b04137d6850c6c7e3ec01c5a6b960ee09d221d0b853e6da7e582bf07238263801b7c9c3d4d2fff6015c3c5b5eb9268d1ca105b079e5cc208821605f14
|
||||
DIST scim-m17n-0.2.3.tar.gz 355801 SHA256 852548310b8fecfd97fcfa4a4aca9d6952e299adc785170cb3a827a8abec512d SHA512 c54be4c8c331d5621dcfa6c0c6f302231071dbbaf3ef7aee4117fe2c2616d58e184d3bae720dce27d5cb6567064add6979630090c72f9350391ca9c3e9c404f3 WHIRLPOOL 5d66046ce3ead52a9c7ca6357de33f435d4df56b2686563fe6368a45421916030442a3d8fb1e7eb1cf229e4897f8c0b60e468b6b5a4ea884dbfb3e1b5eca6107
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="scim-m17n is an input module for Smart Common Input Method (SCIM) which uses m17n as backend"
|
||||
HOMEPAGE="http://www.scim-im.org/projects/imengines"
|
||||
SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="|| ( >=app-i18n/scim-1.4 >=app-i18n/scim-cvs-1.4 )
|
||||
>=dev-libs/m17n-lib-1.2.0"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${P}-gcc43.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
dodoc AUTHORS ChangeLog THANKS README
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "To use SCIM with both GTK2 and XIM, you should use the following"
|
||||
elog "in your user startup scripts such as .gnomerc or .xinitrc:"
|
||||
elog
|
||||
elog "LANG='your_language' scim -d"
|
||||
elog "export XMODIFIERS=@im=SCIM"
|
||||
elog "export GTK_IM_MODULE=\"scim\""
|
||||
elog
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST conf-update-1.0.2.tar.bz2 18243 SHA256 1246b83d8927e4333cfcb535217e5f055bc9aa0290f617c2ab1bb97dbeb3de9c SHA512 8611b30e58a9222a024e19d67e957a63d9c44627067a241e4ee5e761f1950ae7f1aa1491f055ba267be65f813ee7da1a8703028736b65dfd2c4ef79ace906f49 WHIRLPOOL 139e07105eed7d8ee5246c24833ecc110c92a5361892a5ee98ea2eee5d30199cbee788f47497d5d32c95c387bbf2df16589faa79c2dbf00b5ca5d347d7483c9e
|
||||
DIST conf-update-1.0.3.tar.bz2 18296 SHA256 5b8479447904e809338375c7d586803a3e8f8d6150cfc33da2c83763119a9a54 SHA512 7f20a4974f804d73729105d9abc0f3205a7574c6e2c6dbf020404f3161500b5ecc60d141e0833e9ae0f43a814591a74cd885a5033f50864bbcfb36ba452175b7 WHIRLPOOL e078895290de9cc116847a48c6fd6d190bc9a3700001de6d31a5728a7eefd2bc41bb34b67a3922ef10730f4668415a0b519861152ba4e54fe0150ec01232d578
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="${PN} is a ncurses-based config management utility"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/proj/conf-update.git/"
|
||||
SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${PF}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="colordiff"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.6
|
||||
sys-libs/ncurses:0
|
||||
dev-libs/openssl:0
|
||||
colordiff? ( app-misc/colordiff )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s/\$Rev:.*\\$/${PVR}/" "${S}"/"${PN}".h || die
|
||||
if use colordiff ; then
|
||||
sed -i -e "s/diff_tool=diff/diff_tool=colordiff/" ${PN}.conf \ die 'colordiff-sed failed'
|
||||
fi
|
||||
tc-export PKG_CONFIG
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)"
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Implementation of JSR295"
|
||||
HOMEPAGE="https://java.net/projects/beansbinding/"
|
||||
SRC_URI="http://dev.gentoo.org/~monsieurp/packages/${P}-src.zip"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=249740
|
||||
# Quite weird. Should look into why this is happening.
|
||||
JAVA_PKG_FILTER_COMPILER="ecj-3.5 ecj-3.4 ecj-3.3 ecj-3.2"
|
||||
|
||||
java_prepare() {
|
||||
# Avoid the usual "Javadoc returned 1" error.
|
||||
java-ant_xml-rewrite \
|
||||
-f nbproject/build-impl.xml \
|
||||
-c -e javadoc \
|
||||
-a failonerror \
|
||||
-v "false"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "dist/${PN}.jar"
|
||||
use doc && java-pkg_dojavadoc dist/javadoc
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST cocoon-2.1.11-src.tar.gz 48674390 SHA256 4b1d9f8ebd75d6228b3d76802941a8f41bfc0836c21d9d8cab764521c800a60c SHA512 5893f44d2c4ce0e29397da69db3d09f8a10b267b105d899122958b238d7651a4973b1af980e4c9d0e3656fd76d61e7610b57dc694d5d3a2964ea6c58c6df113e WHIRLPOOL 1c6ef78ae6d477da6c67ac2e12418a0a72290750a5ff46d09405d00629dc502b07c0d4c02ae32f1045bd6ce256b109bb7b5e8af8b6725823578b7ea69fb558aa
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
JAVA_PKG_IUSE="doc"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A Web Publishing Framework for Apache"
|
||||
HOMEPAGE="http://cocoon.apache.org/"
|
||||
SRC_URI="mirror://apache/cocoon/${P}-src.tar.gz"
|
||||
|
||||
LICENSE="Apache-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~ppc ~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
# I know this way of building cocoon is not the best, it will be fixed for
|
||||
# cocoon-2.2
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
cd "${S}"
|
||||
echo "# Gentoo build properties" > local.build.properties
|
||||
if ! use doc; then
|
||||
echo "exclude.javadocs=true" >> local.build.properties
|
||||
echo "exclude.webapp.javadocs=true" >> local.build.properties
|
||||
echo "exclude.webapp.documentation=true" >> local.build.properties
|
||||
echo "exclude.idldocs=true" >> local.build.properties
|
||||
echo "exclude.webapp.idldocs=true" >> local.build.properties
|
||||
fi
|
||||
java-ant_bsfix_files tools/targets/*-build.xml
|
||||
sed -i -e 's/maxmemory="192m"/maxmemory="384m"/' tools/src/blocks-build.xsl
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
sh build.sh war standalone-demo javadocs || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dowar build/${PN}/${PN}.war
|
||||
java-pkg_dojar build/${PN}/cocoon.jar
|
||||
java-pkg_jarinto /usr/share/${PN}/lib/core/
|
||||
java-pkg_dojar lib/core/*.jar
|
||||
insinto /usr/share/${PN}/lib
|
||||
doins "${S}/build/${PN}"/cocoon-*.jar "${S}/lib/jars.xml"
|
||||
for i in endorsed optional local; do
|
||||
dodir /usr/share/${PN}/lib/${i}
|
||||
insinto /usr/share/${PN}/lib/${i}
|
||||
doins "${S}/lib/${i}"/*
|
||||
done
|
||||
|
||||
dodoc CREDITS.txt INSTALL.txt KEYS README.txt || die
|
||||
|
||||
use doc && java-pkg_dojavadoc build/cocoon/javadocs
|
||||
|
||||
docinto legal
|
||||
dodoc legal/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This ebuild does no longer install the Cocoon webapp into"
|
||||
elog "any servlet container anymore. Copy /usr/share/${PN}/webapps/${PN}.war"
|
||||
elog "to your servlet container's webapps directory and restart the"
|
||||
elog "server."
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
</pkgmetadata>
|
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=2
|
||||
|
||||
# We currently download the Javadoc documentation.
|
||||
# It could optionally be built using the Ant build file.
|
||||
# testdata.jar and icudata.jar do not contain *.class files but *.res files
|
||||
# These *.res data files are needed to built the final jar
|
||||
# They do not need to be installed however as they will already be present in icu4j.jar
|
||||
|
||||
JAVA_PKG_IUSE="doc test source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A set of Java libraries providing Unicode and Globalization support"
|
||||
MY_PV=${PV//./_}
|
||||
|
||||
SRC_URI="http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-src.jar
|
||||
doc? ( http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-docs.jar )"
|
||||
|
||||
HOMEPAGE="http://www.icu-project.org/"
|
||||
LICENSE="icu"
|
||||
SLOT="4.4"
|
||||
KEYWORDS="amd64 ~ppc ~ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# Tests only work with JDK-1.6, severe out of memory problems appear with 1.5
|
||||
DEPEND="test? ( =virtual/jdk-1.6* )
|
||||
!test? ( >=virtual/jdk-1.5 )"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
RESTRICT="ia64? ( test )"
|
||||
|
||||
JAVA_PKG_WANT_SOURCE="1.5"
|
||||
JAVA_PKG_WANT_TARGET="1.5"
|
||||
JAVA_PKG_BSFIX_NAME="build.xml common-targets.xml"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
jar -xf "${DISTDIR}/${PN}-${MY_PV}-src.jar" || die "Failed to unpack"
|
||||
|
||||
if use doc; then
|
||||
mkdir docs; cd docs
|
||||
jar -xf "${DISTDIR}/${PN}-${MY_PV}-docs.jar" || die "Failed to unpack docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Classes extending CharsetICU not implementing Comparable
|
||||
# Breaks with ecj on jdk 1.5+, javac doesn't mind - Sun's hack?
|
||||
# Restricting to javac (didn't even care to try jikes) is better
|
||||
# than forcing 1.4
|
||||
java-pkg_force-compiler javac
|
||||
eant jar || die "Compile failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${PN}.jar"
|
||||
java-pkg_dojar "${PN}-charsets.jar"
|
||||
java-pkg_dojar "${PN}-localespi.jar"
|
||||
|
||||
dohtml readme.html || die
|
||||
use doc && java-pkg_dojavadoc docs
|
||||
use source && java-pkg_dosrc main/classes/*/src/com
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# bug #299082 - these tests fail with icedtea, assume too much about double<>string conversions
|
||||
sed -i '/DiagBigDecimal/d' main/tests/core/src/com/ibm/icu/dev/test/TestAllCore.java || die
|
||||
eant check
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
DESCRIPTION="Jad - The fast JAva Decompiler"
|
||||
HOMEPAGE="http://www.kpdus.com/jad.html"
|
||||
SRC_URI="http://www.kpdus.com/jad/linux/jadls158.zip"
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND=""
|
||||
KEYWORDS="x86 amd64 -ppc"
|
||||
SLOT="0"
|
||||
LICENSE="freedist"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_install() {
|
||||
into /opt
|
||||
dobin jad || die "dobin failed"
|
||||
dodoc Readme.txt || die "dodoc failed"
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST jarbundler-1.7.tar.gz 109484 SHA256 e727488efa0a990beca9343ad8050875ea459ea913aa7d54eeffc54c4a590ad2 SHA512 f3572fcf857c87fb6ff2c396f5da7502164a13e54a8adba1f9e6eece85c1a59509a3215443ca7d692992eac435bf4e962cc17f5ef64be0d0f676db563ade942a WHIRLPOOL 0a2f450980a6ccf954d75fd19b9e285054d0feb17d7913646e4875bd1273a5ed52236e3c34cab352e9168e71c7d339c6922ba73c66c2f8ecddaac3a53d6a4209
|
||||
DIST jarbundler-1.8.1.tar.gz 132101 SHA256 19f670035bfe13409dd562753b32144f4597fb56782a7baf604ec034a5f4f6a2 SHA512 f18657aaaae749846544fc35b65fe5e548a0471d85bf4e1d671bf1c7309f2392487069e880ce5f9c1a0e076637dddd9274d536969a9df5401331835f881553b4 WHIRLPOOL fb80abf779f7ebadcb331ffc785a6ae99063955b5fafbaaca1edc1fd6ee4a1730ef3ce20c312c3d6eca7827ee47d9e62dbe3a78268e11890742c2f2d165468bf
|
||||
DIST jarbundler.zip 159874 SHA256 6fb64f13d466804fa0ca0767708a0cc9cf1db1ed7904dc92afca188608ab9a6e SHA512 8b8b45533c601d10b6f986b913b824bb05617ac0901f178ee3fcfbdffa41ca060325228f71e62c4dfade778d50dd2040504eabf49311d386d75b82f77a535280 WHIRLPOOL 3676b6fabacc4054575cb5e5cf509a848d20222b28de1dad2ae0859f3b82ca070f294bb227849a3bb9a6a7662af45442a2fcb1502450a2cc7fe36c0e8be20245
|
||||
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Jar Bundler Ant Task"
|
||||
HOMEPAGE="http://www.loomcom.com/jarbundler/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.4"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
dev-java/ant-core"
|
||||
|
||||
src_compile() {
|
||||
eant jar -Dant.jar="$(java-pkg_getjar ant-core ant.jar)" $(use_doc javadocs)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "build/${P}.jar"
|
||||
use doc && java-pkg_dojavadoc javadoc/
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Jar Bundler Ant Task"
|
||||
HOMEPAGE="http://www.loomcom.com/jarbundler/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP=">=dev-java/xerces-2.8.1"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEP}"
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.4
|
||||
>=dev-java/ant-core-1.7
|
||||
${COMMON_DEP}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
rm -v *.jar || die
|
||||
java-ant_rewrite-classpath
|
||||
}
|
||||
|
||||
EANT_GENTOO_CLASSPATH="ant-core,xerces-2"
|
||||
EANT_DOC_TARGET="javadocs"
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "build/${P}.jar"
|
||||
java-pkg_register-ant-task
|
||||
use doc && java-pkg_dojavadoc javadoc/
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="2"
|
||||
JAVA_PKG_IUSE="doc examples source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 eutils
|
||||
|
||||
DESCRIPTION="Java Compiler Compiler - The Java Parser Generator"
|
||||
HOMEPAGE="https://javacc.dev.java.net/"
|
||||
SRC_URI="https://${PN}.dev.java.net/files/documents/17/142527/${P}src.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
dev-java/junit:0
|
||||
test? ( dev-java/ant-junit )"
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
dev-java/junit:0"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
java_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-4.0-javadoc.patch
|
||||
rm -v lib/junit*/*.jar || die
|
||||
}
|
||||
|
||||
_eant() {
|
||||
eant -Djunit.jar="$(java-pkg_getjar --build-only junit junit.jar)" "${@}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# this testcase wants 1.5 and this seems the easiest way to do it
|
||||
JAVA_PKG_WANT_SOURCE="1.5" JAVA_PKG_WANT_TARGET="1.5" java-ant_bsfix_one examples/JavaGrammars/1.5/build.xml
|
||||
_eant jar $(use_doc)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ANT_TASKS="ant-junit" _eant test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar bin/lib/${PN}.jar
|
||||
|
||||
dodoc README || die
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dohtml -r www/*
|
||||
java-pkg_dojavadoc doc/api
|
||||
fi
|
||||
if use examples; then
|
||||
dodir /usr/share/doc/${PF}/examples
|
||||
cp -R examples/* "${D}"/usr/share/doc/${PF}/examples
|
||||
fi
|
||||
use source && java-pkg_dosrc src/*
|
||||
|
||||
echo "JAVACC_HOME=/usr/share/javacc/" > "${T}"/22javacc
|
||||
doenvd "${T}"/22javacc
|
||||
|
||||
echo "export VERSION=${PV}" > "${T}"/pre
|
||||
|
||||
local launcher
|
||||
for launcher in javacc jjdoc jjtree
|
||||
do
|
||||
java-pkg_dolauncher ${launcher} -pre "${T}"/pre --main ${launcher}
|
||||
done
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST jcommon-1.0.16.tar.gz 1130148 SHA256 033fd5506d10dcfc7814180b09627e66232fd1ee29b769fc283aa936d7dd607d SHA512 81152e6d19f10eec2abe7704c8bb138448c25f39dcf42a9379e488e9163db041dec18b9407fca4c94e514801af5373c698d3867facc9887f98fb7d8e18086fae WHIRLPOOL e87eaec68455a89ac538ce9fcd3ccbea70efe6f2e5ccb0033c77b823ca5499686b3aaf7b13b29c4187b8b2c9e864cf1ecca2794d5fa37f6dde40da774c94c2c1
|
||||
DIST jcommon-1.0.18.tar.gz 1133961 SHA256 a4daf9ed40712bfe9564dcd6eb8392711325aec78fa7c03e57c195f63413e3fd SHA512 83a4dfe7c7f631ee251cd1c133726060d8d380366ba0b39b043327c20e8128fd882b7374448738dcad3e1b6eadc0221242588c15c6feaa3c06101beafe2e79bb WHIRLPOOL cae9c1ff0d3658199378baf2ce58d25710aac17b7bca4d5e31136133868ebb41c6a71fd384a3ba1da2e800d364dd0bf5e70ef768148bbb56d440c78b8fe1e6d4
|
||||
DIST jcommon-1.0.23.zip 1373666 SHA256 6351512b94fc2228034a5c43da52d9ef8ecb7781dcecdeba733441de7d7e18f1 SHA512 c358239da8b1ddf53ce94bebb00b6518456aa921dd3aa84fc6a23144d499f14a85ba421cd71f3880e8d10153a6ab816f54c1fa872a4ab694ce3c7b8d69bc2a4b WHIRLPOOL 467d7400a7009c38b86041977dd59f8a309f7a8ecf02226b80112d12aa3d472c9a42a9cc3e5620b64b0333d44f497f85d95a2184603df9eb21ad66a51ca7fa6c
|
||||
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=2
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 versionator
|
||||
|
||||
DESCRIPTION="JCommon is a collection of useful classes used by JFreeChart, JFreeReport and other projects"
|
||||
HOMEPAGE="http://www.jfree.org/jcommon"
|
||||
MY_P=${PN}-$(replace_version_separator 3 -)
|
||||
SRC_URI="mirror://sourceforge/jfreechart/${MY_P}.tar.gz"
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="1.0"
|
||||
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="debug"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
test? ( dev-java/junit:0 )"
|
||||
RDEPEND=">=virtual/jdk-1.4"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
java_prepare() {
|
||||
rm -v *.jar lib/*.jar || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use debug; then
|
||||
antflags="-Dbuild.debug=false -Dbuild.optimize=true"
|
||||
fi
|
||||
eant -f ant/build.xml compile $(use_doc) $antflags
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg_jar-from --into lib junit
|
||||
eant -f ant/build.xml compile-junit-tests
|
||||
ejunit -cp "./lib/jcommon-${PV}-junit.jar:$(java-pkg_getjars junit)" \
|
||||
org.jfree.junit.JCommonTestSuite
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar ${P}.jar ${PN}.jar
|
||||
dodoc README.txt || die
|
||||
use doc && java-pkg_dojavadoc javadoc
|
||||
use source && java-pkg_dosrc source/com source/org
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43
|
||||
DIST nss-3.19.2.tar.gz 6953657 SHA256 1306663e8f61d8449ad8cbcffab743a604dcd9f6f34232c210847c51dce2c9ae SHA512 d3c45010f8dace58f9da9efe0f9792f8b8a69384e100663f33c949685cdd1ce70e5131f279bc82336622841c41dbc0a4d70a7cc6839a1782dbe8b3c3fd8bc59d WHIRLPOOL d69ab02e12f6b22f47df7be7925343c58e68a69b33833b85d6f2ca70f652d9d159accea45f2c141fa89245ab64dffff0f1289129427564203fe2faf3af1c11e3
|
||||
DIST nss-3.20.tar.gz 6955552 SHA256 5e38d4b9837ca338af966b97fc91c07f67ad647fb38dc4af3cfd0d84e477d15c SHA512 50f666209cadd4e463f98643ec67e35f4d1b88381e17db9eed7c67559b19799fcc27e49d72536f546d4c45bca2afa4664e5590f868775a4397a77111d68fc366 WHIRLPOOL 84f20e6764b3621762fcfcb9223a3861e1f5ff02078b19b7df2eb58430a5f96943d962dca2d3366b18cd434acf3d3be746242c5064497167d5671c50233834de
|
||||
DIST nss-pem-015ae754dd9f6fbcd7e52030ec9732eb27fc06a8.tar.bz2 27506 SHA256 50d9ec26a75835e900302f631456e278e13d4b435b8f98aa69f79dd439ddc6ab SHA512 0158a140f112a905f7db5a4f4d04f49f6742db1d2665ddf6c32913c367f0b93a57f86ba13b9883a42a528aff44c48196941d7c0fd7a27005db6adaf07802e501 WHIRLPOOL 279ef11d2d6f0cb7c192189d64bc6971cdada7417b93a65a3ff0ba4548b736b53b9812803024c2349114e94e0864f2b58c23812687ed3f75cf28334b0f6e11ac
|
||||
|
@ -0,0 +1,325 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.10.8"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="015ae754dd9f6fbcd7e52030ec9732eb27fc06a8"
|
||||
PEM_P="${PN}-pem-${PEM_GIT_REV}"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="http://archive.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( https://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch )
|
||||
nss-pem? ( https://git.fedorahosted.org/cgit/nss-pem.git/snapshot/${PEM_P}.tar.bz2 )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+cacert +nss-pem utils"
|
||||
CDEPEND=">=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PEM_P}"/nss/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.17.1-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
epatch "${FILESDIR}/${PN}-cacert-class3.patch" # 521462
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
${DEFAULT_ABI})
|
||||
einfo "Running compilation test to determine bit'ness"
|
||||
mybits=$(nssbits)
|
||||
;;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
# install man-pages for utils (bug #516810)
|
||||
doman doc/nroff/*.1
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss-${ABI}"
|
||||
doenvd "${T}/90nss-${ABI}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -1,8 +1,4 @@
|
||||
DIST ecl-10.4.1.tar.gz 5835953 SHA256 505dcfe8f26aca352271225ad5a7f117b9bef0f6e7f7a7abaf7b7f11f7c63c6c SHA512 4e3d378d9e40c56f75e12923e223ee37ed8c12268926032665d11239a8373b58a806a765f60543305cfae09f42a2ce8726c944cdeaa1a9f170a80df488404244 WHIRLPOOL daa638689e308c335fa8fbf2c273f06a954b20c24e3e60ffa8e948e84956f69e4c5d59140ebcb98d92bd6a5cc6c381607be2259b96531d3bc33f1ca0bfa1caad
|
||||
DIST ecl-11.1.1.tar.gz 5898523 SHA256 28acce874e264a9e7182a2424bb7a1a3f7d834a8f2e1346ec0ef7156d4ed3b07 SHA512 a813d1514fcb0c1fba2090dc5232ab1261f293db050f54909dd74084cd757144d5e3a24677bbbcfcc74457247a1797059dc09ead8a14b8c23395c03c93e9d0dc WHIRLPOOL 42df041d01a1aeaddb235604e962b5aa55752ed60998bf9a40a4c001bf3281384e787c5a6cd513af3ca863f5b29885b1441640d0b17da5465142a4fda45fa2c3
|
||||
DIST ecl-12.12.1.tgz 9006697 SHA256 54e77ce8157752eab49f8640f7d0077522d493a4d4def463af26d292e46bc297 SHA512 9ac5d61e37cf18a56b2fb572b830955ededbe72d5d9a4e32ed631cd8cb5d27804ff5c0216a41f10ac988320b0584bcc4f9b4fb23732c541ee29f422c5726b23a WHIRLPOOL 8c2b1bd61caa27442bf337ab64788806e7e20150a902fe6c6d6cc593a3350d67252f8d450e6fd1ee99456a6238891c4b383044a6e79a77fad174d5db5a668aeb
|
||||
DIST ecl-12.2.1.tgz 8974948 SHA256 dbb3f83c27f3d2565ca22c1c6b4ab497bbfdd0d0a7b09dee76338f378621f091 SHA512 bf9bff5bfa02c638549ab7dab28d6778c6f676c0ea3ea8b8c11f85a4e9f3cf9fae23c7ec505024b3925ae0c905fccc132729964992c6d9b1524d9dd3b92bdf1f WHIRLPOOL cc8af8a2f92b66acb8578e76b7c982a57567591967c2e2fafbe681fdb8e78725072ec83d240addc255ff29979e6a6d23d077095f094288316f5dd16325d8ffbe
|
||||
DIST ecl-12.7.1.tar.gz 9009087 SHA256 5709bfb92eff00ddc4bcd59375835e9421dae2d258466af75e7e8d2748e01c4d SHA512 1f4312a9b64e55b01df62b492c1d23bdb231abd28c357d18bd813481e0943a852fdaa79bc89c45d1d1da9c0e8a4e5b43c5525488280156d76cc42e0fe9e0c5fe WHIRLPOOL eb915ce3f014ac7583b4c678f9009acfab73a7ad15abe49542fe49718049804e3bc7270e3b8e8e45687738ebc1119d1a224c1b454e8feac1fc1687b2a2bf4320
|
||||
DIST ecl-13.5.1.tgz 9401163 SHA256 f91c57ce065fe9748bc8104e191e4b2dcfe854d634315fe7800dd0a613472ca2 SHA512 a09f8b824aa78e461d700eefb1a8b68b876e15d49124a397e0b5b58ad73b80f818133a7b8e48ddb83505eea2f9c5fb024de8701b527524004e336e456eb07c84 WHIRLPOOL def6de6444430e45bfff29c0716a23869e3455ba9b1cd9bfc1f02ef5c79c83df5b2280b8bada28acb1e742cdbe5c819970273386333d7c7c7c4fb48464dc6a2b
|
||||
DIST ecl-15.3.7.tgz 8755180 SHA256 2dc6ffbbf1e0a7b1323d49a991ba1f005127ca3e153651d91ba9e65bdaec948f SHA512 50a28ed551e507bee526ae44a12da2524c1feedf07cf8ca99650e37ecd7b99c4e2f2758c077979b174d303ffdcd9325637b708a29d14d8c3851c7e65d4ea026c WHIRLPOOL 57b0382b0e3dc7cd601b835a371c9ec6658911b1471cb5bfeee6144d22500e8ca55268f2a001c49d446e9be1a3771ca12348f2565f68ec83f1660c4295545a06
|
||||
DIST ecl-9.12.3.tgz 5758828 SHA256 f4f2e9d584130db9bb61bd09a676ad67c5d0f1ca8096ed781b50a2ae99c5e682 SHA512 8171d28945e5c06f55f6bc5bcf41b5370ee4d5723b3957d2c841aee1e100f3c2ca497f0651f777acd39ceaefeec2737ec254165280446fe51a4ef5cf81ef64b0 WHIRLPOOL 6ff09c048eb639b424a6b32cac88877d11d150f06a1bb482061dc8561c304afc3dbede3610a523a450a1792fd768e713c36dba04ca16501f090a803d7326dd87
|
||||
DIST ecl-16.0.0.tgz 8009304 SHA256 343ed4c3e4906562757a6039b85ce16d33dd5e8001d74004936795983e3af033 SHA512 15e4c604901dae1037e54ab1739d45a0f5f05decf6e72ba60d8b6b53e549021e93b811b809c4a72f423a20e9f9770969910d35edd5f184757293f98f89024c3a WHIRLPOOL 1af13ce81017bdad0ad6ee235beea9cc3e79d4b09b3863911a8092fd69a8d15f9c6eb75603c62d291450001d900cc1074c8882beb4c6da011b368b2a7f8fe7b5
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=3
|
||||
inherit eutils multilib
|
||||
|
||||
MY_P=ecl-${PV}
|
||||
|
||||
DESCRIPTION="ECL is an embeddable Common Lisp implementation"
|
||||
HOMEPAGE="http://common-lisp.net/project/ecl/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="debug gengc precisegc threads +unicode X"
|
||||
|
||||
RDEPEND="dev-libs/gmp
|
||||
virtual/libffi
|
||||
>=dev-libs/boehm-gc-7.1[threads?]"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/texi2html"
|
||||
PDEPEND="dev-lisp/gentoo-init"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if use gengc || use precisegc; then
|
||||
ewarn "USE flags gengc and precisegc are experimental"
|
||||
ewarn "Don't use them if you want a stable ecl"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-system-gmp \
|
||||
--enable-boehm=system \
|
||||
--enable-longdouble \
|
||||
$(use_enable gengc) \
|
||||
$(use_enable precisegc) \
|
||||
$(use_with debug debug-cflags) \
|
||||
$(use_enable threads) \
|
||||
$(use_with threads __thread) \
|
||||
$(use_enable unicode) \
|
||||
$(use_with X x) \
|
||||
$(use_with X clx)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
#parallel fails
|
||||
emake -j1 || die "Compilation failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install || die "Installation failed"
|
||||
|
||||
dodoc ANNOUNCEMENT Copyright
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
pushd build/doc
|
||||
newman ecl.man ecl.1
|
||||
newman ecl-config.man ecl-config.1
|
||||
popd
|
||||
}
|
@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=3
|
||||
inherit eutils multilib
|
||||
|
||||
MY_P=ecl-${PV}
|
||||
|
||||
DESCRIPTION="ECL is an embeddable Common Lisp implementation"
|
||||
HOMEPAGE="http://common-lisp.net/project/ecl/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="debug emacs gengc precisegc threads +unicode X"
|
||||
|
||||
RDEPEND="dev-libs/gmp
|
||||
virtual/libffi
|
||||
>=dev-libs/boehm-gc-7.1[threads?]"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/texi2html
|
||||
emacs? ( virtual/emacs >=app-eselect/eselect-emacs-1.12 )"
|
||||
PDEPEND="dev-lisp/gentoo-init"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if use gengc || use precisegc; then
|
||||
ewarn "USE flags gengc and precisegc are experimental"
|
||||
ewarn "Don't use them if you want a stable ecl"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
|
||||
|
||||
# bug #357315
|
||||
epatch "${FILESDIR}"/${PV}-cmploc.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-system-gmp \
|
||||
--enable-boehm=system \
|
||||
--enable-longdouble \
|
||||
$(use_enable gengc) \
|
||||
$(use_enable precisegc) \
|
||||
$(use_with debug debug-cflags) \
|
||||
$(use_enable threads) \
|
||||
$(use_with threads __thread) \
|
||||
$(use_enable unicode) \
|
||||
$(use_with X x) \
|
||||
$(use_with X clx)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use emacs; then
|
||||
local ETAGS=$(eselect --brief etags list | sed -ne '/emacs/{p;q}')
|
||||
[[ -n ${ETAGS} ]] || die "No etags implementation found"
|
||||
pushd build || die
|
||||
emake ETAGS=${ETAGS} TAGS || die
|
||||
popd
|
||||
else
|
||||
touch build/TAGS
|
||||
fi
|
||||
|
||||
#parallel fails
|
||||
emake -j1 || die "Compilation failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install || die "Installation failed"
|
||||
|
||||
dodoc ANNOUNCEMENT Copyright
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
pushd build/doc
|
||||
newman ecl.man ecl.1
|
||||
newman ecl-config.man ecl-config.1
|
||||
popd
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils multilib
|
||||
MY_P=ecl-${PV}
|
||||
|
||||
DESCRIPTION="ECL is an embeddable Common Lisp implementation"
|
||||
HOMEPAGE="http://common-lisp.net/project/ecl/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
|
||||
|
||||
LICENSE="BSD LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="debug emacs gengc precisegc threads +unicode X"
|
||||
|
||||
RDEPEND="dev-libs/gmp
|
||||
virtual/libffi
|
||||
>=dev-libs/boehm-gc-7.1[threads?]"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/texi2html
|
||||
emacs? ( virtual/emacs >=app-eselect/eselect-emacs-1.12 )"
|
||||
PDEPEND="dev-lisp/gentoo-init"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if use gengc || use precisegc; then
|
||||
ewarn "USE flags gengc and precisegc are experimental"
|
||||
ewarn "Don't use them if you want a stable ecl"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-system-gmp \
|
||||
--enable-boehm=system \
|
||||
--enable-longdouble \
|
||||
$(use_enable gengc) \
|
||||
$(use_enable precisegc) \
|
||||
$(use_with debug debug-cflags) \
|
||||
$(use_enable threads) \
|
||||
$(use_with threads __thread) \
|
||||
$(use_enable unicode) \
|
||||
$(use_with X x) \
|
||||
$(use_with X clx)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use emacs; then
|
||||
local ETAGS=$(eselect --brief etags list | sed -ne '/emacs/{p;q}')
|
||||
[[ -n ${ETAGS} ]] || die "No etags implementation found"
|
||||
pushd build || die
|
||||
emake ETAGS=${ETAGS} TAGS || die
|
||||
popd
|
||||
else
|
||||
touch build/TAGS
|
||||
fi
|
||||
|
||||
#parallel fails
|
||||
emake -j1 || die "Compilation failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install || die "Installation failed"
|
||||
|
||||
dodoc ANNOUNCEMENT Copyright
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
pushd build/doc
|
||||
newman ecl.man ecl.1
|
||||
newman ecl-config.man ecl-config.1
|
||||
popd
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils multilib
|
||||
MY_P=ecl-${PV}
|
||||
|
||||
DESCRIPTION="ECL is an embeddable Common Lisp implementation"
|
||||
HOMEPAGE="http://ecls.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="debug emacs gengc precisegc threads +unicode X"
|
||||
|
||||
RDEPEND="dev-libs/gmp
|
||||
virtual/libffi
|
||||
>=dev-libs/boehm-gc-7.1[threads?]"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/texi2html
|
||||
emacs? ( virtual/emacs >=app-eselect/eselect-emacs-1.12 )"
|
||||
PDEPEND="dev-lisp/gentoo-init"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if use gengc || use precisegc; then
|
||||
ewarn "USE flags gengc and precisegc are experimental"
|
||||
ewarn "Don't use them if you want a stable ecl"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-system-gmp \
|
||||
--enable-boehm=system \
|
||||
--enable-longdouble \
|
||||
$(use_enable gengc) \
|
||||
$(use_enable precisegc) \
|
||||
$(use_with debug debug-cflags) \
|
||||
$(use_enable threads) \
|
||||
$(use_with threads __thread) \
|
||||
$(use_enable unicode) \
|
||||
$(use_with X x) \
|
||||
$(use_with X clx)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use emacs; then
|
||||
local ETAGS=$(eselect --brief etags list | sed -ne '/emacs/{p;q}')
|
||||
[[ -n ${ETAGS} ]] || die "No etags implementation found"
|
||||
pushd build > /dev/null || die
|
||||
emake ETAGS=${ETAGS} TAGS
|
||||
popd > /dev/null
|
||||
else
|
||||
touch build/TAGS
|
||||
fi
|
||||
|
||||
#parallel fails
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
dodoc ANNOUNCEMENT Copyright
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
pushd build/doc > /dev/null
|
||||
newman ecl.man ecl.1
|
||||
newman ecl-config.man ecl-config.1
|
||||
popd > /dev/null
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils multilib
|
||||
|
||||
MY_P=ecl-${PV}
|
||||
|
||||
DESCRIPTION="ECL is an embeddable Common Lisp implementation"
|
||||
HOMEPAGE="http://ecls.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
|
||||
|
||||
LICENSE="BSD LGPL-2"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="debug emacs gengc precisegc cpu_flags_x86_sse +threads +unicode X"
|
||||
|
||||
CDEPEND="dev-libs/gmp
|
||||
virtual/libffi
|
||||
>=dev-libs/boehm-gc-7.1[threads?]
|
||||
>=dev-lisp/asdf-2.33-r3:="
|
||||
DEPEND="${CDEPEND}
|
||||
app-text/texi2html
|
||||
emacs? ( virtual/emacs >=app-eselect/eselect-emacs-1.12 )"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
pkg_setup () {
|
||||
if use gengc || use precisegc ; then
|
||||
ewarn "You have enabled the generational garbage collector or"
|
||||
ewarn "the precise collection routines. These features are not very stable"
|
||||
ewarn "at the moment and may cause crashes."
|
||||
ewarn "Don't enable them unless you know what you're doing."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
|
||||
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-system-gmp \
|
||||
--enable-boehm=system \
|
||||
--enable-longdouble \
|
||||
--with-dffi \
|
||||
$(use_enable gengc) \
|
||||
$(use_enable precisegc) \
|
||||
$(use_with debug debug-cflags) \
|
||||
$(use_with cpu_flags_x86_sse sse) \
|
||||
$(use_enable threads) \
|
||||
$(use_with threads __thread) \
|
||||
$(use_enable unicode) \
|
||||
$(use_with X x) \
|
||||
$(use_with X clx)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use emacs; then
|
||||
local ETAGS=$(eselect --brief etags list | sed -ne '/emacs/{p;q}')
|
||||
[[ -n ${ETAGS} ]] || die "No etags implementation found"
|
||||
pushd build > /dev/null || die
|
||||
emake ETAGS=${ETAGS} TAGS
|
||||
popd > /dev/null
|
||||
else
|
||||
touch build/TAGS
|
||||
fi
|
||||
|
||||
#parallel make fails
|
||||
emake -j1 || die "Compilation failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install || die "Installation failed"
|
||||
|
||||
dodoc ANNOUNCEMENT Copyright
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
pushd build/doc
|
||||
newman ecl.man ecl.1
|
||||
newman ecl-config.man ecl-config.1
|
||||
popd
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=2
|
||||
inherit eutils multilib
|
||||
|
||||
MY_P=ecl-${PV}
|
||||
|
||||
DESCRIPTION="ECL is an embeddable Common Lisp implementation"
|
||||
HOMEPAGE="http://common-lisp.net/project/ecl/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
|
||||
|
||||
LICENSE="BSD LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc ~sparc x86"
|
||||
IUSE="X doc +threads +unicode"
|
||||
|
||||
RDEPEND="dev-libs/gmp
|
||||
virtual/libffi
|
||||
>=dev-libs/boehm-gc-7.1[threads?]"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="dev-lisp/gentoo-init"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-system-gmp \
|
||||
--enable-boehm=system \
|
||||
--enable-gengc \
|
||||
--enable-longdouble \
|
||||
$(use_enable threads) \
|
||||
$(use_with threads __thread) \
|
||||
$(use_enable unicode) \
|
||||
$(use_with X x) \
|
||||
$(use_with X clx)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
#parallel fails
|
||||
emake -j1 || die "emake failed"
|
||||
if use doc; then
|
||||
pushd build/doc
|
||||
emake || die "emake doc failed"
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc ANNOUNCEMENT Copyright
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
pushd build/doc
|
||||
newman ecl.man ecl.1
|
||||
newman ecl-config.man ecl-config.1
|
||||
if use doc; then
|
||||
doinfo *.info || die "doinfo failed"
|
||||
fi
|
||||
popd
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
diff -Naur ecl-8.12.0.orig/src/h/object.h ecl-8.12.0/src/h/object.h
|
||||
--- ecl.orig/src/h/object.h 2008-12-17 16:41:53.000000000 +0100
|
||||
+++ ecl/src/h/object.h 2008-12-17 19:35:05.000000000 +0100
|
||||
@@ -23,8 +23,13 @@
|
||||
Integer and boolean types (see config.h)
|
||||
*/
|
||||
|
||||
+#ifndef TRUE
|
||||
#define TRUE 1 /* boolean true value */
|
||||
+#endif
|
||||
+
|
||||
+#ifndef FALSE
|
||||
#define FALSE 0 /* boolean false value */
|
||||
+#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
typedef int bool;
|
@ -1,35 +0,0 @@
|
||||
diff --git a/src/cmp/cmploc.lsp b/src/cmp/cmploc.lsp
|
||||
index ca6a93d..87e6232 100644
|
||||
--- src/cmp/cmploc.lsp
|
||||
+++ src/cmp/cmploc.lsp
|
||||
@@ -98,7 +98,7 @@
|
||||
(and (eq (car loc) 'C-INLINE)
|
||||
(eq (sixth loc) 'VALUES)))))
|
||||
|
||||
-(defun loc-immediate-value-p (loc &aux head)
|
||||
+(defun loc-immediate-value-p (loc)
|
||||
(cond ((eq loc t)
|
||||
(values t t))
|
||||
((eq loc nil)
|
||||
@@ -112,9 +112,9 @@
|
||||
(values t value))))
|
||||
((atom loc)
|
||||
(values nil nil))
|
||||
-
|
||||
- ((member head '(fixnum-value character-value long-float-value
|
||||
- double-float-value single-float-value))
|
||||
+ ((member (first loc)
|
||||
+ '(fixnum-value character-value long-float-value
|
||||
+ double-float-value single-float-value))
|
||||
(values t (second loc)))
|
||||
(t
|
||||
(values nil nil))))
|
||||
@@ -123,7 +123,7 @@
|
||||
(baboon :format-control "Unknown location found in ~A~%~S"
|
||||
:format-arguments (list where loc)))
|
||||
|
||||
-(defun wt-loc (loc &aux fd)
|
||||
+(defun wt-loc (loc)
|
||||
(cond ((consp loc)
|
||||
(let ((fd (gethash (car loc) *wt-loc-dispatch-table*)))
|
||||
(if fd
|
@ -1,17 +0,0 @@
|
||||
diff -Naur ecl-8.12.0.orig/src/h/object.h ecl-8.12.0/src/h/object.h
|
||||
--- ecl.orig/src/h/object.h 2008-12-17 16:41:53.000000000 +0100
|
||||
+++ ecl/src/h/object.h 2008-12-17 19:35:05.000000000 +0100
|
||||
@@ -23,8 +23,13 @@
|
||||
Integer and boolean types (see config.h)
|
||||
*/
|
||||
|
||||
+#ifndef TRUE
|
||||
#define TRUE 1 /* boolean true value */
|
||||
+#endif
|
||||
+
|
||||
+#ifndef FALSE
|
||||
#define FALSE 0 /* boolean false value */
|
||||
+#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
typedef int bool;
|
@ -1,12 +0,0 @@
|
||||
--- src/compile.lsp.in.orig 2013-05-23 22:24:01.858778565 +1200
|
||||
+++ src/compile.lsp.in 2013-05-23 22:24:20.478785499 +1200
|
||||
@@ -205,8 +205,7 @@
|
||||
;;;
|
||||
#+WANTS-ASDF
|
||||
(build-module "asdf"
|
||||
- '("ext:asdf;asdf.lisp"
|
||||
- "ext:asdf;asdf-bundle.lisp")
|
||||
+ '("ext:asdf;asdf.lisp")
|
||||
:dir "build:ext;"
|
||||
:prefix "EXT"
|
||||
:builtin #+:BUILTIN-ASDF t #-:BUILTIN-ASDF nil)
|
@ -1,17 +0,0 @@
|
||||
diff -Naur ecl-8.12.0.orig/src/h/object.h ecl-8.12.0/src/h/object.h
|
||||
--- ecl.orig/src/h/object.h 2008-12-17 16:41:53.000000000 +0100
|
||||
+++ ecl/src/h/object.h 2008-12-17 19:35:05.000000000 +0100
|
||||
@@ -23,8 +23,13 @@
|
||||
Integer and boolean types (see config.h)
|
||||
*/
|
||||
|
||||
+#ifndef TRUE
|
||||
#define TRUE 1 /* boolean true value */
|
||||
+#endif
|
||||
+
|
||||
+#ifndef FALSE
|
||||
#define FALSE 0 /* boolean false value */
|
||||
+#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
typedef int bool;
|
@ -1,17 +0,0 @@
|
||||
diff -Naur ecl-8.12.0.orig/src/h/object.h ecl-8.12.0/src/h/object.h
|
||||
--- ecl.orig/src/h/object.h 2008-12-17 16:41:53.000000000 +0100
|
||||
+++ ecl/src/h/object.h 2008-12-17 19:35:05.000000000 +0100
|
||||
@@ -23,8 +23,13 @@
|
||||
Integer and boolean types (see config.h)
|
||||
*/
|
||||
|
||||
+#ifndef TRUE
|
||||
#define TRUE 1 /* boolean true value */
|
||||
+#endif
|
||||
+
|
||||
+#ifndef FALSE
|
||||
#define FALSE 0 /* boolean false value */
|
||||
+#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
typedef int bool;
|
@ -0,0 +1,13 @@
|
||||
diff -r -U1 ecl-16.0.0.orig/src/h/object.h ecl-16.0.0/src/h/object.h
|
||||
--- ecl-16.0.0.orig/src/h/object.h 2015-08-24 12:41:27.000000000 +0600
|
||||
+++ ecl-16.0.0/src/h/object.h 2015-08-29 12:04:58.249594669 +0600
|
||||
@@ -25,4 +25,9 @@
|
||||
|
||||
+#ifndef TRUE
|
||||
#define TRUE 1 /* boolean true value */
|
||||
+#endif
|
||||
+
|
||||
+#ifndef FALSE
|
||||
#define FALSE 0 /* boolean false value */
|
||||
+#endif
|
||||
|
@ -1,17 +0,0 @@
|
||||
diff -Naur ecl-8.12.0.orig/src/h/object.h ecl-8.12.0/src/h/object.h
|
||||
--- ecl.orig/src/h/object.h 2008-12-17 16:41:53.000000000 +0100
|
||||
+++ ecl/src/h/object.h 2008-12-17 19:35:05.000000000 +0100
|
||||
@@ -23,8 +23,13 @@
|
||||
Integer and boolean types (see config.h)
|
||||
*/
|
||||
|
||||
+#ifndef TRUE
|
||||
#define TRUE 1 /* boolean true value */
|
||||
+#endif
|
||||
+
|
||||
+#ifndef FALSE
|
||||
#define FALSE 0 /* boolean false value */
|
||||
+#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
typedef int bool;
|
@ -1,157 +0,0 @@
|
||||
diff -r -U1 sbcl-1.2.6.orig/contrib/sb-bsd-sockets/tests.lisp sbcl-1.2.6/contrib/sb-bsd-sockets/tests.lisp
|
||||
--- sbcl-1.2.6.orig/contrib/sb-bsd-sockets/tests.lisp 2014-11-30 00:56:58.000000000 +0600
|
||||
+++ sbcl-1.2.6/contrib/sb-bsd-sockets/tests.lisp 2014-12-20 20:02:26.863408300 +0600
|
||||
@@ -37,11 +37,11 @@
|
||||
;;; for unknown protocols...
|
||||
-#-(and freebsd sb-thread)
|
||||
-#-(and dragonfly sb-thread)
|
||||
-(deftest get-protocol-by-name/error
|
||||
- (handler-case (get-protocol-by-name "nonexistent-protocol")
|
||||
- (unknown-protocol ()
|
||||
- t)
|
||||
- (:no-error ()
|
||||
- nil))
|
||||
- t)
|
||||
+;#-(and freebsd sb-thread)
|
||||
+;#-(and dragonfly sb-thread)
|
||||
+;(deftest get-protocol-by-name/error
|
||||
+; (handler-case (get-protocol-by-name "nonexistent-protocol")
|
||||
+; (unknown-protocol ()
|
||||
+; t)
|
||||
+; (:no-error ()
|
||||
+; nil))
|
||||
+; t)
|
||||
|
||||
@@ -93,13 +93,13 @@
|
||||
|
||||
-#-win32
|
||||
-(deftest make-inet6-socket.smoke
|
||||
- (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
|
||||
- (and (> (socket-file-descriptor s) 1) t))
|
||||
- t)
|
||||
-
|
||||
-#-win32
|
||||
-(deftest make-inet6-socket.keyword
|
||||
- (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
|
||||
- (and (> (socket-file-descriptor s) 1) t))
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest make-inet6-socket.smoke
|
||||
+; (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
|
||||
+; (and (> (socket-file-descriptor s) 1) t))
|
||||
+; t)
|
||||
+
|
||||
+;#-win32
|
||||
+;(deftest make-inet6-socket.keyword
|
||||
+; (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
|
||||
+; (and (> (socket-file-descriptor s) 1) t))
|
||||
+; t)
|
||||
|
||||
@@ -131,22 +131,22 @@
|
||||
|
||||
-#-win32
|
||||
-(deftest inet6-socket-bind
|
||||
- (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
- (address (make-inet6-address "::1"))
|
||||
- (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
|
||||
- (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
|
||||
- (unwind-protect
|
||||
- ;; Given the functions we've got so far, if you can think of a
|
||||
- ;; better way to make sure the bind succeeded than trying it
|
||||
- ;; twice, let me know
|
||||
- (progn
|
||||
- (socket-bind s1 address 0)
|
||||
- (handler-case
|
||||
- (let ((port (nth-value 1 (socket-name s1))))
|
||||
- (socket-bind s2 address port)
|
||||
- nil)
|
||||
- (address-in-use-error () t)))
|
||||
- (socket-close s1)
|
||||
- (socket-close s2)))
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest inet6-socket-bind
|
||||
+; (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
+; (address (make-inet6-address "::1"))
|
||||
+; (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
|
||||
+; (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
|
||||
+; (unwind-protect
|
||||
+; ;; Given the functions we've got so far, if you can think of a
|
||||
+; ;; better way to make sure the bind succeeded than trying it
|
||||
+; ;; twice, let me know
|
||||
+; (progn
|
||||
+; (socket-bind s1 address 0)
|
||||
+; (handler-case
|
||||
+; (let ((port (nth-value 1 (socket-name s1))))
|
||||
+; (socket-bind s2 address port)
|
||||
+; nil)
|
||||
+; (address-in-use-error () t)))
|
||||
+; (socket-close s1)
|
||||
+; (socket-close s2)))
|
||||
+; t)
|
||||
|
||||
@@ -217,33 +217,33 @@
|
||||
|
||||
-#-win32
|
||||
-(deftest simple-local-client
|
||||
- (progn
|
||||
- ;; SunOS (Solaris) and Darwin systems don't have a socket at
|
||||
- ;; /dev/log. We might also be building in a chroot or
|
||||
- ;; something, so don't fail this test just because the file is
|
||||
- ;; unavailable, or if it's a symlink to some weird character
|
||||
- ;; device.
|
||||
- (when (block nil
|
||||
- (handler-bind ((sb-posix:syscall-error
|
||||
- (lambda (e)
|
||||
- (declare (ignore e))
|
||||
- (return nil))))
|
||||
- (sb-posix:s-issock
|
||||
- (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
|
||||
- (let ((s (make-instance 'local-socket :type :datagram)))
|
||||
- (format t "Connecting ~A... " s)
|
||||
- (finish-output)
|
||||
- (handler-case
|
||||
- (socket-connect s "/dev/log")
|
||||
- (sb-bsd-sockets::socket-error ()
|
||||
- (setq s (make-instance 'local-socket :type :stream))
|
||||
- (format t "failed~%Retrying with ~A... " s)
|
||||
- (finish-output)
|
||||
- (socket-connect s "/dev/log")))
|
||||
- (format t "ok.~%")
|
||||
- (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
|
||||
- (format stream
|
||||
- "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
|
||||
- t)
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest simple-local-client
|
||||
+; (progn
|
||||
+; ;; SunOS (Solaris) and Darwin systems don't have a socket at
|
||||
+; ;; /dev/log. We might also be building in a chroot or
|
||||
+; ;; something, so don't fail this test just because the file is
|
||||
+; ;; unavailable, or if it's a symlink to some weird character
|
||||
+; ;; device.
|
||||
+; (when (block nil
|
||||
+; (handler-bind ((sb-posix:syscall-error
|
||||
+; (lambda (e)
|
||||
+; (declare (ignore e))
|
||||
+; (return nil))))
|
||||
+; (sb-posix:s-issock
|
||||
+; (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
|
||||
+; (let ((s (make-instance 'local-socket :type :datagram)))
|
||||
+; (format t "Connecting ~A... " s)
|
||||
+; (finish-output)
|
||||
+; (handler-case
|
||||
+; (socket-connect s "/dev/log")
|
||||
+; (sb-bsd-sockets::socket-error ()
|
||||
+; (setq s (make-instance 'local-socket :type :stream))
|
||||
+; (format t "failed~%Retrying with ~A... " s)
|
||||
+; (finish-output)
|
||||
+; (socket-connect s "/dev/log")))
|
||||
+; (format t "ok.~%")
|
||||
+; (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
|
||||
+; (format stream
|
||||
+; "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
|
||||
+; t)
|
||||
+; t)
|
||||
|
@ -1,184 +0,0 @@
|
||||
--- sbcl-1.2.7-orig/contrib/sb-bsd-sockets/tests.lisp 2015-01-01 06:09:07.000000000 +1100
|
||||
+++ sbcl-1.2.7/contrib/sb-bsd-sockets/tests.lisp 2015-01-07 20:38:50.654557033 +1100
|
||||
@@ -35,15 +35,15 @@
|
||||
;;; See https://bugs.launchpad.net/sbcl/+bug/659857
|
||||
;;; Apparently getprotobyname_r on FreeBSD says -1 and EINTR
|
||||
;;; for unknown protocols...
|
||||
-#-(and freebsd sb-thread)
|
||||
-#-(and dragonfly sb-thread)
|
||||
-(deftest get-protocol-by-name/error
|
||||
- (handler-case (get-protocol-by-name "nonexistent-protocol")
|
||||
- (unknown-protocol ()
|
||||
- t)
|
||||
- (:no-error ()
|
||||
- nil))
|
||||
- t)
|
||||
+;#-(and freebsd sb-thread)
|
||||
+;#-(and dragonfly sb-thread)
|
||||
+;(deftest get-protocol-by-name/error
|
||||
+; (handler-case (get-protocol-by-name "nonexistent-protocol")
|
||||
+; (unknown-protocol ()
|
||||
+; t)
|
||||
+; (:no-error ()
|
||||
+; nil))
|
||||
+; t)
|
||||
|
||||
(deftest make-inet-socket.smoke
|
||||
;; make a socket
|
||||
@@ -91,17 +91,17 @@
|
||||
(:no-error nil))
|
||||
t)
|
||||
|
||||
-#-win32
|
||||
-(deftest make-inet6-socket.smoke
|
||||
- (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
|
||||
- (and (> (socket-file-descriptor s) 1) t))
|
||||
- t)
|
||||
-
|
||||
-#-win32
|
||||
-(deftest make-inet6-socket.keyword
|
||||
- (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
|
||||
- (and (> (socket-file-descriptor s) 1) t))
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest make-inet6-socket.smoke
|
||||
+; (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
|
||||
+; (and (> (socket-file-descriptor s) 1) t))
|
||||
+; t)
|
||||
+
|
||||
+;#-win32
|
||||
+;(deftest make-inet6-socket.keyword
|
||||
+; (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
|
||||
+; (and (> (socket-file-descriptor s) 1) t))
|
||||
+; t)
|
||||
|
||||
(deftest* (non-block-socket)
|
||||
(let ((s (make-instance 'inet-socket :type :stream :protocol :tcp)))
|
||||
@@ -129,32 +129,32 @@
|
||||
(socket-close s2)))
|
||||
t)
|
||||
|
||||
-#-win32
|
||||
-(deftest inet6-socket-bind
|
||||
- (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
- (address (make-inet6-address "::1"))
|
||||
- (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
|
||||
- (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
|
||||
- (unwind-protect
|
||||
- ;; Given the functions we've got so far, if you can think of a
|
||||
- ;; better way to make sure the bind succeeded than trying it
|
||||
- ;; twice, let me know
|
||||
- (handler-case
|
||||
- (socket-bind s1 address 0)
|
||||
- (socket-error ()
|
||||
- ;; This may mean no IPv6 support, can't fail a test
|
||||
- ;; because of that
|
||||
- t)
|
||||
- (:no-error (x)
|
||||
- (declare (ignore x))
|
||||
- (handler-case
|
||||
- (let ((port (nth-value 1 (socket-name s1))))
|
||||
- (socket-bind s2 address port)
|
||||
- nil)
|
||||
- (address-in-use-error () t))))
|
||||
- (socket-close s1)
|
||||
- (socket-close s2)))
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest inet6-socket-bind
|
||||
+; (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
+; (address (make-inet6-address "::1"))
|
||||
+; (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
|
||||
+; (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
|
||||
+; (unwind-protect
|
||||
+; ;; Given the functions we've got so far, if you can think of a
|
||||
+; ;; better way to make sure the bind succeeded than trying it
|
||||
+; ;; twice, let me know
|
||||
+; (handler-case
|
||||
+; (socket-bind s1 address 0)
|
||||
+; (socket-error ()
|
||||
+; ;; This may mean no IPv6 support, can't fail a test
|
||||
+; ;; because of that
|
||||
+; t)
|
||||
+; (:no-error (x)
|
||||
+; (declare (ignore x))
|
||||
+; (handler-case
|
||||
+; (let ((port (nth-value 1 (socket-name s1))))
|
||||
+; (socket-bind s2 address port)
|
||||
+; nil)
|
||||
+; (address-in-use-error () t))))
|
||||
+; (socket-close s1)
|
||||
+; (socket-close s2)))
|
||||
+; t)
|
||||
|
||||
(deftest* (simple-sockopt-test)
|
||||
;; test we can set SO_REUSEADDR on a socket and retrieve it, and in
|
||||
@@ -221,37 +221,37 @@
|
||||
;;; to look at /etc/syslog.conf or local equivalent to find out where
|
||||
;;; the message ended up
|
||||
|
||||
-#-win32
|
||||
-(deftest simple-local-client
|
||||
- (progn
|
||||
- ;; SunOS (Solaris) and Darwin systems don't have a socket at
|
||||
- ;; /dev/log. We might also be building in a chroot or
|
||||
- ;; something, so don't fail this test just because the file is
|
||||
- ;; unavailable, or if it's a symlink to some weird character
|
||||
- ;; device.
|
||||
- (when (block nil
|
||||
- (handler-bind ((sb-posix:syscall-error
|
||||
- (lambda (e)
|
||||
- (declare (ignore e))
|
||||
- (return nil))))
|
||||
- (sb-posix:s-issock
|
||||
- (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
|
||||
- (let ((s (make-instance 'local-socket :type :datagram)))
|
||||
- (format t "Connecting ~A... " s)
|
||||
- (finish-output)
|
||||
- (handler-case
|
||||
- (socket-connect s "/dev/log")
|
||||
- (sb-bsd-sockets::socket-error ()
|
||||
- (setq s (make-instance 'local-socket :type :stream))
|
||||
- (format t "failed~%Retrying with ~A... " s)
|
||||
- (finish-output)
|
||||
- (socket-connect s "/dev/log")))
|
||||
- (format t "ok.~%")
|
||||
- (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
|
||||
- (format stream
|
||||
- "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
|
||||
- t)
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest simple-local-client
|
||||
+; (progn
|
||||
+; ;; SunOS (Solaris) and Darwin systems don't have a socket at
|
||||
+; ;; /dev/log. We might also be building in a chroot or
|
||||
+; ;; something, so don't fail this test just because the file is
|
||||
+; ;; unavailable, or if it's a symlink to some weird character
|
||||
+; ;; device.
|
||||
+; (when (block nil
|
||||
+; (handler-bind ((sb-posix:syscall-error
|
||||
+; (lambda (e)
|
||||
+; (declare (ignore e))
|
||||
+; (return nil))))
|
||||
+; (sb-posix:s-issock
|
||||
+; (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
|
||||
+; (let ((s (make-instance 'local-socket :type :datagram)))
|
||||
+; (format t "Connecting ~A... " s)
|
||||
+; (finish-output)
|
||||
+; (handler-case
|
||||
+; (socket-connect s "/dev/log")
|
||||
+; (sb-bsd-sockets::socket-error ()
|
||||
+; (setq s (make-instance 'local-socket :type :stream))
|
||||
+; (format t "failed~%Retrying with ~A... " s)
|
||||
+; (finish-output)
|
||||
+; (socket-connect s "/dev/log")))
|
||||
+; (format t "ok.~%")
|
||||
+; (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
|
||||
+; (format stream
|
||||
+; "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
|
||||
+; t)
|
||||
+; t)
|
||||
|
||||
|
||||
;;; these require that the internet (or bits of it, at least) is available
|
@ -1,346 +0,0 @@
|
||||
diff --git sbcl-1.2.7/contrib/sb-bsd-sockets/tests.lisp sbcl-1.2.7/contrib/sb-bsd-sockets/tests.lisp
|
||||
--- sbcl-1.2.7/contrib/sb-bsd-sockets/tests.lisp
|
||||
+++ sbcl-1.2.7/contrib/sb-bsd-sockets/tests.lisp
|
||||
@@ -35,15 +35,15 @@
|
||||
;;; See https://bugs.launchpad.net/sbcl/+bug/659857
|
||||
;;; Apparently getprotobyname_r on FreeBSD says -1 and EINTR
|
||||
;;; for unknown protocols...
|
||||
-#-(and freebsd sb-thread)
|
||||
-#-(and dragonfly sb-thread)
|
||||
-(deftest get-protocol-by-name/error
|
||||
- (handler-case (get-protocol-by-name "nonexistent-protocol")
|
||||
- (unknown-protocol ()
|
||||
- t)
|
||||
- (:no-error ()
|
||||
- nil))
|
||||
- t)
|
||||
+;#-(and freebsd sb-thread)
|
||||
+;#-(and dragonfly sb-thread)
|
||||
+;(deftest get-protocol-by-name/error
|
||||
+; (handler-case (get-protocol-by-name "nonexistent-protocol")
|
||||
+; (unknown-protocol ()
|
||||
+; t)
|
||||
+; (:no-error ()
|
||||
+; nil))
|
||||
+; t)
|
||||
|
||||
(deftest make-inet-socket.smoke
|
||||
;; make a socket
|
||||
@@ -91,17 +91,17 @@
|
||||
(:no-error nil))
|
||||
t)
|
||||
|
||||
-#-win32
|
||||
-(deftest make-inet6-socket.smoke
|
||||
- (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
|
||||
- (and (> (socket-file-descriptor s) 1) t))
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest make-inet6-socket.smoke
|
||||
+; (let ((s (make-instance 'inet6-socket :type :stream :protocol (get-protocol-by-name "tcp"))))
|
||||
+; (and (> (socket-file-descriptor s) 1) t))
|
||||
+; t)
|
||||
|
||||
-#-win32
|
||||
-(deftest make-inet6-socket.keyword
|
||||
- (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
|
||||
- (and (> (socket-file-descriptor s) 1) t))
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest make-inet6-socket.keyword
|
||||
+; (let ((s (make-instance 'inet6-socket :type :stream :protocol :tcp)))
|
||||
+; (and (> (socket-file-descriptor s) 1) t))
|
||||
+; t)
|
||||
|
||||
(deftest* (non-block-socket)
|
||||
(let ((s (make-instance 'inet-socket :type :stream :protocol :tcp)))
|
||||
@@ -109,52 +109,52 @@
|
||||
(non-blocking-mode s))
|
||||
t)
|
||||
|
||||
-(deftest inet-socket-bind
|
||||
- (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
- (address (make-inet-address "127.0.0.1"))
|
||||
- (s1 (make-instance 'inet-socket :type :stream :protocol tcp))
|
||||
- (s2 (make-instance 'inet-socket :type :stream :protocol tcp)))
|
||||
- (unwind-protect
|
||||
- ;; Given the functions we've got so far, if you can think of a
|
||||
- ;; better way to make sure the bind succeeded than trying it
|
||||
- ;; twice, let me know
|
||||
- (progn
|
||||
- (socket-bind s1 address 0)
|
||||
- (handler-case
|
||||
- (let ((port (nth-value 1 (socket-name s1))))
|
||||
- (socket-bind s2 address port)
|
||||
- nil)
|
||||
- (address-in-use-error () t)))
|
||||
- (socket-close s1)
|
||||
- (socket-close s2)))
|
||||
- t)
|
||||
-
|
||||
-#-win32
|
||||
-(deftest inet6-socket-bind
|
||||
- (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
- (address (make-inet6-address "::1"))
|
||||
- (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
|
||||
- (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
|
||||
- (unwind-protect
|
||||
- ;; Given the functions we've got so far, if you can think of a
|
||||
- ;; better way to make sure the bind succeeded than trying it
|
||||
- ;; twice, let me know
|
||||
- (handler-case
|
||||
- (socket-bind s1 address 0)
|
||||
- (socket-error ()
|
||||
- ;; This may mean no IPv6 support, can't fail a test
|
||||
- ;; because of that
|
||||
- t)
|
||||
- (:no-error (x)
|
||||
- (declare (ignore x))
|
||||
- (handler-case
|
||||
- (let ((port (nth-value 1 (socket-name s1))))
|
||||
- (socket-bind s2 address port)
|
||||
- nil)
|
||||
- (address-in-use-error () t))))
|
||||
- (socket-close s1)
|
||||
- (socket-close s2)))
|
||||
- t)
|
||||
+;(deftest inet-socket-bind
|
||||
+; (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
+; (address (make-inet-address "127.0.0.1"))
|
||||
+; (s1 (make-instance 'inet-socket :type :stream :protocol tcp))
|
||||
+; (s2 (make-instance 'inet-socket :type :stream :protocol tcp)))
|
||||
+; (unwind-protect
|
||||
+; ;; Given the functions we've got so far, if you can think of a
|
||||
+; ;; better way to make sure the bind succeeded than trying it
|
||||
+; ;; twice, let me know
|
||||
+; (progn
|
||||
+; (socket-bind s1 address 0)
|
||||
+; (handler-case
|
||||
+; (let ((port (nth-value 1 (socket-name s1))))
|
||||
+; (socket-bind s2 address port)
|
||||
+; nil)
|
||||
+; (address-in-use-error () t)))
|
||||
+; (socket-close s1)
|
||||
+; (socket-close s2)))
|
||||
+; t)
|
||||
+
|
||||
+;#-win32
|
||||
+;(deftest inet6-socket-bind
|
||||
+; (let* ((tcp (get-protocol-by-name "tcp"))
|
||||
+; (address (make-inet6-address "::1"))
|
||||
+; (s1 (make-instance 'inet6-socket :type :stream :protocol tcp))
|
||||
+; (s2 (make-instance 'inet6-socket :type :stream :protocol tcp)))
|
||||
+; (unwind-protect
|
||||
+; ;; Given the functions we've got so far, if you can think of a
|
||||
+; ;; better way to make sure the bind succeeded than trying it
|
||||
+; ;; twice, let me know
|
||||
+; (handler-case
|
||||
+; (socket-bind s1 address 0)
|
||||
+; (socket-error ()
|
||||
+; ;; This may mean no IPv6 support, can't fail a test
|
||||
+; ;; because of that
|
||||
+; t)
|
||||
+; (:no-error (x)
|
||||
+; (declare (ignore x))
|
||||
+; (handler-case
|
||||
+; (let ((port (nth-value 1 (socket-name s1))))
|
||||
+; (socket-bind s2 address port)
|
||||
+; nil)
|
||||
+; (address-in-use-error () t))))
|
||||
+; (socket-close s1)
|
||||
+; (socket-close s2)))
|
||||
+; t)
|
||||
|
||||
(deftest* (simple-sockopt-test)
|
||||
;; test we can set SO_REUSEADDR on a socket and retrieve it, and in
|
||||
@@ -221,37 +221,37 @@
|
||||
;;; to look at /etc/syslog.conf or local equivalent to find out where
|
||||
;;; the message ended up
|
||||
|
||||
-#-win32
|
||||
-(deftest simple-local-client
|
||||
- (progn
|
||||
- ;; SunOS (Solaris) and Darwin systems don't have a socket at
|
||||
- ;; /dev/log. We might also be building in a chroot or
|
||||
- ;; something, so don't fail this test just because the file is
|
||||
- ;; unavailable, or if it's a symlink to some weird character
|
||||
- ;; device.
|
||||
- (when (block nil
|
||||
- (handler-bind ((sb-posix:syscall-error
|
||||
- (lambda (e)
|
||||
- (declare (ignore e))
|
||||
- (return nil))))
|
||||
- (sb-posix:s-issock
|
||||
- (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
|
||||
- (let ((s (make-instance 'local-socket :type :datagram)))
|
||||
- (format t "Connecting ~A... " s)
|
||||
- (finish-output)
|
||||
- (handler-case
|
||||
- (socket-connect s "/dev/log")
|
||||
- (sb-bsd-sockets::socket-error ()
|
||||
- (setq s (make-instance 'local-socket :type :stream))
|
||||
- (format t "failed~%Retrying with ~A... " s)
|
||||
- (finish-output)
|
||||
- (socket-connect s "/dev/log")))
|
||||
- (format t "ok.~%")
|
||||
- (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
|
||||
- (format stream
|
||||
- "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
|
||||
- t)
|
||||
- t)
|
||||
+;#-win32
|
||||
+;(deftest simple-local-client
|
||||
+; (progn
|
||||
+; ;; SunOS (Solaris) and Darwin systems don't have a socket at
|
||||
+; ;; /dev/log. We might also be building in a chroot or
|
||||
+; ;; something, so don't fail this test just because the file is
|
||||
+; ;; unavailable, or if it's a symlink to some weird character
|
||||
+; ;; device.
|
||||
+; (when (block nil
|
||||
+; (handler-bind ((sb-posix:syscall-error
|
||||
+; (lambda (e)
|
||||
+; (declare (ignore e))
|
||||
+; (return nil))))
|
||||
+; (sb-posix:s-issock
|
||||
+; (sb-posix::stat-mode (sb-posix:stat "/dev/log")))))
|
||||
+; (let ((s (make-instance 'local-socket :type :datagram)))
|
||||
+; (format t "Connecting ~A... " s)
|
||||
+; (finish-output)
|
||||
+; (handler-case
|
||||
+; (socket-connect s "/dev/log")
|
||||
+; (sb-bsd-sockets::socket-error ()
|
||||
+; (setq s (make-instance 'local-socket :type :stream))
|
||||
+; (format t "failed~%Retrying with ~A... " s)
|
||||
+; (finish-output)
|
||||
+; (socket-connect s "/dev/log")))
|
||||
+; (format t "ok.~%")
|
||||
+; (let ((stream (socket-make-stream s :input t :output t :buffering :none)))
|
||||
+; (format stream
|
||||
+; "<7>bsd-sockets: Don't panic. We're testing local-domain client code; this message can safely be ignored"))))
|
||||
+; t)
|
||||
+; t)
|
||||
|
||||
|
||||
;;; these require that the internet (or bits of it, at least) is available
|
||||
@@ -367,59 +367,59 @@
|
||||
len address port (subseq buf 0 (min 10 len)))))))
|
||||
|
||||
#+sb-thread
|
||||
-(deftest interrupt-io
|
||||
- (let (result)
|
||||
- (labels
|
||||
- ((client (port)
|
||||
- (setf result
|
||||
- (let ((s (make-instance 'inet-socket
|
||||
- :type :stream
|
||||
- :protocol :tcp)))
|
||||
- (socket-connect s #(127 0 0 1) port)
|
||||
- (let ((stream (socket-make-stream s
|
||||
- :input t
|
||||
- :output t
|
||||
- :buffering :none)))
|
||||
- (handler-case
|
||||
- (prog1
|
||||
- (catch 'stop
|
||||
- (progn
|
||||
- (read-char stream)
|
||||
- (sleep 0.1)
|
||||
- (sleep 0.1)
|
||||
- (sleep 0.1)))
|
||||
- (close stream))
|
||||
- (error (c)
|
||||
- c))))))
|
||||
- (server ()
|
||||
- (let ((s (make-instance 'inet-socket
|
||||
- :type :stream
|
||||
- :protocol :tcp)))
|
||||
- (setf (sockopt-reuse-address s) t)
|
||||
- (socket-bind s (make-inet-address "127.0.0.1") 0)
|
||||
- (socket-listen s 5)
|
||||
- (multiple-value-bind (* port)
|
||||
- (socket-name s)
|
||||
- (let* ((client (sb-thread:make-thread
|
||||
- (lambda () (client port))))
|
||||
- (r (socket-accept s))
|
||||
- (stream (socket-make-stream r
|
||||
- :input t
|
||||
- :output t
|
||||
- :buffering :none))
|
||||
- (ok :ok))
|
||||
- (socket-close s)
|
||||
- (sleep 5)
|
||||
- (sb-thread:interrupt-thread client
|
||||
- (lambda () (throw 'stop ok)))
|
||||
- (sleep 5)
|
||||
- (setf ok :not-ok)
|
||||
- (write-char #\x stream)
|
||||
- (close stream)
|
||||
- (socket-close r))))))
|
||||
- (server))
|
||||
- result)
|
||||
- :ok)
|
||||
+;(deftest interrupt-io
|
||||
+; (let (result)
|
||||
+; (labels
|
||||
+; ((client (port)
|
||||
+; (setf result
|
||||
+; (let ((s (make-instance 'inet-socket
|
||||
+; :type :stream
|
||||
+; :protocol :tcp)))
|
||||
+; (socket-connect s #(127 0 0 1) port)
|
||||
+; (let ((stream (socket-make-stream s
|
||||
+; :input t
|
||||
+; :output t
|
||||
+; :buffering :none)))
|
||||
+; (handler-case
|
||||
+; (prog1
|
||||
+; (catch 'stop
|
||||
+; (progn
|
||||
+; (read-char stream)
|
||||
+; (sleep 0.1)
|
||||
+; (sleep 0.1)
|
||||
+; (sleep 0.1)))
|
||||
+; (close stream))
|
||||
+; (error (c)
|
||||
+; c))))))
|
||||
+; (server ()
|
||||
+; (let ((s (make-instance 'inet-socket
|
||||
+; :type :stream
|
||||
+; :protocol :tcp)))
|
||||
+; (setf (sockopt-reuse-address s) t)
|
||||
+; (socket-bind s (make-inet-address "127.0.0.1") 0)
|
||||
+; (socket-listen s 5)
|
||||
+; (multiple-value-bind (* port)
|
||||
+; (socket-name s)
|
||||
+; (let* ((client (sb-thread:make-thread
|
||||
+; (lambda () (client port))))
|
||||
+; (r (socket-accept s))
|
||||
+; (stream (socket-make-stream r
|
||||
+; :input t
|
||||
+; :output t
|
||||
+; :buffering :none))
|
||||
+; (ok :ok))
|
||||
+; (socket-close s)
|
||||
+; (sleep 5)
|
||||
+; (sb-thread:interrupt-thread client
|
||||
+; (lambda () (throw 'stop ok)))
|
||||
+; (sleep 5)
|
||||
+; (setf ok :not-ok)
|
||||
+; (write-char #\x stream)
|
||||
+; (close stream)
|
||||
+; (socket-close r))))))
|
||||
+; (server))
|
||||
+; result)
|
||||
+; :ok)
|
||||
|
||||
(defmacro with-client-and-server ((server-socket-var client-socket-var) &body body)
|
||||
(let ((listen-socket (gensym "LISTEN-SOCKET")))
|
||||
@@ -478,5 +478,6 @@
|
||||
(define-shutdown-test ,(make-name 'shutdown.client.ub8)
|
||||
client server (unsigned-byte 8) ,direction)))))
|
||||
|
||||
- (define-shutdown-tests :output)
|
||||
- (define-shutdown-tests :io))
|
||||
+; (define-shutdown-tests :output)
|
||||
+; (define-shutdown-tests :io))
|
||||
+)
|
@ -1,24 +0,0 @@
|
||||
diff -ur b/src/runtime/Config.x86-linux a/src/runtime/Config.x86-linux
|
||||
--- b/src/runtime/Config.x86-linux 2012-01-09 02:08:10.000000000 +0000
|
||||
+++ a/src/runtime/Config.x86-linux 2012-02-02 14:32:56.000000000 +0000
|
||||
@@ -27,7 +27,7 @@
|
||||
# (You *are* encouraged to design and implement a coherent stable
|
||||
# interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
|
||||
# working on one and it would be a nice thing to have.)
|
||||
-LINKFLAGS += -Wl,--export-dynamic -m32
|
||||
+LINKFLAGS += -Wl,--export-dynamic -m32 -nopie
|
||||
OS_LIBS = -ldl
|
||||
|
||||
ifdef LISP_FEATURE_LARGEFILE
|
||||
diff -ur b/src/runtime/Config.x86_64-linux a/src/runtime/Config.x86_64-linux
|
||||
--- b/src/runtime/Config.x86_64-linux 2012-01-09 02:08:10.000000000 +0000
|
||||
+++ a/src/runtime/Config.x86_64-linux 2012-02-02 14:32:44.000000000 +0000
|
||||
@@ -27,7 +27,7 @@
|
||||
# (You *are* encouraged to design and implement a coherent stable
|
||||
# interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
|
||||
# working on one and it would be a nice thing to have.)
|
||||
-LINKFLAGS += -Wl,--export-dynamic
|
||||
+LINKFLAGS += -Wl,--export-dynamic -nopie
|
||||
OS_LIBS = -ldl
|
||||
|
||||
ifdef LISP_FEATURE_LARGEFILE
|
@ -1,11 +0,0 @@
|
||||
diff -uNr sbcl-1.0.55.orig/src/runtime/run-program.c sbcl-1.0.55/src/runtime/run-program.c
|
||||
--- a/src/runtime/run-program.c 2012-03-26 06:01:42.000000000 -0400
|
||||
+++ b/src/runtime/run-program.c 2012-03-26 06:02:07.000000000 -0400
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/wait.h>
|
||||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
@ -1,43 +0,0 @@
|
||||
Fixes for glibc 2.17.
|
||||
|
||||
linux-os.c is just a missing header (for personality()).
|
||||
|
||||
In x86-64-linux-os.c, __USE_GNU is a glibc-internal name that features.h
|
||||
defines; _GNU_SOURCE is what it should actually be using to get GNU extensions.
|
||||
|
||||
diff -x config.log -x config.status -ru tmp/sbcl-1.1.2/src/runtime/linux-os.c work/sbcl-1.1.2/src/runtime/linux-os.c
|
||||
--- tmp/sbcl-1.1.2/src/runtime/linux-os.c 2012-12-01 11:32:38.000000000 +0000
|
||||
+++ work/sbcl-1.1.2/src/runtime/linux-os.c 2012-12-31 01:20:37.619000000 +0000
|
||||
@@ -46,6 +46,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <linux/version.h>
|
||||
+#include <sys/personality.h>
|
||||
|
||||
#include "validate.h"
|
||||
#include "thread.h"
|
||||
diff -x config.log -x config.status -ru tmp/sbcl-1.1.2/src/runtime/x86-64-linux-os.c work/sbcl-1.1.2/src/runtime/x86-64-linux-os.c
|
||||
--- tmp/sbcl-1.1.2/src/runtime/x86-64-linux-os.c 2012-12-01 11:32:38.000000000 +0000
|
||||
+++ work/sbcl-1.1.2/src/runtime/x86-64-linux-os.c 2012-12-31 01:20:25.450000000 +0000
|
||||
@@ -14,6 +14,9 @@
|
||||
* files for more information.
|
||||
*/
|
||||
|
||||
+/* This is to get REG_RAX etc. from sys/ucontext.h. */
|
||||
+#define _GNU_SOURCE
|
||||
+
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/param.h>
|
||||
@@ -21,11 +24,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
-
|
||||
-#define __USE_GNU
|
||||
#include <sys/ucontext.h>
|
||||
-#undef __USE_GNU
|
||||
-
|
||||
|
||||
#include "./signal.h"
|
||||
#include "os.h"
|
@ -1,61 +0,0 @@
|
||||
#Patch by Jesus Rivero <neurogeek@gentoo.org>
|
||||
#Added: Mar 26, 2012
|
||||
#Gentoo Specific, not sent upstream
|
||||
|
||||
diff -uNr a/install.sh b/install.sh
|
||||
--- a/install.sh 2012-03-26 07:17:28.000000000 -0400
|
||||
+++ b/install.sh 2012-03-26 07:17:56.000000000 -0400
|
||||
@@ -101,52 +101,3 @@
|
||||
# share/man/ manpages, should be the same as man/
|
||||
# share/info/ info files
|
||||
# share/doc/ misc documentation
|
||||
-
|
||||
-echo
|
||||
-echo "Documentation:"
|
||||
-
|
||||
-# man
|
||||
-cp doc/sbcl.1 "$BUILD_ROOT$MAN_DIR"/man1/ && echo " man $BUILD_ROOT$MAN_DIR/man1/sbcl.1"
|
||||
-cp doc/sbcl-asdf-install.1 "$BUILD_ROOT$MAN_DIR"/man1/ && echo " man $BUILD_ROOT$MAN_DIR/man1/sbcl-asdf-install.1"
|
||||
-
|
||||
-# info
|
||||
-for info in doc/manual/*.info
|
||||
-do
|
||||
- cp $info "$BUILD_ROOT$INFO_DIR"/ \
|
||||
- && BN=`basename $info` \
|
||||
- && DIRFAIL=`install-info --info-dir="$BUILD_ROOT$INFO_DIR" \
|
||||
- "$BUILD_ROOT$INFO_DIR"/$BN > /dev/null 2>&1 \
|
||||
- || echo "(could not add to system catalog)"` \
|
||||
- && echo " info $BUILD_ROOT$INFO_DIR/`basename $info` [$BUILD_ROOT$INFO_DIR/dir] $DIRFAIL"
|
||||
-done
|
||||
-
|
||||
-for info in doc/manual/*.info-*
|
||||
-do
|
||||
- cp $info "$BUILD_ROOT$INFO_DIR"/ \
|
||||
- && echo " info $BUILD_ROOT$INFO_DIR/`basename $info`"
|
||||
-done
|
||||
-
|
||||
-# pdf
|
||||
-for pdf in doc/manual/*.pdf
|
||||
-do
|
||||
- cp $pdf "$BUILD_ROOT$DOC_DIR"/ \
|
||||
- && echo " pdf $BUILD_ROOT$DOC_DIR/`basename $pdf`"
|
||||
-done
|
||||
-
|
||||
-# html
|
||||
-for html in doc/manual/sbcl doc/manual/asdf
|
||||
-do
|
||||
- test -d $html && cp -R -L $html "$BUILD_ROOT$DOC_DIR"/html \
|
||||
- && echo " html $BUILD_ROOT$DOC_DIR/html/`basename $html`/index.html"
|
||||
-done
|
||||
-
|
||||
-for html in doc/manual/sbcl.html doc/manual/asdf.html
|
||||
-do
|
||||
- cp $html "$BUILD_ROOT$DOC_DIR"/ \
|
||||
- && echo " html $BUILD_ROOT$DOC_DIR/`basename $html`"
|
||||
-done
|
||||
-
|
||||
-for f in BUGS CREDITS COPYING NEWS
|
||||
-do
|
||||
- cp $f "$BUILD_ROOT$DOC_DIR"/
|
||||
-done
|
||||
|
@ -1,13 +0,0 @@
|
||||
--- src/runtime/Config.x86-sunos
|
||||
+++ src/runtime/Config.x86-sunos
|
||||
@@ -2,8 +2,8 @@
|
||||
CFLAGS = -g -O2 -Wall -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DSVR4 -D_REENTRANT
|
||||
ASFLAGS = -Wall
|
||||
LD = ld
|
||||
-NM = nm -xgp
|
||||
-GREP = ggrep
|
||||
+NM = nm -t x -p
|
||||
+GREP = grep
|
||||
|
||||
ASSEM_SRC = x86-assem.S ldso-stubs.S
|
||||
ARCH_SRC = x86-arch.c
|
@ -1,28 +0,0 @@
|
||||
--- sbcl-1.2.7-orig/make.sh 2015-01-01 06:09:07.000000000 +1100
|
||||
+++ sbcl-1.2.7/make.sh 2015-01-31 13:06:09.652480932 +1100
|
||||
@@ -24,7 +24,7 @@
|
||||
# thing" when run on the target machine, with the minor caveat that
|
||||
# any --xc-host parameter should be suitable for the host machine
|
||||
# instead of the target.
|
||||
-sh make-config.sh "$@" || exit $?
|
||||
+sh -x make-config.sh "$@" || exit $?
|
||||
|
||||
. output/prefix.def
|
||||
. output/build-config
|
||||
@@ -64,11 +64,11 @@
|
||||
# Or, if you can set up the files somewhere shared (with NFS, AFS, or
|
||||
# whatever) between the host machine and the target machine, the basic
|
||||
# procedure above should still work, but you can skip the "copy" steps.
|
||||
-time sh make-host-1.sh
|
||||
-time sh make-target-1.sh
|
||||
-time sh make-host-2.sh
|
||||
-time sh make-target-2.sh
|
||||
-time sh make-target-contrib.sh
|
||||
+time sh -x make-host-1.sh
|
||||
+time sh -x make-target-1.sh
|
||||
+time sh -x make-host-2.sh
|
||||
+time sh -x make-target-2.sh
|
||||
+time sh -x make-target-contrib.sh
|
||||
|
||||
NCONTRIBS=`find contrib -name Makefile -print | wc -l`
|
||||
NPASSED=`find obj/asdf-cache -name test-passed.test-report -print | wc -l`
|
@ -1,203 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=3
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.0.37
|
||||
BV_AMD64=1.0.37
|
||||
BV_PPC=1.0.28
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ~sparc x86"
|
||||
IUSE="+asdf ldb source +threads +unicode debug doc pax_kernel"
|
||||
|
||||
DEPEND="doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="asdf? ( >=dev-lisp/gentoo-init-0.1 )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
cat > "${CONFIG}" <<'EOF'
|
||||
(lambda (list)
|
||||
(flet ((enable (x) (pushnew x list))
|
||||
(disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "$(usep ldb)" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
cat >> "${CONFIG}" <<'EOF'
|
||||
)
|
||||
list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-linux sbcl-binary
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
|
||||
epatch "${FILESDIR}"/gentoo_fix_waitpid_c.patch
|
||||
|
||||
if use !doc; then
|
||||
epatch "${FILESDIR}"/${P}_no_doc_install.patch
|
||||
fi
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #463882, patch from upstream https://bugs.launchpad.net/sbcl/+bug/1095036
|
||||
epatch "${FILESDIR}"/${P}-newglibc.patch
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =@CFLAGS = ${CFLAGS}@" \
|
||||
-e "s@LINKFLAGS =@LINKFLAGS = ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh
|
||||
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c # #define SBCL_HOME ...
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if use pax_kernel ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^echo \/\/doing warm init - compilation phase$/a\paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
cat > "${D}"/etc/sbclrc <<EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
'(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
EOF
|
||||
if use asdf; then
|
||||
cat >> "${D}"/etc/sbclrc <<EOF
|
||||
|
||||
;;; Setup ASDF2
|
||||
(load "/etc/gentoo-init.lisp")
|
||||
EOF
|
||||
fi
|
||||
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# Install documentation
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${D}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${D}/usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${D}/usr/$(get_libdir)/sbcl/"
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,236 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.2.7
|
||||
BV_AMD64=1.2.10
|
||||
BV_PPC=1.2.7
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
BV_ARM=1.2.7
|
||||
BV_PPC_MACOS=1.0.47
|
||||
BV_X86_MACOS=1.1.6
|
||||
BV_X64_MACOS=1.1.8
|
||||
BV_SPARC_SOLARIS=1.0.23
|
||||
BV_X86_SOLARIS=1.2.7
|
||||
BV_X64_SOLARIS=1.2.7
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
|
||||
arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
|
||||
ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
|
||||
x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
|
||||
x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
|
||||
sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
|
||||
x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
|
||||
x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.1:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-* sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
# bug #468482
|
||||
epatch "${FILESDIR}"/concurrency-test-1.2.6.patch
|
||||
# bugs #486552, #527666, #517004
|
||||
epatch "${FILESDIR}"/bsd-sockets-test-1.2.9.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-1.0.6-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.2.7-verbose-build.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
|
||||
-e "s@LINKFLAGS =@LINKFLAGS = ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
|
||||
-i make-config.sh || die
|
||||
|
||||
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
# change location of /etc/sbclrc ...
|
||||
sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# bug #517008
|
||||
pax-mark -mr "${D}"/usr/bin/sbcl
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${ED}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${ED}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,236 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.2.7
|
||||
BV_AMD64=1.2.11
|
||||
BV_PPC=1.2.7
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
BV_ARM=1.2.7
|
||||
BV_PPC_MACOS=1.0.47
|
||||
BV_X86_MACOS=1.1.6
|
||||
BV_X64_MACOS=1.1.8
|
||||
BV_SPARC_SOLARIS=1.0.23
|
||||
BV_X86_SOLARIS=1.2.7
|
||||
BV_X64_SOLARIS=1.2.7
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
|
||||
arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
|
||||
ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
|
||||
x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
|
||||
x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
|
||||
sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
|
||||
x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
|
||||
x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.1:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-* sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
# bug #468482
|
||||
epatch "${FILESDIR}"/concurrency-test-1.2.6.patch
|
||||
# bugs #486552, #527666, #517004
|
||||
epatch "${FILESDIR}"/bsd-sockets-test-1.2.11.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-1.2.11-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.2.7-verbose-build.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
|
||||
-e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
|
||||
-i make-config.sh || die
|
||||
|
||||
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
# change location of /etc/sbclrc ...
|
||||
sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# bug #517008
|
||||
pax-mark -mr "${D}"/usr/bin/sbcl
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${ED}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${ED}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,212 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.0.58
|
||||
BV_AMD64=1.2.2
|
||||
BV_PPC=1.0.28
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND="=dev-lisp/asdf-3.0*:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-linux sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
|
||||
# bug #468482
|
||||
epatch "${FILESDIR}"/concurrency-test.patch
|
||||
# bug #486552
|
||||
epatch "${FILESDIR}"/bsd-sockets-test-1.2.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =@CFLAGS = ${CFLAGS}@" \
|
||||
-e "s@LINKFLAGS =@LINKFLAGS = ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${D}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${D}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${D}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,212 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.0.58
|
||||
BV_AMD64=1.2.4
|
||||
BV_PPC=1.0.28
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.1:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-linux sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
|
||||
# bug #468482
|
||||
epatch "${FILESDIR}"/concurrency-test.patch
|
||||
# bug #486552
|
||||
epatch "${FILESDIR}"/bsd-sockets-test-1.2.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =@CFLAGS = ${CFLAGS}@" \
|
||||
-e "s@LINKFLAGS =@LINKFLAGS = ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${D}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${D}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${D}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,211 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.0.58
|
||||
BV_AMD64=1.2.6
|
||||
BV_PPC=1.0.28
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.1:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.6 )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-linux sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
# bug #468482
|
||||
epatch "${FILESDIR}/concurrency-test-${PV}.patch"
|
||||
# bugs #486552, #527666
|
||||
epatch "${FILESDIR}"/bsd-sockets-test-${PV}.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =@CFLAGS = ${CFLAGS}@" \
|
||||
-e "s@LINKFLAGS =@LINKFLAGS = ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${D}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${D}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${D}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,233 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.2.7
|
||||
BV_AMD64=1.2.7
|
||||
BV_PPC=1.2.7
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
BV_ARM=1.2.7
|
||||
BV_PPC_MACOS=1.0.47
|
||||
BV_X86_MACOS=1.1.6
|
||||
BV_X64_MACOS=1.1.8
|
||||
BV_SPARC_SOLARIS=1.0.23
|
||||
BV_X86_SOLARIS=1.2.7
|
||||
BV_X64_SOLARIS=1.2.7
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
|
||||
arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
|
||||
ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
|
||||
x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
|
||||
x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
|
||||
sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
|
||||
x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
|
||||
x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.1:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-* sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
# bug #468482
|
||||
epatch "${FILESDIR}/concurrency-test-1.2.6.patch"
|
||||
# bugs #486552, #527666
|
||||
epatch "${FILESDIR}"/bsd-sockets-test-${PV}.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-1.0.6-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.2.7-verbose-build.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =@CFLAGS = ${CFLAGS}@" \
|
||||
-e "s@LINKFLAGS =@LINKFLAGS = ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
|
||||
-i make-config.sh || die
|
||||
|
||||
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
# change location of /etc/sbclrc ...
|
||||
sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${ED}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${ED}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,236 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.2.7
|
||||
BV_AMD64=1.2.9
|
||||
BV_PPC=1.2.7
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
BV_ARM=1.2.7
|
||||
BV_PPC_MACOS=1.0.47
|
||||
BV_X86_MACOS=1.1.6
|
||||
BV_X64_MACOS=1.1.8
|
||||
BV_SPARC_SOLARIS=1.0.23
|
||||
BV_X86_SOLARIS=1.2.7
|
||||
BV_X64_SOLARIS=1.2.7
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
|
||||
arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
|
||||
ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
|
||||
x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
|
||||
x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
|
||||
sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
|
||||
x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
|
||||
x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.1:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-* sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
# bug #468482
|
||||
epatch "${FILESDIR}"/concurrency-test-1.2.6.patch
|
||||
# bugs #486552, #527666, #517004
|
||||
epatch "${FILESDIR}"/bsd-sockets-test-1.2.9.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-1.0.6-solaris.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.2.7-verbose-build.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =@CFLAGS = ${CFLAGS}@" \
|
||||
-e "s@LINKFLAGS =@LINKFLAGS = ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
|
||||
-i make-config.sh || die
|
||||
|
||||
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
# change location of /etc/sbclrc ...
|
||||
sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if host-is-pax ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# bug #517008
|
||||
pax-mark -mr "${D}"/usr/bin/sbcl
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${ED}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/manual/
|
||||
doinfo doc/manual/*.info*
|
||||
dohtml -r doc/internals/sbcl-internals
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
docinto internals-notes && dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${ED}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST PyAMF-0.7.0.tar.gz 1647988 SHA256 5e9c68a2acc00ee99d1ca1f578c4fc0cbc16e33339a6d5a0d8d313a4c0f42663 SHA512 dcaf808a11c73f9e9b548c9e81100eb28ee1e3c1e2d44b0fb08f58ab3693a49c69b95040e25e612e3864d268436829c4ab7389e1ed9c0704f37a9d350dd9c82d WHIRLPOOL 535fdedea37a866045a34f89b5f255f13d4d3ebc1a1a1fbdba2c233fdd5fedfb1436e4993d69940cbdd5f26898c3d6264afa9bdac21217f38d3d2e955058c369
|
||||
DIST PyAMF-0.7.2.tar.gz 1648116 SHA256 3e39d43989f75a4d35f4c2a591d8163637f67eaf856bdae749bd8b64b1c1b672 SHA512 5372e40752a75919122c1a8630dbf6333ca2c9d8c79d004a58f857b2656e2cccd96ba5ff24aca9352a8db2e66419760cf3309b5cafb7ad5e1097473fa4a8bbe8 WHIRLPOOL 5ba25ed6ee2bde8dc2800c6d5093509622214a2ed5a5cf51a023c0a8a72618f7156b550e67816bc51f53d2f84c9993fdc8caf37a4ad23bb1006b08522f38cdec
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=PyAMF
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Action Message Format (AMF) support for Python"
|
||||
HOMEPAGE="https://github.com/hydralabs/pyamf https://pypi.python.org/pypi/PyAMF"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "PyAMF optionally integrates with several third-party libraries"
|
||||
elog "and web frameworks. See the README or the Optional Extras section at"
|
||||
elog "https://github.com/hydralabs/pyamf/blob/master/doc/install.rst"
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST pycountry-1.12.tar.gz 18606424 SHA256 dce2893ceac5d5264e7d0b6bf9f0421fb9ff87b7459d1c65a518fbcd826245e9 SHA512 6a9bfb47ce56098bc8f536afc5e671cd65304213df1e3c9754bcaac8e3cdb8293c75ec59649be5df8b974f36be333ed35fe4cd4d274baa183cfd6455d9241702 WHIRLPOOL 531fcfa4caeec4eda11c657e7a374d2668808ee9b94cb5192603049824fbd12a6999682a321d4c577f836acd9106f667f85312ec29e9d78fca74b7b93c297356
|
||||
DIST pycountry-1.13.tar.gz 5007397 SHA256 3b72f2c334e702d463205e510d8d9b3fc8364a2f647074f543a1da2602730918 SHA512 1b32e87630efa8d3b6fbd4f60ce837c4df451fb097402b658d63ba6589b5761c719a80232142d557a7220ad549fcf4cb686b12ab3b3b5f2be51253548d0169ac WHIRLPOOL bc5818ce45c5bb23bb37a4e375acdfcc9419aa602940985a519a1941f28655156d46a0f17b2ace87e92f8f62af6fdf81b89817c69f2f5a4e12d1a026cbb9eefd
|
||||
DIST pycountry-1.14.tar.gz 5009511 SHA256 e5012671e4c1e0280574fff5bce50d892e8b56dea43e867661088c1bf91c2f0c SHA512 93196bed14b616fd696ff993da8b49254c5fd1f9af37f5519e64b27d7e58cee25ace8fcfbe0328fc6e03f1ad5f3be70c390f467643ad9b419b3ec65e03c7adbf WHIRLPOOL 6231af9dc9f63d4b22b10ca0bbbded9a9e3e2d5728825dc84ea86eeee3e8d1c39b7c3331187cbff53cd572cfeb1fa3639c8452d97a6cddc317b06bbeac5e431d
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="ISO country, subdivision, language, currency and script definitions and their translations"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/pycountry"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~sparc ~ppc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
# https://bitbucket.org/techtonik/pycountry/issue/8/test_locales-pycountry-015-pypy
|
||||
pushd "${BUILD_DIR}"/lib > /dev/null
|
||||
if [[ "${EPYTHON}" == pypy || "${EPYTHON}" == pypy3 ]]; then
|
||||
sed -e 's:test_locales:_&:' -i pycountry/tests/test_general.py || die
|
||||
fi
|
||||
py.test ${PN}/tests/test_general.py || die
|
||||
popd > /dev/null
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST pygit2-0.20.3.tar.gz 141887 SHA256 2957db7d9616db910e9274051fbfe66a496b910113548fbf2a7acdeef01e9ef9 SHA512 13355f2eccb591c7e1e18f66724aa0b68b94e65580aa20464e8669a8f54844557902f029127a9c5e50c3d4dafdc504f1d3aca65c0d26d9f147ff08eab2b002dc WHIRLPOOL a4496cb3dd2799c77240e1eae9c06f167727cb5948081da6f8864feb5ab38a046f8382e994dd3cdf28f4ac8b9e7675b3671b4369a8268f7f09b3c11d3e8bee3d
|
||||
DIST pygit2-0.21.4.tar.gz 417750 SHA256 1952332b48e87e918bc807305220075bfb611c96fbc529a43c78d73fdce25593 SHA512 835369ec9302d27ed361ccf3317fece4192e765c5e6e014ed6dd87cba38fe833eff3ba36558aa2951f42542408e3dba07777937aedaf539583db4454198d3112 WHIRLPOOL 90204b7dd28216ddfa82667e246bdaf154b19753b6382b7467a3cae85140a4672342045ba2713ba0eba8e0add5b6facd2ae4f72a0214d3eca0b49acccf14744f
|
||||
DIST pygit2-0.22.1.tar.gz 451351 SHA256 54b6e229ca2bf87efe4b5b8279d8f355b8c49613f0b8cbe7e0c1c98c001c39e0 SHA512 8ffcea4a94ca4667112b79e4adda43a75a9b677e609af528f79d4e6f8e84873a4c8478b89743d1de35d28ae00b1254e2287cd912776d96e3bf6a0030477e86a3 WHIRLPOOL 8eeec7ae2bc29264022f59067f93cb5375ead2285a30c27bd9f0c48c1be2b308c5413a3b3b8ede4a9be152727978971b0a6d2f23aeafc7f985ee0eeaf29aa72b
|
||||
DIST pygit2-0.23.0.tar.gz 453779 SHA256 90101a7a4b3c3563662c4047d5b6c52d84d9150570a7262e88892c604545dcb2 SHA512 904b0c35a44529373e308dea9e8147874688685c881a5a611e4e2b095737e5f15fffa4dc892d9d276ece4f787a9df8d55fb41cc9e9dd0c1961ea6a480b6ecb43 WHIRLPOOL e3a5c112ea0863a84bfae2295a6371ec7a7712f8c56bf2be75823fe71419716d6b63d6b23c9e0c36b827e95c950eee96b06fe422b08b76e464a80b5a121a0db9
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1 versionator
|
||||
|
||||
DESCRIPTION="Python bindings for libgit2"
|
||||
HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.python.org/pypi/pygit2"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
=dev-libs/libgit2-$(get_version_component_range 1-2)*
|
||||
dev-python/cffi:=[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,5 +1,2 @@
|
||||
DIST pytz-2013d.tar.bz2 204865 SHA256 2407e5b3d69c87915e7b3d86746ca3909153ddee82899b8f5cb70a4fd31b715e SHA512 fc687a2040c40d20cab974b11d18446c761504c3faf81caf0853149fd257aa939e5feb2367006463d443659b4ea7c5a7ef409f9b10329211eb920011ddb8c64f WHIRLPOOL d7411701850a27975b645bce2dcfb4bcfaeef85f12d82a0826372def35ec2495aa06cbdd774efc533114793b09442501f50bea30633a95d85dccff990ae29aea
|
||||
DIST pytz-2014.10.tar.bz2 166213 SHA256 387f968fde793b142865802916561839f5591d8b4b14c941125eb0fca7e4e58d SHA512 870ab2dd4e7ebd0e5eb22fe888978f17678ba4ae72aca5106ca5a5fbdb6c4204de18ccbe27124a9f252546b030872d070c016350602aa5f7d1b68c43fa5367ec WHIRLPOOL d1f9cc2a1fcf67d22cad7e61d7634dd5d1c575bc47d72159a5394cdc9804c144093a516b3b8e90d685f4f9a469eb7e4bae3909ea8dcf839369cb3f1454919081
|
||||
DIST pytz-2014.9.tar.bz2 166230 SHA256 4ba0ab74fa7f34f77ff236ee2157454d1c2aaeaaa25932363bfa1be6cb82dbd6 SHA512 4034a33489be3059530d8ddbbba283da117b692a7ca2975835e5626d1c79be7317bade911b52f981b1bd94ec3ea15b0db1bb4adb4c3810af7ad66e15dec1313d WHIRLPOOL b0af01986dee4a1beeb957fb662f9ece373d3d0d033c3c2a78ec49b01e2d05aa596110460231913a8d6b2a3496a90be98041bc2fa7ce6ded32cf7c62340f0783
|
||||
DIST pytz-2015.2.tar.bz2 166796 SHA256 3e15b416c9a2039c1a51208b2cd3bb4ffd796cd19e601b1d2657afcb77c3dc90 SHA512 43c03c99e0f0482053174e94ab0cb6d22c65b0af416cfdc28e39a12145c62d751722befedd98395c235566d3deecf8b5aad96c73c4661d994da598213d99855e WHIRLPOOL 483d9daacda16acfb3149c8a73f21241a27d0b32b312b8dbc4af84d08153ce04e2ff169cb8abc61b5381eac2cab68ce4d0083a81827c14f8e17b970ac3b248d9
|
||||
DIST pytz-2015.4.tar.bz2 157361 SHA256 a78b484d5472dd8c688f8b3eee18646a25c66ce45b2c26652850f6af9ce52b17 SHA512 ade31780d5d91cb519e69b38f8828e1cf94b5b388a3efd80db42b7a5e5603f43f5726f7aecfd08c78d3637a3017910f3ed1a7727ec291f6579a41882c6289ca4 WHIRLPOOL 7804617d21de5e6212ccc1f17651c8e76a94374af22f542cd6eb54fc6951d0b6ec42cd7623162074994573b6bba492d92397a584277b423742c15b68cb930ae7
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3} pypy )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="World timezone definitions for Python"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/pytz http://pytz.sourceforge.net/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=sys-libs/timezone-data-${PV}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( CHANGES.txt )
|
||||
|
||||
PATCHES=(
|
||||
# Use timezone-data zoneinfo.
|
||||
"${FILESDIR}/${PN}-2009j-zoneinfo.patch"
|
||||
# ...and do not install a copy of it.
|
||||
"${FILESDIR}/${PN}-2009h-zoneinfo-noinstall.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" pytz/tests/test_tzinfo.py
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="World timezone definitions for Python"
|
||||
HOMEPAGE="http://pythonhosted.org/pytz/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=sys-libs/timezone-data-2014i"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
# Use timezone-data zoneinfo.
|
||||
"${FILESDIR}/${PN}-2009j-zoneinfo.patch"
|
||||
# ...and do not install a copy of it.
|
||||
"${FILESDIR}/${PN}-2009h-zoneinfo-noinstall.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="World timezone definitions for Python"
|
||||
HOMEPAGE="http://pythonhosted.org/pytz/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=sys-libs/timezone-data-2014i"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
# Use timezone-data zoneinfo.
|
||||
"${FILESDIR}/${PN}-2009j-zoneinfo.patch"
|
||||
# ...and do not install a copy of it.
|
||||
"${FILESDIR}/${PN}-2009h-zoneinfo-noinstall.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST readme-0.4.1.tar.gz 9318 SHA256 baf79dc0312ee4cf49291412916a120051b1b0977b5b7f883c550fb426a6a690 SHA512 937610e49fe2b94d8a5e924c02e99194bfe453bf73c03f73514dbd30412f556b81af2fa6ddfc5352f8eccc3706065f7e8302403d6060a6dc6719a7fabd1251ee WHIRLPOOL 405dc4a3b71ef7da42a333a63cb0ecc7dad3cb8d3ff9bc1fecd60d001700c1676e0f2ca4d7b9a08bb38c957cce5bb99cdba997f14d2c30fe5bee4f7ffc2a803d
|
||||
DIST readme-0.4.2.tar.gz 9329 SHA256 2ae289e4090991b9f7e0a1da210444c2b91f57257da226b5dfd4eadff0b6e5b1 SHA512 83db9dc4042a9079380cefef753c88b2a65e7905fa3715260a03d78d2ed00e12f60425626d254cd7cb2b945216b6fb062ffec1d9073cbc7619957744dfcaab25 WHIRLPOOL 3d635805f20a80f5d30e418bb1971ed81833ec4cb13416efd18a4a51c28479d21ba37f318023f17128afc8795a4b62bd0251a2cbbb34bf6b932ee15f6e71c733
|
||||
DIST readme-0.5.1.tar.gz 9917 SHA256 4d33851d7fa56d1f93b7ba979ebbb17b5175ccde9fd9dfb974427bdd72ec667b SHA512 50cbd71e692be0b6cba06d85765946aa2d2d751f3f44563c5a6902ecc982658e5e3b1e01cbaf50a4df4dc61a56290e67b71eb88c109cbb830af36f0d334552c2 WHIRLPOOL f53d900d9764c59053db1350fe059a45d1faed43f7d53468ebf3d88dfea44fe69ffb22e80483e69c4b24708fd75963a034e429325b5844375a11202ce7877a23
|
||||
DIST readme-0.6.0.tar.gz 9938 SHA256 150c55626d2be4237616d84367b789e398f4d416029e5c62b09fd1688fe14222 SHA512 73c41c728171a18a963460459aa19d559f38ad34d54a9840820feb1329a0d71c1b0eb32ce773a4f8e9d361e534bfd916e376fe1a3fe8b8a9eb91fffac3ef565c WHIRLPOOL bb45daa786a26a0c3ab7b16583b13d56e782439a06ef53a87a94d60bfb2e6220eb65fc75d7ebfc77d5f6bb3b299438f1c00e88d7edf391ad95231e18be37c523
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a library for rendering \"readme\" descriptions for Warehouse"
|
||||
HOMEPAGE="https://github.com/pypa/readme https://pypi.python.org/pypi/readme"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/bleach[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
DOCS=( README.rst )
|
||||
|
||||
python_prepare_all() {
|
||||
# remove failing test for now
|
||||
rm tests/fixtures/test_rst_008* || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test -v || die "Tests failed under ${EPYTHON}"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST capybara-1.1.4.gem 72192 SHA256 33073d7e4920a3e74c61ec46d1afe655eb0f3361187113c5e146df498e4611ed SHA512 102738031281d0fabd645fa6d941cf0a9ddd56f90d53d7cc1c8a7b03a37b6af8f4cddd178e6fc07d6751a539a5039cf20502eabdd49e8001793601bb312b47a3 WHIRLPOOL 81eff318acfdc0806c9f8d4e212068edd57694d44db1e29bbefaa7a4db162f3a2354374d6ab97ad7c2372ff9e6f6bb864ed483050facad5c298c2223a39c63cc
|
||||
DIST capybara-2.2.1.gem 218112 SHA256 0081ff6eaa33f4b5b0427db7ef0ca0af015a9bf6606126f41016db6feb58cdeb SHA512 e060706ef408f4ba2494fe45020b587914c5e1ab42717450be1818ab16782fc6e5eb49dd559ac00297cf83b267d4cec9c9766c19b0967573c6dd54e976a0fd59 WHIRLPOOL 2d58952539170ab298e80503431750feff40e4287edfefd4c0a564d9cb4abb8b0eb0833b28ebe467063be754d4d22bfddb868d4b605e992fd017a3fc8f432571
|
||||
DIST capybara-2.4.4.gem 232448 SHA256 8e28357fbdbd8df7d8c56d3d72fa8a5ef3a5a71b8abfbe9c1c77394b62279384 SHA512 344c09e4ba82709a216bbab96ba8c5e5965ddedef63bdaef3e647fb8de024a59d0043cf54420336bc8a4bd3ad186cb7292bcba5fa8fdc808a15ab6e1ee6d2793 WHIRLPOOL 0faf9b9d2b90b6e59ba9fbc080404727d069cad9b802ab0d8b2ba4eda311af203383d72cb701ed9385b42e973c3a1bfc68dab7f01885e7180298e9bbec800b43
|
||||
DIST capybara-2.5.0.gem 240640 SHA256 755c32b0ba828b2671ca63605cce4e4c3b494b16e91bf4f99e445975488ebc61 SHA512 30431cc78c16a26f850ef1a1d60af4c9934ce89ffa3ed9c305af903640a66dc78e831614c22ed7725bf23d70e5de6b50b6c1d23cc3e33c815e73a2f1117dc13c WHIRLPOOL cb1dded65c7a789a46df0a86fbaf1f3104a4ece86133b8003c8c6ac18b8d6ed4d86f50310fe7d5a4d523393258c9bbf636c088d00f2a9d8f751390ed08d02bca
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 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:2 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 )"
|
||||
|
||||
ruby_add_rdepend "
|
||||
>=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' 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} -Ilib -S rspec spec"
|
||||
virtualmake || die "Tests failed."
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST exifr-1.2.2.gem 230400 SHA256 bbb0f97db4fd686894eafd0335d171f2da868ee680dbb213743ed68cf18e0508 SHA512 91f1aeb19064ca5462335046d335e7e346fe87adb8a86d09a6a4affeba835f875c8a92bf64eefa840c1fd753a9f2f1ce871eedce605274885968d8e9227325e8 WHIRLPOOL 86579dd394501724cef33b17acafa88f4fd45fd0da3998fd8088b5f5d0af6c5bb9854ca1fbda232b48d1d317dcc36b1310cee11a830976cfb4f523dca8c03000
|
||||
DIST exifr-1.2.3.1.gem 225280 SHA256 c64196c00b88b8176c5c4ee2f37cebb9fcd3a9986052bb46357723b9a29633c5 SHA512 b74e27e51b65138af03d879171a9d968dee6606a609627bc4c956be4f514fa9e5f16c437cbbd0c796615246776db1f631c5c5a110c48431ae7abe3725a573982 WHIRLPOOL 52fdab70c366f31e13073f558155f294bbea25b8f439fefa998fb449002e7acd4eef65e7af1e7094c5d832210db78fe823f860dfc019e6b95fdf0c408ae5bf0b
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="doc/api"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A library to read EXIF info from JPEG and TIFF images"
|
||||
HOMEPAGE="https://github.com/remvee/exifr/"
|
||||
|
||||
# License is not specified in source distribution but is in the GitHub
|
||||
# repository.
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
@ -1,2 +1,3 @@
|
||||
DIST freewrl-1.22.13.1.tar.bz2 1830305 SHA256 29069d63604dbbfde0f684f342f34e9d0eb216a026f83317a00fbdd31ece17e8 SHA512 6e751835a256ce08d4099e5301c0702e28e5cae2e77d8a51ab38f6f0c08680f22a9ef25ef9d2bb860680fc8c1fc22cfebf14cfb14b50ee514b5ef76e71ab1192 WHIRLPOOL 58d301f4f3c1d145b041bb626c8af18954d9cd3da88f348d2341928c2ff050b15e077855b1ef5a2fe18b2218b8d2f8a75e229ca5bf5d683c0c98e4ed132f71cd
|
||||
DIST freewrl-2.3.3.1.tar.gz 1731651 SHA256 71ed11f5f3b4b6a1d2fc740e8e3ed62a83b484c9695968fac5e30db14dbb6fef SHA512 e205e8d11a3650ddf4f7dd089bdca36fc1879424c88392229ca8c0d532ebc4662f4f2e3bc491a0a1d6300e78c55cebbb57eeef2145a8c96c727c35dfb2a7d00a WHIRLPOOL d61f65b9f0db94f73760d6b1800be5f77f9898e2305ec93cc43aa8a8631e5d002602a1b79bbec91d30a040479ae01530cb470cb411d803ff8f04c3792e35e545
|
||||
DIST freewrl-3.0.0.tar.bz2 1567282 SHA256 91ab2e8fda840c2d52951f9833fe280080fab8eabd725dcccae1a9f3506c3ceb SHA512 12e75c6891238fbc9c750a9449c8a6a9f4b86124ac12871adbfb3c68b7ef09f35d3709dcb63693e50f8ac824170aef3b97854a72de0b324e67fbbb7c081675a0 WHIRLPOOL 78734eaa5f5cd7d3dd6bb6c7dff5621ecee2d5aba9f6fc1ce0cdbc851bdf2f58bb4f6416f0e7ad2fbb04122dda4687a2764f46819b83217951e8d1207b88c0f7
|
||||
|
@ -0,0 +1,145 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.code.sf.net/p/freewrl/git"
|
||||
S="${WORKDIR}/${P}/freex3d"
|
||||
SRC_URI=
|
||||
KEYWORDS=
|
||||
else
|
||||
SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
|
||||
HOMEPAGE="http://freewrl.sourceforge.net/"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="curl debug java libeai motif +nsplugin opencl osc +sox static-libs"
|
||||
|
||||
COMMONDEPEND="x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXxf86vm
|
||||
motif? ( x11-libs/motif:0= )
|
||||
!motif? ( x11-libs/libXaw )
|
||||
media-libs/mesa
|
||||
virtual/opengl
|
||||
media-libs/freealut
|
||||
media-libs/openal
|
||||
media-libs/libpng:0=
|
||||
virtual/jpeg:0=
|
||||
media-libs/imlib2
|
||||
>=media-libs/freetype-2
|
||||
media-libs/fontconfig
|
||||
curl? ( net-misc/curl )
|
||||
osc? ( media-libs/liblo )
|
||||
opencl? ( virtual/opencl )
|
||||
dev-lang/spidermonkey:0="
|
||||
DEPEND="${COMMONDEPEND}
|
||||
virtual/pkgconfig
|
||||
java? ( >=virtual/jdk-1.4 )
|
||||
nsplugin? ( net-misc/npapi-sdk )"
|
||||
RDEPEND="${COMMONDEPEND}
|
||||
media-fonts/dejavu
|
||||
|| ( media-gfx/imagemagick
|
||||
media-gfx/graphicsmagick[imagemagick] )
|
||||
app-arch/unzip
|
||||
java? ( >=virtual/jre-1.4 )
|
||||
sox? ( media-sound/sox )"
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# list of js libs without .pc support, to disable ./configure auto-checking
|
||||
local spidermonkeys=( mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js )
|
||||
# list of .pc supported spidermonkeys, to disable ./configure auto-checking
|
||||
local spidermonkeys_pc=( mozjs187 mozjs185 )
|
||||
|
||||
local myconf="--enable-fontconfig
|
||||
--without-expat
|
||||
--with-x
|
||||
--with-imageconvert=/usr/bin/convert
|
||||
--with-unzip=/usr/bin/unzip
|
||||
--disable-mozjs-17.0
|
||||
${spidermonkeys[@]/#/ --disable-}"
|
||||
|
||||
if has_version "<dev-lang/spidermonkey-1.8.5" ; then
|
||||
# spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
|
||||
myconf+="${spidermonkeys_pc[@]/#/ --disable-}"
|
||||
JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
|
||||
if has_version ">=dev-lang/spidermonkey-1.8:0" ; then
|
||||
# spidermonkey-1.8 changed the name of the lib
|
||||
JAVASCRIPT_ENGINE_LIBS="-lmozjs"
|
||||
else
|
||||
JAVASCRIPT_ENGINE_LIBS="-ljs"
|
||||
fi
|
||||
if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then
|
||||
JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
|
||||
JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
|
||||
fi
|
||||
export JAVASCRIPT_ENGINE_CFLAGS
|
||||
export JAVASCRIPT_ENGINE_LIBS
|
||||
fi
|
||||
if use nsplugin; then
|
||||
myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
|
||||
myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin"
|
||||
fi
|
||||
econf ${myconf} \
|
||||
$(use_enable curl libcurl) \
|
||||
$(use_with opencl OpenCL) \
|
||||
$(use_enable debug) $(use_enable debug thread_colorized) \
|
||||
$(use_enable libeai) \
|
||||
$(use_enable java) \
|
||||
$(use_enable nsplugin plugin) \
|
||||
$(use_enable osc) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable sox sound) \
|
||||
$(usex sox "--with-soundconv=/usr/bin/sox") \
|
||||
$(usex motif "--with-target=motif" "--with-target=x11") \
|
||||
$(usex motif "--with-statusbar=standard" "--with-statusbar=hud")
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use java; then
|
||||
insinto /usr/share/${PN}/lib
|
||||
doins src/java/java.policy
|
||||
java-pkg_regjar src/java/vrml.jar
|
||||
# install vrml.jar as a JRE extension
|
||||
dodir /usr/java/packages/lib/ext
|
||||
dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
|
||||
if ! has_version "media-gfx/freewrl[java]" ; then
|
||||
elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
|
||||
elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
|
||||
elog "java policy:"
|
||||
elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
|
||||
fi
|
||||
fi
|
||||
|
||||
# remove unneeded .la files (as per Flameeyes' rant)
|
||||
cd "${D}"
|
||||
rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
|
||||
elog "path. If you do not have firefox installed or you wish to use a different"
|
||||
elog "web browser to open links that are within VRML / X3D files, please be sure to"
|
||||
elog "specify the command via your BROWSER environment variable."
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST glyr-1.0.5.tar.gz 426382 SHA256 5606ff8713c28c83489628673328a625485a513b009ed64d9a5a781e64d78047 SHA512 e630116ae5a673c9b85a0a4f3dfa2a8ede319bdca357225250ab687b7bf08ddf86041316962918d577376d9641ba1128ec95fa24b5784150155acf78959af744 WHIRLPOOL 765e893642e431daeae4c814c8ca9a3163e0016c45be86f29e2e355e3b99bde1919cfba359aaf15d9952ce4410fa6e9f0b1e9f9378409a8b8dbd45e48ce888d1
|
||||
DIST glyr-1.0.7.tar.gz 425072 SHA256 74de3bed8b14bf692a60fad36d5db0d769c5abd19e1ba9540439ff7de2d9b0c9 SHA512 e6ffe4f1f2630fead1a8593b63e10dacfa3d8d57b241d0f660f5cd35223dd3b2888d6eee8e6089548ed01301326d195e98f50893745ee3567570d498e23b8c1d WHIRLPOOL 4b97ad50e917bd995f6d5045382b4613722fb2d03247128db3f8dc74e2347eeeb9757feb62b37dbffc787a1ff484dc4c3ffa0837858b14b9d7413542bbea5e0f
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="A music related metadata searchengine, both with commandline interface and C API"
|
||||
HOMEPAGE="https://github.com/sahib/glyr"
|
||||
SRC_URI="https://github.com/sahib/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-db/sqlite:3
|
||||
>=dev-libs/glib-2.10:2
|
||||
net-misc/curl"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS="AUTHORS README*" # CHANGELOG is obsolete in favour of git history
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e '/GCC_ONLY_OPT.*-s/d' \
|
||||
-e '/FLAGS/s:-Os::' \
|
||||
-e '/FLAGS/s:-g3::' \
|
||||
CMakeLists.txt || die
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST abcm2ps-6.6.22.tar.gz 298108 SHA256 be3dde653a349c8875dd1c98810c7a5263ddaaee9bc99085a41749c3e53ce560 SHA512 fb7e526e7036456df8f8826c9d552de1ff9b007cdf5b5a623ac164a346cad9af07d26ed081d8693ff549cfde37fc541a02eea2d8cb45f4902b66ac05ab96f939 WHIRLPOOL e7d82037462f60ec4c9f6a8411c109eaeebae09373169d5d3b751d789c2c221d88a7062a9b6750e25b8062f999ea213f0c3d031390ea750dcfe9868469424363
|
||||
DIST abcm2ps-8.5.2.tar.gz 231017 SHA256 466446ef3007a3bbedf01667e647ba66fcdd81e3bc714bfe5b13a1c16f536c69 SHA512 605ad9eed7470ab89ce87cb0192d58cdfce6dd481b787f58c829c8cfed999fb11ffccbc1fe0ad325a311eabf40405f1ae676c7c64ce84db0ecaf9d58b509b293 WHIRLPOOL 06ad4b92557cd65fcf18b80a40aae36b688137793397cf9aef8e286b73af1218cedacfcbaff8e6e4bd29ab78aac158ef174dfc3eb7cbe00ae560a54cd169636e
|
||||
DIST abcm2ps-8.8.3.tar.gz 238617 SHA256 7a802a535ccb92e8ff0231ba70fdc9e522f9fbadf00d5a22c0a833853730db17 SHA512 61e6ebbf822a48d558e78e876ed123a7ed5125d858aae6de30b16906c3023509caaa52eeea9123c59fed3128d079965fe0bc95b2603c444bb4d01cfda22d24b3 WHIRLPOOL 5c14ee3c86714c94a65ffea4b6397e891c954f771523df028691d034f549d96d63324e3a7b2f09bd8856ccfd2567a8163d632864d0e9ae4ded1caa3e7c71fa5e
|
||||
DIST abcm2ps-8.8.4.tar.gz 238574 SHA256 961ba76372832bbff5e07eb89c8e9ff98817fa3d7f4d13b6eedd16937120937b SHA512 f139f2bd324742a23ee9db3768746792974e6e8a78e65547cec527a7b10d4bcbacf1687dd7966791910efb8ea972042031186f89913d1051d52fb46787b34229 WHIRLPOOL 11f6287d2549d9a8d804eb9c363f505385552a5a6b3c80c676214890c0fdbd874124ff2f3cf5f4e4b72d4611e2805cea8c4a45e1ad7c65cc71b8d8a1783d3ca6
|
||||
DIST transpose_abc.pl 21045 SHA256 bd6960872bfbc9f71f183f36d533ea33b8cf62a6027b447f0b0b8adfa25a2848 SHA512 dc2623608a7b59d7e0c4d25160e69f696f170e9938dc3e035edbaf6f0163b4c6139892ec8734ea2aaba997507dcf32208562e898690600dc3c199046d4d151f3 WHIRLPOOL 81e327bbd76b40826adab06f7756c79c60289b21432b792c848db3ba1354528fa4f1a074cba890b6087cfac6e712427c6cbb2c9e6679c8ced22c362f6ec005f3
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue