parent
3203c93dfc
commit
8a670c4c14
@ -1,3 +0,0 @@
|
||||
DIST geolizer_2.01-10-patch.20070115.tar.gz 76862 SHA256 a619f863c9a65a06580080702e770251b8b4dc635e2ebf0fdb56a40b0f7eb1b3 SHA512 bf9434187d0d6b9889bd23d765dcfc2177d03179f692fa6c5994fa5ab4a6565415362eb7cfe6f0ac044e669be2075bef716f912dcec75f55adbace8be89738c4 WHIRLPOOL 82e3808f5bc232ba6681fc125cf3ce226ecaf6ebcc12b4ee83ebc2e3742c0214e9ddd5ab79ca21d0aa41fa9e09231775bf49ed3ef2be74751574d1ed46f82750
|
||||
DIST webalizer-2.01-10-src.tar.bz2 252664 SHA256 f339e4b8879aeade0f889b7bc7eb85854a7746a16b267c4aa985cd5b8a112262 SHA512 5eb0c6344d99f92f8b2f72db533b61e7f79f18b94b1adbadc704f0a0b72998042d53daa1a2b8c92975be91ed25252f21ba99a1852365bccdc2338eb5041d6ff9 WHIRLPOOL ecae01667eb7ea163f8e2b66e9fc02f4fe57178eff067b24114633e1d7fc977097eb094b8ac2c2204ac4b7f72a8bc2cc68387b3a25d6a1653dc119acd7b5ccb1
|
||||
DIST webalizer.conf.gz 8986 SHA256 b7da31865a8c13a66756247d68242d6478900f2c2b9b5698ed35c0c613fb9a71 SHA512 ec7f815e0215116d72e6d93b471a4b86a1c152a8ebae7c374144cabeeb06750d3a39fde65faf069e9aeb133f27b0b4cdee16bed5442e7fbd4eb4f45a4f3cd84b WHIRLPOOL 58c2ced08eeba65e1c7acf951e2e0e1806af58fcd37997c4d824504235303d7f75cf6c05c7ce051e2e2f3b3abff9a929f0dfd7722a995a8ab65232cfb549e83a
|
@ -1,9 +0,0 @@
|
||||
# This is the config snippet for Geolizer
|
||||
<Directory "/var/www/localhost/htdocs/geolizer">
|
||||
Options None
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
# vim: ts=4 filetype=apache
|
@ -1,81 +0,0 @@
|
||||
From 64325c4fed853418f75357e0bb78668f999478ab Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Pipping <sebastian@pipping.org>
|
||||
Date: Wed, 10 Mar 2010 16:55:28 +0100
|
||||
Subject: [PATCH] etc-eolizer-conf
|
||||
|
||||
---
|
||||
sample.conf | 4 ++--
|
||||
webalizer.1 | 6 +++---
|
||||
webalizer.c | 8 ++++----
|
||||
3 files changed, 9 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/sample.conf b/sample.conf
|
||||
index 9eaef68..1d0b048 100644
|
||||
--- a/sample.conf
|
||||
+++ b/sample.conf
|
||||
@@ -16,8 +16,8 @@
|
||||
# at least one space or tab between the keyword and its value.
|
||||
#
|
||||
# As of version 0.98, The Webalizer will look for a 'default' configuration
|
||||
-# file named "webalizer.conf" in the current directory, and if not found
|
||||
-# there, will look for "/etc/webalizer.conf".
|
||||
+# file named "geolizer.conf" in the current directory, and if not found
|
||||
+# there, will look for "/etc/geolizer.conf".
|
||||
|
||||
|
||||
# LogFile defines the web server log file to use. If not specified
|
||||
diff --git a/webalizer.1 b/webalizer.1
|
||||
index b810c1f..fe0a589 100644
|
||||
--- a/webalizer.1
|
||||
+++ b/webalizer.1
|
||||
@@ -43,9 +43,9 @@ as a \fBcrond(8)\fP job. Once executed, the general flow of the program is:
|
||||
.TP 8
|
||||
.B o
|
||||
A default configuration file is scanned for. A file named
|
||||
-\fIwebalizer.conf\fP is searched for in the current directory, and if
|
||||
+\fIgeolizer.conf\fP is searched for in the current directory, and if
|
||||
found, it's configuration data is parsed. If the file is not
|
||||
-present in the current directory, the file \fI/etc/webalizer.conf\fP
|
||||
+present in the current directory, the file \fI/etc/geolizer.conf\fP
|
||||
is searched for and, if found, is used instead.
|
||||
.TP 8
|
||||
.B o
|
||||
@@ -688,7 +688,7 @@ Specifies GeoIP database file. Defaults to libGeoIP precompiled one
|
||||
(normally \fI/usr/local/share/GeoIP/GeoIP.dat\fP).
|
||||
.SH FILES
|
||||
.TP 20
|
||||
-.I webalizer.conf
|
||||
+.I geolizer.conf
|
||||
Default configuration file. Is searched for in the current directory
|
||||
and if not found, in the \fI/etc/\fP directory.
|
||||
.TP 20
|
||||
diff --git a/webalizer.c b/webalizer.c
|
||||
index 2daad89..db7adb2 100644
|
||||
--- a/webalizer.c
|
||||
+++ b/webalizer.c
|
||||
@@ -278,9 +278,9 @@ int main(int argc, char *argv[])
|
||||
len = GetModuleFileName(GetModuleHandle(NULL), tmp_buf, sizeof(tmp_buf) - 1);
|
||||
for (p = tmp_buf + len; (p > tmp_buf) && (*p != '\\'); p--);
|
||||
*p = '\0';
|
||||
- strncat(tmp_buf, "\\webalizer.conf", sizeof(tmp_buf) - 1);
|
||||
+ strncat(tmp_buf, "\\geolizer.conf", sizeof(tmp_buf) - 1);
|
||||
#else
|
||||
- sprintf(tmp_buf,"%s/webalizer.conf",ETCDIR);
|
||||
+ sprintf(tmp_buf,"%s/geolizer.conf",ETCDIR);
|
||||
#endif /* WIN32 */
|
||||
|
||||
/* initalize epoch */
|
||||
@@ -290,8 +290,8 @@ int main(int argc, char *argv[])
|
||||
add_nlist("index.",&index_alias);
|
||||
|
||||
/* check for default config file */
|
||||
- if (!access("webalizer.conf",F_OK))
|
||||
- get_config("webalizer.conf");
|
||||
+ if (!access("geolizer.conf",F_OK))
|
||||
+ get_config("geolizer.conf");
|
||||
else if (!access(tmp_buf,F_OK))
|
||||
get_config(tmp_buf);
|
||||
|
||||
--
|
||||
1.7.0.1.61.gdc05d.dirty
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- webalizer-2.01-10/Makefile.in_BACKUP 2010-09-17 08:39:52.000000000 +0200
|
||||
+++ webalizer-2.01-10/Makefile.in 2010-09-17 08:40:02.000000000 +0200
|
||||
@@ -45,7 +45,6 @@
|
||||
output.o output.h graphs.o graphs.h lang.h \
|
||||
webalizer_lang.h
|
||||
$(CC) ${LDFLAGS} -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o ${LIBS}
|
||||
- strip webalizer
|
||||
rm -f webazolver
|
||||
@LN_S@ webalizer webazolver
|
||||
|
@ -1,136 +0,0 @@
|
||||
aa afar
|
||||
ab abkhazian
|
||||
af afrikaans
|
||||
am amharic
|
||||
ar arabic
|
||||
as assamese
|
||||
ay aymara
|
||||
az azerbaijani
|
||||
ba bashkir
|
||||
be byelorussian
|
||||
bg bulgarian
|
||||
bh bihari
|
||||
bi bislama
|
||||
bn bengali
|
||||
bo tibetan
|
||||
br breton
|
||||
ca catalan
|
||||
co corsican
|
||||
cs czech
|
||||
cy welsh
|
||||
da danish
|
||||
de german
|
||||
dz bhutani
|
||||
el greek
|
||||
en english
|
||||
eo esperanto
|
||||
es spanish
|
||||
et estonian
|
||||
eu basque
|
||||
fa persian
|
||||
fi finnish
|
||||
fj fiji
|
||||
fo faeroese
|
||||
fr french
|
||||
fy frisian
|
||||
ga irish
|
||||
gd gaelic
|
||||
gl galician
|
||||
gn guarani
|
||||
gu gujarati
|
||||
ha hausa
|
||||
hi hindi
|
||||
hr croatian
|
||||
hu hungarian
|
||||
hy armenian
|
||||
ia interlingua
|
||||
ie interlingue
|
||||
ik inupiak
|
||||
in indonesian
|
||||
is icelandic
|
||||
it italian
|
||||
iw hebrew
|
||||
ja japanese
|
||||
ji yiddish
|
||||
jw javanese
|
||||
ka georgian
|
||||
kk kazakh
|
||||
kl greenlandic
|
||||
km cambodian
|
||||
kn kannada
|
||||
ko korean
|
||||
ks kashmiri
|
||||
ku kurdish
|
||||
ky kirghiz
|
||||
la latin
|
||||
ln lingala
|
||||
lo laothian
|
||||
lt lithuanian
|
||||
lv latvian
|
||||
mg malagasy
|
||||
mi maori
|
||||
mk macedonian
|
||||
ml malayalam
|
||||
mn mongolian
|
||||
mo moldavian
|
||||
mr marathi
|
||||
ms malay
|
||||
mt maltese
|
||||
my burmese
|
||||
na nauru
|
||||
ne nepali
|
||||
nl dutch
|
||||
no norwegian
|
||||
oc occitan
|
||||
om oromo afan
|
||||
or oriya
|
||||
pa punjabi
|
||||
pl polish
|
||||
ps pashto
|
||||
pt portuguese
|
||||
qu quechua
|
||||
rm rhaeto-romance
|
||||
rn kirundi
|
||||
ro romanian
|
||||
ru russian
|
||||
rw kinyarwanda
|
||||
sa sanskrit
|
||||
sd sindhi
|
||||
sg sangro
|
||||
sh serbo-croatian
|
||||
si singhalese
|
||||
sk slovak
|
||||
sl slovenian
|
||||
sm samoan
|
||||
sn shona
|
||||
so somali
|
||||
sq albanian
|
||||
sr serbian
|
||||
ss siswati
|
||||
st sesotho
|
||||
su sudanese
|
||||
sv swedish
|
||||
sw swahili
|
||||
ta tamil
|
||||
te tegulu
|
||||
tg tajik
|
||||
th thai
|
||||
ti tigrinya
|
||||
tk turkmen
|
||||
tl tagalog
|
||||
tn setswana
|
||||
to tonga
|
||||
tr turkish
|
||||
ts tsonga
|
||||
tt tatar
|
||||
tw twi
|
||||
uk ukrainian
|
||||
ur urdu
|
||||
uz uzbek
|
||||
vi vietnamese
|
||||
vo volapuk
|
||||
wo wolof
|
||||
xh xhosa
|
||||
yo yoruba
|
||||
zh chinese
|
||||
zu zulu
|
@ -1,118 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# uses webapp.eclass to create directories with right permissions
|
||||
# probably slight overkill but works well
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit versionator confutils eutils webapp db-use autotools
|
||||
|
||||
WEBAPP_MANUAL_SLOT="yes"
|
||||
|
||||
MY_PV="$(get_version_component_range 1-2)-$(get_version_component_range 3)"
|
||||
WEBALIZER_P="webalizer-${MY_PV}"
|
||||
GEOLIZER_P="${PN}_${MY_PV}-patch.${PV/*_p/}"
|
||||
|
||||
DESCRIPTION="Webserver log file analyzer"
|
||||
HOMEPAGE="http://sysd.org/stas/node/10"
|
||||
SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/old/${WEBALIZER_P}-src.tar.bz2
|
||||
http://sysd.org/stas/files/active/0/${GEOLIZER_P}.tar.gz
|
||||
mirror://gentoo/webalizer.conf.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="nls"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND=">=sys-libs/db-4.2
|
||||
>=sys-libs/zlib-1.1.4
|
||||
>=media-libs/libpng-1.2
|
||||
>=media-libs/gd-1.8.3
|
||||
dev-libs/geoip"
|
||||
|
||||
S="${WORKDIR}"/${WEBALIZER_P}
|
||||
|
||||
pkg_setup() {
|
||||
webapp_pkg_setup
|
||||
confutils_require_built_with_all media-libs/gd png
|
||||
|
||||
# USE=nls has no real meaning if LINGUAS isn't set
|
||||
if use nls && [[ -z "${LINGUAS}" ]]; then
|
||||
ewarn "you must set LINGUAS in /etc/make.conf"
|
||||
ewarn "if you want to USE=nls"
|
||||
die "please either set LINGUAS or do not use nls"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${WORKDIR}"/${PN}_${MY_PV}-patch/${PN}.patch \
|
||||
"${FILESDIR}"/${P}-etc-geolizer-conf.patch \
|
||||
"${FILESDIR}"/${P}-strip.patch
|
||||
sed -i configure.in -e 's|libGeoIP.a|libGeoIP.so|g' || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# really dirty hack; necessary due to a really gross ./configure
|
||||
# basically, it just sets the natural language the program uses
|
||||
# unfortunatly, this program only allows for one lang, so only the first
|
||||
# entry in LINGUAS is used
|
||||
if use nls; then
|
||||
local longlang="$(grep ^${LINGUAS:0:2} "${FILESDIR}"/geolizer-language-list.txt)"
|
||||
local myconf="${myconf} --with-language=${longlang:3}"
|
||||
else
|
||||
local myconf="${myconf} --with-language=english"
|
||||
fi
|
||||
|
||||
econf --enable-dns \
|
||||
--with-db=$(db_includedir) \
|
||||
--with-dblib=$(db_libname) \
|
||||
${myconf} \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
webapp_src_preinst
|
||||
|
||||
newbin webalizer geolizer
|
||||
fperms 755 /usr/bin/geolizer
|
||||
dosym geolizer /usr/bin/geozolver || die 'dosym failed'
|
||||
newman webalizer.1 geolizer.1 || die 'newman failed'
|
||||
|
||||
insinto /etc
|
||||
newins "${WORKDIR}"/webalizer.conf geolizer.conf || die 'doins failed'
|
||||
dosed "s/apache/apache2/g" /etc/geolizer.conf || die 'dosed failed'
|
||||
|
||||
dodoc CHANGES *README* INSTALL sample.conf "${FILESDIR}"/apache.geolizer || die 'dodoc failed'
|
||||
|
||||
webapp_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "It is suggested that you restart apache before using geolizer"
|
||||
elog "You may want to review /etc/geolizer.conf and ensure that"
|
||||
elog "OutputDir is set correctly"
|
||||
elog
|
||||
elog "Then just type geolizer to generate your stats."
|
||||
elog "You can also use cron to generate them e.g. every day."
|
||||
elog "They can be accessed via http://localhost/geolizer"
|
||||
elog
|
||||
elog "A sample Apache config file has been installed into"
|
||||
elog "/usr/share/doc/${PF}/apache.geolizer"
|
||||
elog "Please edit and install it as necessary"
|
||||
elog
|
||||
|
||||
if [[ ${#LINGUAS} -gt 2 ]] && use nls; then
|
||||
ewarn
|
||||
ewarn "You have more than one language in LINGUAS"
|
||||
ewarn "Due to the limitations of this packge, it was built"
|
||||
ewarn "only with ${LINGUAS:0:2} support. If this is not what"
|
||||
ewarn "you intended, please place the language you desire"
|
||||
ewarn "_first_ in the list of LINGUAS in /etc/make.conf"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
webapp_pkg_postinst
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>web-apps@gentoo.org</email>
|
||||
<name>Gentoo Webapps</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,182 @@
|
||||
--- a/config.h.in 2017-06-07 16:38:45.046910693 +0200
|
||||
+++ b/config.h.in 2017-06-07 16:39:06.973911120 +0200
|
||||
@@ -78,8 +78,8 @@
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
-/* Build systemd code */
|
||||
-#undef HAVE_SYSTEMD
|
||||
+/* Build systemd-login code */
|
||||
+#undef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
--- a/configure.ac 2017-06-06 09:03:57.171355965 +0200
|
||||
+++ b/configure.ac 2017-06-06 09:55:11.242384458 +0200
|
||||
@@ -254,7 +254,6 @@
|
||||
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
||||
[has_systemdsystemunitdir=$with_systemdsystemunitdir],
|
||||
[has_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
||||
- AC_DEFINE(HAVE_SYSTEMD,1,[Build systemd code])
|
||||
AC_SUBST([systemdsystemunitdir], [$has_systemdsystemunitdir])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$has_systemdsystemunitdir"])
|
||||
@@ -267,6 +266,22 @@
|
||||
AM_CONDITIONAL(ENABLE_OFFLINE_UPDATE, [test x$enable_systemd = xyes -a x$enable_offline_update = xyes])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
+dnl - Use elogind instead of systemd-login
|
||||
+dnl ---------------------------------------------------------------------------
|
||||
+AC_ARG_ENABLE(elogind, AS_HELP_STRING([--enable-elogind],[enable elogind session tracker]),
|
||||
+ enable_elogind=$enableval,enable_elogind=no)
|
||||
+if test x$enable_elogind = xyes; then
|
||||
+ PKG_CHECK_MODULES(ELOGIND, [libelogind >= 229.4], [have_elogind=yes], [have_elogind=no])
|
||||
+fi
|
||||
+
|
||||
+dnl ---------------------------------------------------------------------------
|
||||
+dnl --- Is systemd/sd-login.h, either from systemd or elogind, available?
|
||||
+dnl ---------------------------------------------------------------------------
|
||||
+if test "x$have_systemd" != "xno" -o "x$have_elogind" != "xno" ; then
|
||||
+ AC_DEFINE(HAVE_SYSTEMD_SD_LOGIN_H,1,[Build systemd-login code])
|
||||
+fi
|
||||
+
|
||||
+dnl ---------------------------------------------------------------------------
|
||||
dnl - Generate man pages ? (default enabled)
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE(man_pages, AS_HELP_STRING([--disable-man-pages],[Disable man pages generation]), enable_man_pages=$enableval)
|
||||
@@ -629,6 +644,7 @@
|
||||
cflags: ${CFLAGS}
|
||||
cppflags: ${CPPFLAGS}
|
||||
Able to run locally: ${enable_local}
|
||||
+ Use elogind: ${enable_elogind}
|
||||
Use systemd: ${enable_systemd}
|
||||
Enable offline update: ${enable_offline_update}
|
||||
Networking stacks: ${networking_apis}
|
||||
--- a/src/Makefile.am 2017-06-06 10:02:19.902397328 +0200
|
||||
+++ b/src/Makefile.am 2017-06-06 10:04:05.013400483 +0200
|
||||
@@ -11,6 +11,7 @@
|
||||
$(PYTHON_CFLAGS) \
|
||||
$(NETWORK_MANAGER_CFLAGS) \
|
||||
$(CONNMAN_CFLAGS) \
|
||||
+ $(ELOGIND_CFLAGS) \
|
||||
$(SYSTEMD_CFLAGS) \
|
||||
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
||||
-DBINDIR=\"$(bindir)\" \
|
||||
@@ -104,6 +105,7 @@
|
||||
$(POLKIT_LIBS) \
|
||||
$(GIO_LIBS) \
|
||||
$(ARCHIVE_LIBS) \
|
||||
+ $(ELOGIND_LIBS) \
|
||||
$(SYSTEMD_LIBS)
|
||||
|
||||
packagekit_direct_LDFLAGS = \
|
||||
@@ -134,6 +136,7 @@
|
||||
$(POLKIT_LIBS) \
|
||||
$(GIO_LIBS) \
|
||||
$(ARCHIVE_LIBS) \
|
||||
+ $(ELOGIND_LIBS) \
|
||||
$(SYSTEMD_LIBS)
|
||||
|
||||
packagekitd_LDFLAGS = \
|
||||
@@ -161,6 +164,7 @@
|
||||
$(POLKIT_LIBS) \
|
||||
$(GIO_LIBS) \
|
||||
$(ARCHIVE_LIBS) \
|
||||
+ $(ELOGIND_LIBS) \
|
||||
$(SYSTEMD_LIBS)
|
||||
|
||||
pk_self_test_CPPFLAGS = \
|
||||
--- a/src/pk-engine.c 2017-06-06 09:12:23.828371176 +0200
|
||||
+++ b/src/pk-engine.c 2017-06-06 09:55:47.426385545 +0200
|
||||
@@ -98,7 +98,7 @@
|
||||
guint owner_id;
|
||||
GDBusNodeInfo *introspection;
|
||||
GDBusConnection *connection;
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
GDBusProxy *logind_proxy;
|
||||
gint logind_fd;
|
||||
#endif
|
||||
@@ -281,7 +281,7 @@
|
||||
static void
|
||||
pk_engine_inhibit (PkEngine *engine)
|
||||
{
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
g_autoptr(GError) error = NULL;
|
||||
g_autoptr(GUnixFDList) out_fd_list = NULL;
|
||||
g_autoptr(GVariant) res = NULL;
|
||||
@@ -331,7 +331,7 @@
|
||||
static void
|
||||
pk_engine_uninhibit (PkEngine *engine)
|
||||
{
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
if (engine->priv->logind_fd == 0)
|
||||
return;
|
||||
g_debug ("closed logind fd %i", engine->priv->logind_fd);
|
||||
@@ -1830,7 +1830,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
/**
|
||||
* pk_engine_proxy_logind_cb:
|
||||
**/
|
||||
@@ -1872,7 +1872,7 @@
|
||||
/* save copy for emitting signals */
|
||||
engine->priv->connection = g_object_ref (connection);
|
||||
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
/* connect to logind */
|
||||
g_dbus_proxy_new (connection,
|
||||
G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
|
||||
@@ -2031,7 +2031,7 @@
|
||||
if (engine->priv->connection != NULL)
|
||||
g_object_unref (engine->priv->connection);
|
||||
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
/* uninhibit */
|
||||
if (engine->priv->logind_fd != 0)
|
||||
close (engine->priv->logind_fd);
|
||||
--- a/src/pk-dbus.c 2017-06-06 09:12:13.254370858 +0200
|
||||
+++ b/src/pk-dbus.c 2017-06-06 10:09:17.249409857 +0200
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <glib.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
#include <systemd/sd-login.h>
|
||||
#endif
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
return cmdline;
|
||||
}
|
||||
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
/**
|
||||
* pk_dbus_get_session_systemd:
|
||||
**/
|
||||
@@ -220,7 +220,7 @@
|
||||
pk_dbus_get_session (PkDbus *dbus, const gchar *sender)
|
||||
{
|
||||
gchar *session = NULL;
|
||||
-#ifndef HAVE_SYSTEMD
|
||||
+#ifndef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
g_autoptr(GError) error = NULL;
|
||||
#endif
|
||||
guint pid;
|
||||
@@ -250,7 +250,7 @@
|
||||
}
|
||||
|
||||
/* get session from systemd or ConsoleKit */
|
||||
-#ifdef HAVE_SYSTEMD
|
||||
+#ifdef HAVE_SYSTEMD_SD_LOGIN_H
|
||||
session = pk_dbus_get_session_systemd (pid);
|
||||
#else
|
||||
/* get session from ConsoleKit */
|
@ -1 +1,2 @@
|
||||
DIST chuck.eselect-1.0.1.bz2 1268 SHA256 8ce7ecbbc77e35eace774e34223b453329dc2a79a8e2acf5dc495c9f029f1c1e SHA512 875c27bb71bdad309554c0541e495d76cac6c663e0c2b3371376f52bca127dbcdc409790a689dee2b2306999eec9ebde6c0afae093891fc151695838567d2483 WHIRLPOOL 38e3b588b0ee38c3f9150c3e89bcd6c6e31face8bfbf76a1d62f50b71dc53bee3ebefb11f80d39da412b0fa1b4636f974082ca37055e15bf09307269eb8306fb
|
||||
DIST chuck.eselect-1.0.2.bz2 1261 SHA256 0d472d2ed4637b22e2fe4ff395ef31a6e6668f4504c477a6d9b7297a95735378 SHA512 a89f0ed00a44e81ff16b8668cfa23a0c794efc35bbcf5e2f06eb5fe9a56095948fa8ddf36a8a3371fc7ab255f539b563831b527717b58149d19dc0d3c32ca387 WHIRLPOOL afa7bfefc2bf890c8451665847f573eacf4be999f3b8a74bb7f0679032de90a946cb5e8c0305afa7e0127fa6361b45c264a6efd1d52699a48183af4ebb790189
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Manages the /usr/bin/chuck symlink"
|
||||
HOMEPAGE="https://www.gentoo.org/"
|
||||
SRC_URI="mirror://gentoo/chuck.eselect-${PVR}.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-admin/eselect-1.2.3"
|
||||
DEPEND="!<=media-sound/chuck-1.2.1.2"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/eselect/modules
|
||||
newins "${WORKDIR}/chuck.eselect-${PVR}" chuck.eselect || die
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
diff --git a/events.c b/events.c
|
||||
index dbb46f0..f9990f9 100644
|
||||
--- a/events.c
|
||||
+++ b/events.c
|
||||
@@ -5311,7 +5311,7 @@ xi2_emulate_action(struct xdvi_action *actp, struct xi2_valinfo *valinfo,
|
||||
}
|
||||
|
||||
if (actp->proc == Act_wheel) {
|
||||
-# if XAW
|
||||
+# if !MOTIF
|
||||
if (globals.widgets.y_bar != NULL)
|
||||
XtCallCallbacks(globals.widgets.y_bar, XtNscrollProc,
|
||||
cast_int_to_XtPointer(dist));
|
||||
@@ -5322,7 +5322,7 @@ xi2_emulate_action(struct xdvi_action *actp, struct xi2_valinfo *valinfo,
|
||||
# endif /* MOTIF */
|
||||
}
|
||||
else { /* Act_hwheel */
|
||||
-# if XAW
|
||||
+# if !MOTIF
|
||||
if (globals.widgets.x_bar != NULL)
|
||||
XtCallCallbacks(globals.widgets.x_bar, XtNscrollProc,
|
||||
cast_int_to_XtPointer(dist));
|
@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit eutils flag-o-matic elisp-common toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="DVI previewer for X Window System"
|
||||
HOMEPAGE="http://xdvi.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
IUSE="motif neXt Xaw3d emacs"
|
||||
|
||||
RDEPEND="media-libs/freetype:2
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXp
|
||||
x11-libs/libXpm
|
||||
motif? ( >=x11-libs/motif-2.3:0 )
|
||||
!motif? (
|
||||
neXt? ( x11-libs/neXtaw )
|
||||
!neXt? (
|
||||
Xaw3d? ( x11-libs/libXaw3d )
|
||||
!Xaw3d? ( x11-libs/libXaw )
|
||||
)
|
||||
)
|
||||
dev-libs/kpathsea"
|
||||
DEPEND="sys-devel/flex
|
||||
virtual/yacc
|
||||
${RDEPEND}"
|
||||
RDEPEND="${RDEPEND}
|
||||
virtual/latex-base
|
||||
!<app-text/texlive-2007"
|
||||
S=${WORKDIR}/${P}/texk/xdvik
|
||||
|
||||
src_prepare() {
|
||||
# Make sure system kpathsea headers are used
|
||||
cd "${WORKDIR}/${P}/texk/kpathsea"
|
||||
for i in *.h ; do echo "#include_next \"$i\"" > $i; done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local toolkit
|
||||
|
||||
if use motif ; then
|
||||
toolkit="motif"
|
||||
use neXt && ewarn "neXt USE flag ignored (superseded by motif)"
|
||||
use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by motif)"
|
||||
elif use neXt ; then
|
||||
toolkit="neXtaw"
|
||||
use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by neXt)"
|
||||
elif use Xaw3d ; then
|
||||
toolkit="xaw3d"
|
||||
else
|
||||
toolkit="xaw"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-system-freetype2 \
|
||||
--with-system-kpathsea \
|
||||
--with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea \
|
||||
--with-xdvi-x-toolkit="${toolkit}" \
|
||||
--x-includes="${EPREFIX}"/usr/include \
|
||||
--x-libraries="${EPREFIX}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake kpathsea_dir="${EPREFIX}/usr/include/kpathsea"
|
||||
use emacs && elisp-compile xdvi-search.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/share/texmf-dist/dvips/config
|
||||
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
dosym /usr/share/texmf-dist/xdvi/XDvi /usr/share/X11/app-defaults/XDvi
|
||||
|
||||
dodoc BUGS FAQ README.*
|
||||
|
||||
use emacs && elisp-install tex-utils *.el *.elc
|
||||
|
||||
doicon "${FILESDIR}"/${PN}.xpm
|
||||
make_desktop_entry xdvi "XDVI" xdvik "Graphics;Viewer"
|
||||
echo "MimeType=application/x-dvi;" >> "${ED}"usr/share/applications/xdvi-"${PN}".desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use emacs; then
|
||||
elog "Add"
|
||||
elog " (add-to-list 'load-path \"${EPREFIX}${SITELISP}/tex-utils\")"
|
||||
elog " (require 'xdvi-search)"
|
||||
elog "to your ~/.emacs file"
|
||||
fi
|
||||
}
|
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic elisp-common toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="DVI previewer for X Window System"
|
||||
HOMEPAGE="http://xdvi.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
IUSE="motif neXt Xaw3d emacs"
|
||||
|
||||
RDEPEND="media-libs/freetype:2
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXp
|
||||
x11-libs/libXpm
|
||||
motif? ( >=x11-libs/motif-2.3:0 )
|
||||
!motif? (
|
||||
neXt? ( x11-libs/neXtaw )
|
||||
!neXt? (
|
||||
Xaw3d? ( x11-libs/libXaw3d )
|
||||
!Xaw3d? ( x11-libs/libXaw )
|
||||
)
|
||||
)
|
||||
dev-libs/kpathsea"
|
||||
DEPEND="sys-devel/flex
|
||||
virtual/yacc
|
||||
virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
RDEPEND="${RDEPEND}
|
||||
virtual/latex-base
|
||||
!<app-text/texlive-2007"
|
||||
S=${WORKDIR}/${P}/texk/xdvik
|
||||
|
||||
src_prepare() {
|
||||
local i
|
||||
epatch "${FILESDIR}"/${P}-xaw3d.patch
|
||||
# Make sure system kpathsea headers are used
|
||||
cd "${WORKDIR}/${P}/texk/kpathsea"
|
||||
for i in *.h ; do echo "#include_next \"$i\"" > $i; done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
has_version '>=dev-libs/kpathsea-6.2.1' && append-cppflags "$($(tc-getPKG_CONFIG) --cflags kpathsea)"
|
||||
|
||||
local toolkit
|
||||
|
||||
if use motif ; then
|
||||
toolkit="motif"
|
||||
use neXt && ewarn "neXt USE flag ignored (superseded by motif)"
|
||||
use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by motif)"
|
||||
elif use neXt ; then
|
||||
toolkit="neXtaw"
|
||||
use Xaw3d && ewarn "Xaw3d USE flag ignored (superseded by neXt)"
|
||||
elif use Xaw3d ; then
|
||||
toolkit="xaw3d"
|
||||
else
|
||||
toolkit="xaw"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-system-freetype2 \
|
||||
--with-system-kpathsea \
|
||||
--with-kpathsea-include="${EPREFIX}"/usr/include/kpathsea \
|
||||
--with-xdvi-x-toolkit="${toolkit}" \
|
||||
--x-includes="${EPREFIX}"/usr/include \
|
||||
--x-libraries="${EPREFIX}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake kpathsea_dir="${EPREFIX}/usr/include/kpathsea"
|
||||
use emacs && elisp-compile xdvi-search.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/share/texmf-dist/dvips/config
|
||||
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
dosym /usr/share/texmf-dist/xdvi/XDvi /usr/share/X11/app-defaults/XDvi
|
||||
|
||||
dodoc BUGS FAQ README.*
|
||||
|
||||
use emacs && elisp-install tex-utils *.el *.elc
|
||||
|
||||
doicon "${FILESDIR}"/${PN}.xpm
|
||||
make_desktop_entry xdvi "XDVI" xdvik "Graphics;Viewer"
|
||||
echo "MimeType=application/x-dvi;" >> "${ED}"usr/share/applications/xdvi-"${PN}".desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use emacs; then
|
||||
elog "Add"
|
||||
elog " (add-to-list 'load-path \"${EPREFIX}${SITELISP}/tex-utils\")"
|
||||
elog " (require 'xdvi-search)"
|
||||
elog "to your ~/.emacs file"
|
||||
fi
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
--- patch/13_all_default-ssp-fix.patch.old 2017-06-14 11:29:28.997183865 +0200
|
||||
+++ patch/13_all_default-ssp-fix.patch 2017-06-14 12:24:15.042271863 +0200
|
||||
@@ -39,9 +39,9 @@
|
||||
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\
|
||||
%{fsyntax-only:-o %j} %{-param*}\
|
||||
+ %{nostdlib:-nostdlib}\
|
||||
- %{coverage:-fprofile-arcs -ftest-coverage}";
|
||||
+ %{coverage:-fprofile-arcs -ftest-coverage}\
|
||||
+ %{fdump-scos:-fpreserve-decisions-generic}";
|
||||
|
||||
- static const char *asm_options =
|
||||
--- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200
|
||||
+++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200
|
||||
@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT,
|
@ -0,0 +1,184 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PATCH_VER="1.0"
|
||||
#UCLIBC_VER="1.0"
|
||||
|
||||
TOOLCHAIN_GCC_PV=6.3.0
|
||||
GCC_FILESDIR=${PORTDIR}/sys-devel/gcc/files
|
||||
|
||||
inherit eutils toolchain-funcs toolchain
|
||||
|
||||
REL=6
|
||||
MYP=gcc-${REL}-gpl-${PV}-src
|
||||
|
||||
DESCRIPTION="GNAT Ada Compiler - GPL version"
|
||||
HOMEPAGE="http://libre.adacore.com/"
|
||||
SRC_URI+="
|
||||
http://mirrors.cdn.adacore.com/art/591adbb4c7a4473fcc4532a3
|
||||
-> ${P}-src.tar.gz
|
||||
http://mirrors.cdn.adacore.com/art/591adb65c7a4473fcbb153ac
|
||||
-> ${MYP}.tar.gz
|
||||
http://mirrors.cdn.adacore.com/art/591adbc5c7a4473fcbb153ae
|
||||
-> gcc-interface-${REL}-gpl-${PV}-src.tar.gz
|
||||
bootstrap? (
|
||||
http://mirrors.cdn.adacore.com/art/564b3ebec8e196b040fbe66c ->
|
||||
gnat-gpl-2014-x86_64-linux-bin.tar.gz
|
||||
)"
|
||||
|
||||
LICENSE+=" GPL-2 GPL-3"
|
||||
SLOT="${TOOLCHAIN_GCC_PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="bootstrap"
|
||||
|
||||
RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}"
|
||||
DEPEND="${RDEPEND}
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.13 )
|
||||
>=sys-devel/binutils-2.20"
|
||||
|
||||
S="${WORKDIR}"/${MYP}
|
||||
PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 )"
|
||||
FSFGCC=gcc-${TOOLCHAIN_GCC_PV}
|
||||
|
||||
pkg_setup() {
|
||||
toolchain_pkg_setup
|
||||
if use bootstrap; then
|
||||
GCC="${WORKDIR}"/gnat-gpl-2014-x86_64-linux-bin/bin/gcc
|
||||
else
|
||||
GCC=${ADA:-$(tc-getCC)}
|
||||
fi
|
||||
|
||||
gnatbase=$(basename ${GCC})
|
||||
gnatpath=$(dirname ${GCC})
|
||||
|
||||
GNATMAKE=${gnatbase/gcc/gnatmake}
|
||||
if [[ ${gnatpath} != "." ]] ; then
|
||||
GNATMAKE="${gnatpath}/${GNATMAKE}"
|
||||
fi
|
||||
|
||||
if ! use bootstrap && [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then
|
||||
eerror "You need a gcc compiler that provides the Ada Compiler:"
|
||||
eerror "1) use gcc-config to select the right compiler or"
|
||||
eerror "2) set the bootstrap use flag"
|
||||
die "ada compiler not available"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
GCC_A_FAKEIT="
|
||||
${P}-src.tar.gz
|
||||
${MYP}.tar.gz
|
||||
gcc-interface-${REL}-gpl-${PV}-src.tar.gz"
|
||||
if use bootstrap; then
|
||||
GCC_A_FAKEIT="${GCC_A_FAKEIT} gnat-gpl-2014-x86_64-linux-bin.tar.gz"
|
||||
fi
|
||||
|
||||
toolchain_src_unpack
|
||||
if use bootstrap; then
|
||||
rm gnat-gpl-2014-x86_64-linux-bin/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/ld || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed "${FILESDIR}"/${PN}.xml \
|
||||
-e "s:@VER@:${PV}:g" \
|
||||
> ${P}.xml || die
|
||||
|
||||
CC=${GCC}
|
||||
CXX="${gnatbase/gcc/g++}"
|
||||
GNATBIND="${gnatbase/gcc/gnatbind}"
|
||||
GNATLINK="${gnatbase/gcc/gnatlink}"
|
||||
GNATLS="${gnatbase/gcc/gnatls}"
|
||||
if [[ ${gnatpath} != "." ]] ; then
|
||||
CXX="${gnatpath}/${CXX}"
|
||||
GNATBIND="${gnatpath}/${GNATBIND}"
|
||||
GNATLINK="${gnatpath}/${GNATLINK}"
|
||||
GNATLS="${gnatpath}/${GNATLS}"
|
||||
fi
|
||||
mkdir bin || die
|
||||
ln -s $(which ${GCC}) bin/gcc || die
|
||||
ln -s $(which ${CXX}) bin/g++ || die
|
||||
ln -s $(which ${GNATMAKE}) bin/gnatmake || die
|
||||
ln -s $(which ${GNATBIND}) bin/gnatbind || die
|
||||
ln -s $(which ${GNATLINK}) bin/gnatlink || die
|
||||
ln -s $(which ${GNATLS}) bin/gnatls || die
|
||||
|
||||
echo ${TOOLCHAIN_GCC_PV} > gcc/BASE-VER
|
||||
|
||||
cd ..
|
||||
mv gnat-gpl-${PV}-src/src/ada ${MYP}/gcc/ || die
|
||||
mv gcc-interface-${REL}-gpl-${PV}-src ${MYP}/gcc/ada/gcc-interface || die
|
||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
||||
cd -
|
||||
sed -i \
|
||||
-e 's:$(P) ::g' \
|
||||
gcc/ada/gcc-interface/Makefile.in \
|
||||
|| die "sed failed"
|
||||
toolchain_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export PATH=${PWD}/bin:${PATH}
|
||||
local trueGCC_BRANCH_VER=${GCC_BRANCH_VER}
|
||||
GCC_BRANCH_VER=$(gcc-version)
|
||||
downgrade_arch_flags
|
||||
GCC_BRANCH_VER=${trueGCC_BRANCH_VER}
|
||||
toolchain_src_configure \
|
||||
--enable-languages=ada \
|
||||
--disable-libada
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
unset ADAFLAGS
|
||||
toolchain_src_compile
|
||||
gcc_do_make "-C gcc gnatlib-shared"
|
||||
ln -s gcc ../build/prev-gcc || die
|
||||
ln -s x86_64-pc-linux-gnu ../build/prev-x86_64-pc-linux-gnu || die
|
||||
gcc_do_make "-C gcc gnattools"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/gprconfig
|
||||
doins ${P}.xml
|
||||
toolchain_src_install
|
||||
cd "${D}"${BINPATH}
|
||||
for x in gnat*; do
|
||||
# For some reason, g77 gets made instead of ${CTARGET}-g77...
|
||||
# this should take care of that
|
||||
if [[ -f ${x} ]] ; then
|
||||
# In case they're hardlinks, clear out the target first
|
||||
# otherwise the mv below will complain.
|
||||
rm -f ${CTARGET}-${x}
|
||||
mv ${x} ${CTARGET}-${x}
|
||||
fi
|
||||
|
||||
if [[ -f ${CTARGET}-${x} ]] ; then
|
||||
if ! is_crosscompile ; then
|
||||
ln -sf ${CTARGET}-${x} ${x}
|
||||
dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \
|
||||
/usr/bin/${x}-${GCC_CONFIG_VER}
|
||||
fi
|
||||
# Create versioned symlinks
|
||||
dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \
|
||||
/usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER}
|
||||
fi
|
||||
|
||||
if [[ -f ${CTARGET}-${x}-${GCC_CONFIG_VER} ]] ; then
|
||||
rm -f ${CTARGET}-${x}-${GCC_CONFIG_VER}
|
||||
ln -sf ${CTARGET}-${x} ${CTARGET}-${x}-${GCC_CONFIG_VER}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
toolchain_pkg_postinst
|
||||
einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more"
|
||||
einfo "Set the ADA variables to ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV} in"
|
||||
einfo "your make.conf"
|
||||
einfo "Even if the c/c++ compilers are using almost the same patched"
|
||||
einfo "source as the sys-devel/gcc package its use is not extensively"
|
||||
einfo "tested, and not supported for updating your system, except for ada"
|
||||
einfo "related packages"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST PPI-1.220.tar.gz 245416 SHA256 1e15be50e7d95a36d351af8bf5074f6695a2c72165e586d93e616183e7602b83 SHA512 03ff865424a11cb351211dc7d57b6477848e8f354de74dc5bae214614438549f1dba6818842f6312f88fa631514abad69b0023046d56c8e8584d0b634c202694 WHIRLPOOL a8ea5f55613d1d0cd7223f12aeae5c3819121db3bb519fc000eb6f251618aa034dbff437e5d2133218a79452f8b556d469acc2b3ac62196c20616b847de228ad
|
||||
DIST PPI-1.224.tar.gz 257197 SHA256 8d0f9faaea68515fb5aa6323115dcf98ea6c1dec4441f3844d3b9633b6cc9d94 SHA512 7c5f4a01b3d4a1e7e2f68d7e5c81368387fbe9a4cd2f20afc494706f742c9ba0b293747b692fb77af9a1457e077687c7d5217bf09137ab71bb50ba52da24431c WHIRLPOOL 4ed26b3329664f0f46af0f6799bf8b6d15e8220ecaa36c8733fb4b9840129ec30dda27e55030bbf7875e2d7b070a854ad14260d1c52485782eb0f8d5b0096fd1
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=MITHALDU
|
||||
DIST_VERSION=1.224
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Parse, Analyze and Manipulate Perl (without perl)"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/Clone-0.300.0
|
||||
>=virtual/perl-Digest-MD5-2.350.0
|
||||
>=virtual/perl-File-Spec-3.270.100
|
||||
>=dev-perl/IO-String-1.70.0
|
||||
>=dev-perl/List-MoreUtils-0.160.0
|
||||
>=virtual/perl-Scalar-List-Utils-1.330.0
|
||||
>=dev-perl/Params-Util-1.000.0
|
||||
>=virtual/perl-Storable-2.170.0
|
||||
dev-perl/Task-Weaken
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=virtual/perl-ExtUtils-MakeMaker-6.590.0
|
||||
test? (
|
||||
>=dev-perl/Class-Inspector-1.220.0
|
||||
>=dev-perl/File-Remove-1.420.0
|
||||
dev-perl/Test-Deep
|
||||
>=virtual/perl-Test-Simple-0.860.0
|
||||
>=dev-perl/Test-Object-0.70.0
|
||||
>=dev-perl/Test-SubCalls-1.70.0
|
||||
>=dev-perl/Test-Warn-0.300.0
|
||||
)
|
||||
"
|
@ -0,0 +1,82 @@
|
||||
https://rt.cpan.org/Ticket/Display.html?id=114490
|
||||
|
||||
|
||||
--- Params-Classify-0.013a/lib/Params/Classify.xs 2010-11-16 15:35:47.000000000 -0500
|
||||
+++ Params-Classify-0.013b/lib/Params/Classify.xs 2017-03-26 15:38:12.384693301 -0400
|
||||
@@ -41,6 +41,26 @@
|
||||
# define FPTR2DPTR(t,x) ((t)(UV)(x))
|
||||
#endif /* !FPTR2DPTR */
|
||||
|
||||
+#ifndef OpHAS_SIBLING
|
||||
+# define OpHAS_SIBLING(o) (cBOOL((o)->op_sibling))
|
||||
+#endif
|
||||
+
|
||||
+#ifndef OpSIBLING
|
||||
+# define OpSIBLING(o) (0 + (o)->op_sibling)
|
||||
+#endif
|
||||
+
|
||||
+#ifndef OpMORESIB_set
|
||||
+# define OpMORESIB_set(o, sib) ((o)->op_sibling = (sib))
|
||||
+#endif
|
||||
+
|
||||
+#ifndef OpLASTSIB_set
|
||||
+# define OpLASTSIB_set(o, parent) ((o)->op_sibling = NULL)
|
||||
+#endif
|
||||
+
|
||||
+#ifndef OpMAYBESIB_set
|
||||
+# define OpMAYBESIB_set(o, sib, parent) ((o)->op_sibling = (sib))
|
||||
+#endif
|
||||
+
|
||||
#ifndef ptr_table_new
|
||||
|
||||
struct q_ptr_tbl_ent {
|
||||
@@ -625,8 +645,8 @@
|
||||
OP *(*ppfunc)(pTHX);
|
||||
I32 cvflags;
|
||||
pushop = cUNOPx(op)->op_first;
|
||||
- if(!pushop->op_sibling) pushop = cUNOPx(pushop)->op_first;
|
||||
- for(cvop = pushop; cvop->op_sibling; cvop = cvop->op_sibling) ;
|
||||
+ if(!OpHAS_SIBLING(pushop)) pushop = cUNOPx(pushop)->op_first;
|
||||
+ for(cvop = pushop; OpHAS_SIBLING(cvop); cvop = OpSIBLING(cvop)) ;
|
||||
if(!(cvop->op_type == OP_RV2CV &&
|
||||
!(cvop->op_private & OPpENTERSUB_AMPER) &&
|
||||
(cv = rvop_cv(cUNOPx(cvop)->op_first)) &&
|
||||
@@ -635,20 +655,20 @@
|
||||
return nxck_entersub(aTHX_ op);
|
||||
cvflags = CvXSUBANY(cv).any_i32;
|
||||
op = nxck_entersub(aTHX_ op); /* for prototype checking */
|
||||
- aop = pushop->op_sibling;
|
||||
- bop = aop->op_sibling;
|
||||
+ aop = OpSIBLING(pushop);
|
||||
+ bop = OpSIBLING(aop);
|
||||
if(bop == cvop) {
|
||||
if(!(cvflags & PC_ALLOW_UNARY)) return op;
|
||||
unary:
|
||||
- pushop->op_sibling = bop;
|
||||
- aop->op_sibling = NULL;
|
||||
+ OpLASTSIB_set(pushop, bop);
|
||||
+ OpLASTSIB_set(aop, NULL);
|
||||
op_free(op);
|
||||
op = newUNOP(OP_NULL, 0, aop);
|
||||
op->op_type = OP_RAND;
|
||||
op->op_ppaddr = ppfunc;
|
||||
op->op_private = (U8)cvflags;
|
||||
return op;
|
||||
- } else if(bop && bop->op_sibling == cvop) {
|
||||
+ } else if(bop && OpSIBLING(op) == cvop) {
|
||||
if(!(cvflags & PC_ALLOW_BINARY)) return op;
|
||||
if(ppfunc == THX_pp_check_sclass &&
|
||||
(cvflags & PC_TYPE_MASK) == SCLASS_REF) {
|
||||
@@ -667,9 +687,9 @@
|
||||
cvflags &= ~PC_TYPE_MASK;
|
||||
ppfunc = THX_pp_check_dyn_battr;
|
||||
}
|
||||
- pushop->op_sibling = cvop;
|
||||
- aop->op_sibling = NULL;
|
||||
- bop->op_sibling = NULL;
|
||||
+ OpLASTSIB_set(pushop, cvop);
|
||||
+ OpLASTSIB_set(aop, NULL);
|
||||
+ OpLASTSIB_set(bop, NULL);
|
||||
op_free(op);
|
||||
op = newBINOP(OP_NULL, 0, aop, bop);
|
||||
op->op_type = OP_RAND;
|
@ -0,0 +1,7 @@
|
||||
--- a/Makefile.PL 2017-03-31 09:05:12.495038191 -0400
|
||||
+++ b/Makefile.PL 2017-03-31 09:05:22.634214621 -0400
|
||||
@@ -1,3 +1,4 @@
|
||||
+use lib '.';
|
||||
use inc::Module::Install::DSL 0.83;
|
||||
|
||||
all_from lib/Test/SubCalls.pm
|
@ -1,124 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
|
||||
inherit distutils-r1 versionator
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 3 -)"
|
||||
|
||||
DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/autobahn http://autobahn.ws/python/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="crypt test"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '>=dev-python/trollius-2.0[${PYTHON_USEDEP}]' 'python2_7')
|
||||
$(python_gen_cond_dep '>=dev-python/futures-3.0.4[${PYTHON_USEDEP}]' 'python2_7')
|
||||
>=dev-python/cbor-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lz4-0.7.0[${PYTHON_USEDEP}]
|
||||
crypt? (
|
||||
>=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytrie-0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/service_identity-16.0.0
|
||||
)
|
||||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/snappy-0.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/txaio-2.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/u-msgpack-2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/py-ubjson-0.8.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/wsaccel-0.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/zope-interface-3.6[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
>=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytrie-0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
python_test() {
|
||||
#esetup.py test
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
py.test -v || die
|
||||
}
|
||||
|
||||
# temp copy from twisted-r1 eclass
|
||||
# to be replaced by a twisted-r2 eclass
|
||||
|
||||
# @ECLASS-VARIABLE: TWISTED_PLUGINS
|
||||
# @DESCRIPTION:
|
||||
# An array of Twisted plugins, whose cache is regenerated
|
||||
# in pkg_postinst() and pkg_postrm() phases.
|
||||
#
|
||||
# If no plugins are installed, set to empty array.
|
||||
declare -p TWISTED_PLUGINS &>/dev/null || TWISTED_PLUGINS=( twisted.plugins )
|
||||
|
||||
# @FUNCTION: _twisted-r1_create_caches
|
||||
# @USAGE: <packages>...
|
||||
# @DESCRIPTION:
|
||||
# Create dropin.cache for plugins in specified packages. The packages
|
||||
# are to be listed in standard dotted Python syntax.
|
||||
_twisted-r1_create_caches() {
|
||||
# http://twistedmatrix.com/documents/current/core/howto/plugin.html
|
||||
"${PYTHON}" -c \
|
||||
"import sys
|
||||
sys.path.insert(0, '${ROOT}$(python_get_sitedir)')
|
||||
|
||||
fail = False
|
||||
|
||||
try:
|
||||
from twisted.plugin import getPlugins, IPlugin
|
||||
except ImportError as e:
|
||||
if '${EBUILD_PHASE}' == 'postinst':
|
||||
raise
|
||||
else:
|
||||
for module in sys.argv[1:]:
|
||||
try:
|
||||
__import__(module, globals())
|
||||
except ImportError as e:
|
||||
if '${EBUILD_PHASE}' == 'postinst':
|
||||
raise
|
||||
else:
|
||||
list(getPlugins(IPlugin, sys.modules[module]))
|
||||
" \
|
||||
"${@}" || die "twisted plugin cache update failed"
|
||||
}
|
||||
|
||||
# @FUNCTION: twisted-r1_update_plugin_cache
|
||||
# @DESCRIPTION:
|
||||
# Update and clean up plugin caches for packages listed
|
||||
# in TWISTED_PLUGINS.
|
||||
twisted-r1_update_plugin_cache() {
|
||||
[[ ${TWISTED_PLUGINS[@]} ]] || return
|
||||
|
||||
local subdirs=( "${TWISTED_PLUGINS[@]//.//}" )
|
||||
local paths=( "${subdirs[@]/#/${ROOT}$(python_get_sitedir)/}" )
|
||||
local caches=( "${paths[@]/%//dropin.cache}" )
|
||||
|
||||
# First, delete existing (possibly stray) caches.
|
||||
rm -f "${caches[@]}" || die
|
||||
|
||||
# Now, let's see which ones we can regenerate.
|
||||
_twisted-r1_create_caches "${TWISTED_PLUGINS[@]}"
|
||||
|
||||
# Finally, drop empty parent directories.
|
||||
rmdir -p "${paths[@]}" 2>/dev/null
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
_distutils-r1_run_foreach_impl twisted-r1_update_plugin_cache
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
|
||||
inherit distutils-r1 versionator
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 3 -)"
|
||||
|
||||
DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/autobahn http://autobahn.ws/python/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="crypt test"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '>=dev-python/trollius-2.0[${PYTHON_USEDEP}]' 'python2_7')
|
||||
$(python_gen_cond_dep '>=dev-python/futures-3.0.4[${PYTHON_USEDEP}]' 'python2_7')
|
||||
>=dev-python/cbor-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lz4-0.7.0[${PYTHON_USEDEP}]
|
||||
crypt? (
|
||||
>=dev-python/pyopenssl-16.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytrie-0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/service_identity-16.0.0
|
||||
)
|
||||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/snappy-0.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/twisted-16.6.0-r2[${PYTHON_USEDEP}]
|
||||
>=dev-python/txaio-2.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/u-msgpack-2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/py-ubjson-0.8.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/wsaccel-0.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/zope-interface-3.6[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
>=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytrie-0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyqrcode-1.1.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
python_test() {
|
||||
#esetup.py test
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
py.test -v || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_foreach_impl twisted-regen-cache || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_foreach_impl twisted-regen-cache || die
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST hyperlink-17.1.1.tar.gz 23067 SHA256 a7462dee03672b8f853c26e1ab9e3b1fd4c90a6efde64ab44a851c2472445018 SHA512 13b20fd54c6bb5d7de3c9a04133fdd848413d1308d9944a2288c76d5f8b9bb0c54401ca5ed53460112209806407497526f2e68a92d119656eb58a9a618e9b708 WHIRLPOOL 86f3dab9cd32805ce974d55920ab3a4cad032da740ce3e4fb103b20ee59a501400e302aa6c90f7d905bb49b78a460a4187a21fe34dc3a155b9234f6e48ea11f1
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy)
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A featureful, correct URL for Python"
|
||||
HOMEPAGE="https://github.com/python-hyper/hyperlink https://pypi.python.org/pypi/hyperlink"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-python/pytest-2.9.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-cov-2.3.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH="${S}/test:${BUILD_DIR}/lib" \
|
||||
py.test -v || die
|
||||
cd test
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>dolsen@gentoo.org</email>
|
||||
<description>Primary maintainer</description>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<email>mahmoud@hatnote.com</email>
|
||||
<name>Mahmoud Hashemi</name>
|
||||
</maintainer>
|
||||
<remote-id type="pypi">hyperframe</remote-id>
|
||||
</upstream>
|
||||
<longdescription>
|
||||
The humble, but powerful, URL runs everything around us.
|
||||
Chances are you've used several just to read this text.
|
||||
Hyperlink is a featureful, pure-Python implementation of the URL, with
|
||||
an emphasis on correctness.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,2 +1,4 @@
|
||||
DIST Twisted-16.6.0.tar.bz2 2979747 SHA256 d0fe115ea7ef8cf632d05103de60356c6e992b2153d6830bdc4476f8accb1fca SHA512 0b8de0ec7f64457f76c396fced64b366b8e63c6e000a5edc6c6388cd917fb2f95711918cd8edda39e0aa77e2cd32b5d775d23630a5ad10fc013c18f8316300cf WHIRLPOOL a09a8747312580e3b27d222bf0942b714ad041044a817876e1731c5fa2ae3d11e4d5a45221d2e7d126ebb664730d15c886d5ae164841c7a8f0acd6e12c4691a9
|
||||
DIST Twisted-17.1.0.tar.bz2 2997334 SHA256 dbf211d70afe5b4442e3933ff01859533eba9f13d8b3e2e1b97dc2125e2d44dc SHA512 e5eedc9a70b7e4d0ec18dddaa82aa9a784e96fd517db65c278d822d15e8bdc65a35307a5a0474eb68dcb73fcd5508086bec605580a9f2f767bcbe27d714b4966 WHIRLPOOL 828a939134df47950a285c732867b3d4172e5e86a75fbdc1cc4365b5a24699a0b3fcb573b7e3d389eea591fc9fc79456c09f2d2c8f08d7e1215dc5761e88ed8e
|
||||
DIST Twisted-17.5.0.tar.bz2 2993816 SHA256 f198a494f0df2482f7c5f99d7f3eef33d22763ffc76641b36fec476b878002ea SHA512 0fd10e5db7c87daf0d2225cec9929f1040f0c67e9605bfb1a5bc84db8b825e943cfa08e094c32c25c680bddc6587bfdc525a994ad7b785396e5ddb2621649379 WHIRLPOOL 28a0578545d525b5239a897229904489c38fa1e7148f374c96e66d3071f8dcd861aa5b772b338e5aaa9e92cc4d0f19a1598136bc2f9a9173b2489f6ec7fb391d
|
||||
DIST twisted-regen-cache.gz 911 SHA256 e88fb326c0e24506d59afa3a4113e63c3e496fa1114156db6521f84fbce41652 SHA512 95a9b931c73017d16d1b5e6b41345dddffe62b6af1a8e93b5e40d06d3d15be17b0dd0181c767ffeeb791534d463764ef9e066fa6c2ee2ac4b53c86d1da8fce03 WHIRLPOOL 8077fc4d102bb8071e3163c386edf10c14a2cf0c8bbbf57c66787bdeb9b5f21115bcb022a770fe72b48914d829ff69384684f50928700f83547702d6a0d35423
|
||||
|
@ -0,0 +1,181 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6})
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit eutils flag-o-matic distutils-r1 versionator
|
||||
|
||||
TWISTED_PN="Twisted"
|
||||
TWISTED_P="${TWISTED_PN}-${PV}"
|
||||
TWISTED_RELEASE=$(get_version_component_range 1-2 "${PV}")
|
||||
|
||||
DESCRIPTION="An asynchronous networking framework written in Python"
|
||||
HOMEPAGE="http://www.twistedmatrix.com/"
|
||||
SRC_URI="http://twistedmatrix.com/Releases/${TWISTED_PN}"
|
||||
SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2
|
||||
https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz"
|
||||
|
||||
# Dropped keywords due to new deps not keyworded
|
||||
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="conch crypt http2 serial +soap test"
|
||||
|
||||
RDEPEND=">=dev-python/zope-interface-4.0.2[${PYTHON_USEDEP}]
|
||||
conch? (
|
||||
dev-python/pyasn1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
crypt? (
|
||||
>=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}]
|
||||
>=dev-python/idna-0.6[${PYTHON_USEDEP}]
|
||||
)
|
||||
serial? ( dev-python/pyserial[${PYTHON_USEDEP}] )
|
||||
soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) )
|
||||
http2? (
|
||||
>=dev-python/hyper-h2-2.5.0[${PYTHON_USEDEP}]
|
||||
<dev-python/hyper-h2-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/priority-1.1.0[${PYTHON_USEDEP}]
|
||||
<dev-python/priority-2.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/constantly-15.1.0[${PYTHON_USEDEP}]
|
||||
!dev-python/twisted-core
|
||||
!dev-python/twisted-conch
|
||||
!dev-python/twisted-lore
|
||||
!dev-python/twisted-mail
|
||||
!dev-python/twisted-names
|
||||
!dev-python/twisted-news
|
||||
!dev-python/twisted-pair
|
||||
!dev-python/twisted-runner
|
||||
!dev-python/twisted-words
|
||||
!dev-python/twisted-web
|
||||
"
|
||||
DEPEND="
|
||||
>=dev-python/incremental-16.10.1[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/gmpy[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}]
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
>=dev-python/constantly-15.1.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable.
|
||||
"${FILESDIR}/${PN}-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch"
|
||||
"${FILESDIR}/test_main.patch"
|
||||
"${FILESDIR}/utf8_overrides.patch"
|
||||
"${FILESDIR}/${PN}-16.6.0-test-fixes.patch"
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${TWISTED_P}
|
||||
|
||||
python_prepare_all() {
|
||||
# disable tests that don't work in our sandbox
|
||||
# and other test failures due to our conditions
|
||||
if use test ; then
|
||||
# Remove since this is an upstream distribution test for making releases
|
||||
rm src/twisted/python/test/test_release.py || die "rm src/twisted/python/test/test_release.py FAILED"
|
||||
fi
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
# Needed to make the sendmsg extension work
|
||||
# (see http://twistedmatrix.com/trac/ticket/5701 )
|
||||
local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
|
||||
export EMERGE_TEST_OVERRIDE=1
|
||||
export UTF8_OVERRIDES=1
|
||||
# workaround for the eclass not installing the entry points
|
||||
# in the test environment. copy the old 16.3.2 start script
|
||||
# to run the tests with
|
||||
cp "${FILESDIR}"/trial "${TEST_DIR}"
|
||||
|
||||
pushd "${TEST_DIR}" > /dev/null || die
|
||||
|
||||
if ! "${TEST_DIR}"/trial twisted; then
|
||||
die "Tests failed with ${EPYTHON}"
|
||||
fi
|
||||
# due to an anomoly in the tests, python doesn't return the correct form
|
||||
# of the escape sequence. So run those test separately with a clean python interpreter
|
||||
export UTF8_OVERRIDES=0
|
||||
if ! "${TEST_DIR}"/trial twisted.test.test_twistd.DaemonizeTests; then
|
||||
die "DaemonizeTests failed with ${EPYTHON}"
|
||||
fi
|
||||
if ! "${TEST_DIR}"/trial twisted.test.test_reflect.SafeStrTests; then
|
||||
die "SafeStrTests failed with ${EPYTHON}"
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
cd "${D%/}$(python_get_sitedir)" || die
|
||||
|
||||
# own the dropin.cache so we don't leave orphans
|
||||
touch twisted/plugins/dropin.cache || die
|
||||
|
||||
python_doscript "${WORKDIR}"/twisted-regen-cache
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newconfd "${FILESDIR}/twistd.conf" twistd
|
||||
newinitd "${FILESDIR}/twistd.init" twistd
|
||||
}
|
||||
|
||||
python_postinst() {
|
||||
twisted-regen-cache || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_foreach_impl python_postinst
|
||||
|
||||
einfo "Install complete"
|
||||
if use test ; then
|
||||
einfo ""
|
||||
einfo "Some tests have been disabled during testing due to"
|
||||
einfo "known incompatibilities with the emerge sandboxes and/or"
|
||||
einfo "not runnable as the root user."
|
||||
einfo "For a complete test suite run on the code."
|
||||
einfo "Run the tests as a normal user for each python it is installed to."
|
||||
einfo " ie: $ python3.6 /usr/bin/trial twisted"
|
||||
einfo "There are a few known python-2.7 errors due to some unicode issues"
|
||||
einfo "which are different in Gentoo installed python-2.7"
|
||||
fi
|
||||
}
|
||||
|
||||
python_postrm() {
|
||||
rm -f "${ROOT%/}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die
|
||||
}
|
||||
|
||||
pkg_postrm(){
|
||||
# if we're removing the last version, remove the cache file
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
python_foreach_impl python_postrm
|
||||
fi
|
||||
}
|
@ -0,0 +1,184 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6})
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit eutils flag-o-matic distutils-r1 versionator
|
||||
|
||||
TWISTED_PN="Twisted"
|
||||
TWISTED_P="${TWISTED_PN}-${PV}"
|
||||
TWISTED_RELEASE=$(get_version_component_range 1-2 "${PV}")
|
||||
|
||||
DESCRIPTION="An asynchronous networking framework written in Python"
|
||||
HOMEPAGE="http://www.twistedmatrix.com/"
|
||||
SRC_URI="http://twistedmatrix.com/Releases/${TWISTED_PN}"
|
||||
SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2
|
||||
https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz"
|
||||
|
||||
# Dropped keywords due to new deps not keyworded
|
||||
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="conch crypt http2 serial +soap test"
|
||||
|
||||
RDEPEND=">=dev-python/zope-interface-4.0.2[${PYTHON_USEDEP}]
|
||||
conch? (
|
||||
dev-python/pyasn1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
crypt? (
|
||||
>=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}]
|
||||
>=dev-python/idna-0.6[${PYTHON_USEDEP}]
|
||||
)
|
||||
serial? ( dev-python/pyserial[${PYTHON_USEDEP}] )
|
||||
soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) )
|
||||
http2? (
|
||||
>=dev-python/hyper-h2-3.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/hyper-h2-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/priority-1.1.0[${PYTHON_USEDEP}]
|
||||
<dev-python/priority-2.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/constantly-15.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/automat-0.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/hyperlink-17.1.1[${PYTHON_USEDEP}]
|
||||
!dev-python/twisted-core
|
||||
!dev-python/twisted-conch
|
||||
!dev-python/twisted-lore
|
||||
!dev-python/twisted-mail
|
||||
!dev-python/twisted-names
|
||||
!dev-python/twisted-news
|
||||
!dev-python/twisted-pair
|
||||
!dev-python/twisted-runner
|
||||
!dev-python/twisted-words
|
||||
!dev-python/twisted-web
|
||||
"
|
||||
DEPEND="
|
||||
>=dev-python/incremental-16.10.1[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/gmpy[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
|
||||
dev-python/service_identity[${PYTHON_USEDEP}]
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
>=dev-python/constantly-15.1.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable.
|
||||
"${FILESDIR}/${PN}-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch"
|
||||
"${FILESDIR}/test_main.patch"
|
||||
"${FILESDIR}/utf8_overrides.patch"
|
||||
"${FILESDIR}/${PN}-16.6.0-test-fixes.patch"
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${TWISTED_P}
|
||||
|
||||
python_prepare_all() {
|
||||
# disable tests that don't work in our sandbox
|
||||
# and other test failures due to our conditions
|
||||
if use test ; then
|
||||
# Remove since this is an upstream distribution test for making releases
|
||||
rm src/twisted/python/test/test_release.py || die "rm src/twisted/python/test/test_release.py FAILED"
|
||||
fi
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
# Needed to make the sendmsg extension work
|
||||
# (see http://twistedmatrix.com/trac/ticket/5701 )
|
||||
local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
|
||||
export EMERGE_TEST_OVERRIDE=1
|
||||
export UTF8_OVERRIDES=1
|
||||
unset TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE
|
||||
# workaround for the eclass not installing the entry points
|
||||
# in the test environment. copy the old 16.3.2 start script
|
||||
# to run the tests with
|
||||
cp "${FILESDIR}"/trial "${TEST_DIR}"
|
||||
|
||||
pushd "${TEST_DIR}" > /dev/null || die
|
||||
|
||||
if ! "${TEST_DIR}"/trial twisted; then
|
||||
die "Tests failed with ${EPYTHON}"
|
||||
fi
|
||||
# due to an anomoly in the tests, python doesn't return the correct form
|
||||
# of the escape sequence. So run those test separately with a clean python interpreter
|
||||
export UTF8_OVERRIDES=0
|
||||
if ! "${TEST_DIR}"/trial twisted.test.test_twistd.DaemonizeTests; then
|
||||
die "DaemonizeTests failed with ${EPYTHON}"
|
||||
fi
|
||||
if ! "${TEST_DIR}"/trial twisted.test.test_reflect.SafeStrTests; then
|
||||
die "SafeStrTests failed with ${EPYTHON}"
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
cd "${D%/}$(python_get_sitedir)" || die
|
||||
|
||||
# own the dropin.cache so we don't leave orphans
|
||||
touch twisted/plugins/dropin.cache || die
|
||||
|
||||
python_doscript "${WORKDIR}"/twisted-regen-cache
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
newconfd "${FILESDIR}/twistd.conf" twistd
|
||||
newinitd "${FILESDIR}/twistd.init" twistd
|
||||
}
|
||||
|
||||
python_postinst() {
|
||||
twisted-regen-cache || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_foreach_impl python_postinst
|
||||
|
||||
einfo "Install complete"
|
||||
if use test ; then
|
||||
einfo ""
|
||||
einfo "Some tests have been disabled during testing due to"
|
||||
einfo "known incompatibilities with the emerge sandboxes and/or"
|
||||
einfo "not runnable as the root user."
|
||||
einfo "For a complete test suite run on the code."
|
||||
einfo "Run the tests as a normal user for each python it is installed to."
|
||||
einfo " ie: $ python3.6 /usr/bin/trial twisted"
|
||||
einfo "There are a few known python-2.7 errors due to some unicode issues"
|
||||
einfo "which are different in Gentoo installed python-2.7"
|
||||
fi
|
||||
}
|
||||
|
||||
python_postrm() {
|
||||
rm -f "${ROOT%/}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die
|
||||
}
|
||||
|
||||
pkg_postrm(){
|
||||
# if we're removing the last version, remove the cache file
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
python_foreach_impl python_postrm
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue