parent
a42805130e
commit
dc3ae419cf
@ -1,2 +1 @@
|
||||
DIST uptimed-0.3.18.tar.gz 397295 SHA256 fe9c0c78c8fca1ef9b61474f2039dc3634f2caf1c547b7ddc7a4eaa31238b2c9 SHA512 6ccc9eebec2ed1b4dd0cc11590ba277c7ed453c244207772c26d147682627e47e7265e1b599ed505fb8aae8b013c61e77889e9d5ed638f994b579142b85fed1f WHIRLPOOL 848ff159267bb71fa5b8a63f55a954d21c125306d1defb60c807921130c820c8576a050326ba0fe718805f34b17c4092a01b534ffdc852599da47ced0a754b19
|
||||
DIST uptimed-0.4.0.tar.gz 55026 SHA256 26891965bb499065e34072cecd3eb8087102b1c05f530c8fe8504a07c722f9bf SHA512 918cd9e065d5005daf5062f14dffb725cb6d6764aa571fd45d63de3f7349b910cbae0dedc832f9bfb52a42caea90e8aec8390685baaf0718fec827240e517900 WHIRLPOOL 7611a0fda9c1f9f4bee30cb6f38c65dd93dfeb185335d34173f6abf4eb6e12747f27b0adb649a33807cda264671d98be0b3135b36abde111b7d30e06b885923f
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils user systemd
|
||||
|
||||
DESCRIPTION="System uptime record daemon that keeps track of your highest uptimes"
|
||||
HOMEPAGE="https://github.com/rpodgorny/uptimed/"
|
||||
SRC_URI="https://github.com/rpodgorny/uptimed/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
|
||||
IUSE="static-libs"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup uptimed
|
||||
enewuser uptimed -1 -1 -1 uptimed
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# respect DESTDIR
|
||||
sed -i -e 's|-d \(/var/spool.*\)$|-d $(DESTDIR)\1|' Makefile.am || die
|
||||
# fix configure.ac for >=automake-1.13 (bug #467582)
|
||||
sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files --all
|
||||
keepdir /var/spool/uptimed
|
||||
fowners uptimed:uptimed /var/spool/uptimed
|
||||
dodoc ChangeLog README TODO AUTHORS CREDITS INSTALL.cgi sample-cgi/*
|
||||
newinitd "${FILESDIR}"/uptimed.init uptimed
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Fixing permissions in /var/spool/${PN}"
|
||||
chown -R uptimed:uptimed /var/spool/${PN}
|
||||
echo
|
||||
elog "Start uptimed with '/etc/init.d/uptimed start' (for openRC)"
|
||||
elog "or systemctl start uptimed (for systemd)"
|
||||
elog "To view your uptime records, use the command 'uprecords'."
|
||||
echo
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils multilib gnome2-utils font
|
||||
|
||||
MY_PV="8-update1"
|
||||
MY_P="${PN}-${MY_PV}-linux"
|
||||
|
||||
DESCRIPTION="A brainstorming and mind mapping software tool"
|
||||
HOMEPAGE="http://www.xmind.net"
|
||||
SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
|
||||
https://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
|
||||
LICENSE="EPL-1.0 LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.8
|
||||
x11-libs/gtk+:2
|
||||
"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
|
||||
QA_FLAGS_IGNORED="
|
||||
opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.400.v20160518-1444/eclipse_1617.so
|
||||
opt/xmind/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
|
||||
opt/xmind/XMind/XMind
|
||||
"
|
||||
|
||||
FONT_SUFFIX="ttf"
|
||||
FONT_S="${S}/fonts"
|
||||
|
||||
src_configure() {
|
||||
if use amd64; then
|
||||
XDIR="XMind_amd64"
|
||||
else
|
||||
XDIR="XMind_i388"
|
||||
fi
|
||||
mv "$XDIR" XMind || die
|
||||
# force data instance & config area to be at home/.xmind directory
|
||||
sed \
|
||||
-e '/-configuration/d' \
|
||||
-e '/\.\/configuration/d' \
|
||||
-e '/-data/d' \
|
||||
-e '/\.\.\/Commons\/data\/workspace-cathy/d' \
|
||||
-e 's/\.\.\/plugins/\/opt\/xmind\/plugins/g' \
|
||||
-e '/-vmargs/i-showsplash' \
|
||||
-e '/vmargs/iorg.xmind.cathy' \
|
||||
-i XMind/XMind.ini || die
|
||||
echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
|
||||
echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/xmind
|
||||
doins -r plugins configuration features XMind
|
||||
fperms a+rx "/opt/xmind/XMind/XMind"
|
||||
|
||||
exeinto /opt/bin
|
||||
newexe "${FILESDIR}/xmind-wrapper-3.7.0" xmind
|
||||
|
||||
# install icons
|
||||
local res
|
||||
for res in 16 32 48; do
|
||||
newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
|
||||
done
|
||||
|
||||
make_desktop_entry ${PN} "XMind" ${PN} "Office" "MimeType=application/x-xmind;"
|
||||
font_src_install
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
font_pkg_postinst
|
||||
elog "For audio notes support, install media-sound/lame"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST ding-1.7.tar.gz 4037214 SHA256 a6546e1074f954c67ff7697b777c42a08528177adfa08700b827c8323eb1eb91 SHA512 580f85d2bc6683666db1d6a3101b0de889725064607e260de39fab3c6de773ba45f39aafd0444edadc1e9b8cee5b8388dc90cefb11bcb9d229e55b62e91dfde5 WHIRLPOOL bf7938ca19d56cd9ba9fc72f543a77de6387797fa04dcf8186eaf0a80551dfc4060628d8b175ee8c7a95b07405ee0cd46b5297b56620dc274540c187e3d3b3bd
|
||||
DIST ding-1.8.1.tar.gz 6543141 SHA256 5817bad70d9661fc1efc8bad38939bf665818c549a9675e8e041fff487c61232 SHA512 7d1b459d40e26482c3c16a79565cb897a492fa5807f44c5c3ed1022bcf65ba90bec9cb503cc67970742c2beeb34bd653c684e56ef5492f536254bf475d3f70a4 WHIRLPOOL 5562a3e5903ff42c9a678d860a1f6738a9062e28134d573f8bc48d6fd4cdd967b7966bd9458dd83c940451dcc38a20b933c570fa9b6214f5233f48237c410b29
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Tk based dictionary (German-English) (incl. dictionary itself)"
|
||||
HOMEPAGE="http://www-user.tu-chemnitz.de/~fri/ding/"
|
||||
SRC_URI="http://wftp.tu-chemnitz.de/pub/Local/urz/ding/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ~sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-lang/tk-8.3"
|
||||
|
||||
src_install() {
|
||||
dobin ding || die
|
||||
insinto /usr/share/dict
|
||||
doins de-en.txt || die
|
||||
doman ding.1 || die
|
||||
dodoc CHANGES README || die
|
||||
|
||||
doicon ding.png || die
|
||||
domenu ding.desktop || die
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST poppler-0.45.0.tar.xz 1674464 SHA256 96dd1a6024bcdaa4530a3b49687db3d5c24ddfd072ccb37c6de0e42599728798 SHA512 b703bed35da3572801834740bf61d59b6a3ee3b88bc1b3181bde3472264be4f6b89ceacb56179d7093329946abd6ba2501acfaf209d4f543352ff9fd38c47f1b WHIRLPOOL 687b1ba816dbff1b0a69cb05914dd7fb161bfd8c0fa4e26b77bb0ad26e27f7d7d94085a1022716a8d7a7563145f0acead9fccbbd332959d0216b81b27f3632e8
|
||||
DIST poppler-0.49.0.tar.xz 1685860 SHA256 14485f0e1e43dcddf49cfc02c2ccb92910ba3e0e91e06f4bd2642ec00cb3a79f SHA512 f840c28688318693efdf5af70608c72cdfc80399c33dc6f929918775b43b0c36695d8accc50fdce5d7c6bd0503206488d9658291613393e6ead0174bcb29dd79 WHIRLPOOL a3f9b13add6e103b491456abc7571dcdf66a3a1285c4dfe21289468d13b384adc1d99fb9ed8de4cc9150683914cc513666df6d0e218531e01acbd0884979cc9d
|
||||
DIST poppler-0.50.0.tar.xz 1689260 SHA256 c9c93318b789d3933f6e0bad3bc65110280c28eac3f0666284bb9c9a0ab4bc36 SHA512 81e7b69126dbb06195c68e94d4ffc09bd5beab61c3330ab9e3ca42ce3c9717f18909aa0fe05542c291410f3195d1246b339eaa918fc0aff63d42cbced23b8e8e WHIRLPOOL a2df6f527eaba8324ac700c7fcdf65c9830d54548b721ed1136a713f5a9b3c7dc4a32c0dda4f6ef32a0febbe090ceb31a7361d0707a5b5d1043cd6ccba24f7f9
|
||||
DIST poppler-0.51.0.tar.xz 1691504 SHA256 e997c9ad81a8372f2dd03a02b00692b8cc479c220340c8881edaca540f402c1f SHA512 f2e49cc8587396e38ac9125fa662bcb472eb0b9c9e0ce57135d72ad1792d55db858c7d00b8322b52ac3fe0cd97eacd2d570d3e579367c4acf2f04051f723c5c5 WHIRLPOOL 5e625db67411d1a3b9da4fbd78c82cfef03b78dd03854f3d1ab394b2bc0f6afe3f27983ee03d67ab03d28b29f94375332ef03d6c2263750125579f99428fd819
|
||||
|
@ -0,0 +1,143 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils toolchain-funcs xdg-utils
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
|
||||
SLOT="0/9999"
|
||||
else
|
||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0/66" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
||||
fi
|
||||
|
||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||
HOMEPAGE="https://poppler.freedesktop.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
IUSE="cairo cairo-qt cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils"
|
||||
|
||||
REQUIRED_USE="cairo-qt? ( qt4 )"
|
||||
|
||||
# No test data provided
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=media-libs/fontconfig-2.6.0
|
||||
>=media-libs/freetype-2.3.9
|
||||
sys-libs/zlib
|
||||
cairo? (
|
||||
dev-libs/glib:2
|
||||
>=x11-libs/cairo-1.10.0
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.32.1:= )
|
||||
)
|
||||
cairo-qt? ( >=x11-libs/cairo-1.10.0 )
|
||||
curl? ( net-misc/curl )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( media-libs/openjpeg:2= )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
nss? ( >=dev-libs/nss-3.19:0 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
qt4? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtxml:5
|
||||
)
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
cjk? ( >=app-text/poppler-data-0.4.7 )
|
||||
"
|
||||
|
||||
DOCS=(AUTHORS NEWS README README-XPDF TODO)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch"
|
||||
"${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
|
||||
"${FILESDIR}/${PN}-0.28.1-respect-cflags.patch"
|
||||
"${FILESDIR}/${PN}-0.33.0-openjpeg2.patch"
|
||||
"${FILESDIR}/${PN}-0.40-FindQt4.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
# Clang doesn't grok this flag, the configure nicely tests that, but
|
||||
# cmake just uses it, so remove it if we use clang
|
||||
if [[ ${CC} == clang ]] ; then
|
||||
sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
|
||||
fi
|
||||
|
||||
# Enable experimental patchset for subpixel font rendering using cairo
|
||||
# backend for poppler-qt4 from https://github.com/giddie/poppler-qt4-cairo-backend.
|
||||
if use cairo-qt; then
|
||||
ewarn "Enabling unsupported, experimental cairo-qt patchset. Please do not report bugs."
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0001-Cairo-backend-added-to-Qt4-wrapper.patch"
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0002-Setting-default-Qt4-backend-to-Cairo.patch"
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch"
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0004-Enabling-slight-hinting-in-Cairo-Backend.patch"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
xdg_environment_reset
|
||||
local mycmakeargs=(
|
||||
-DBUILD_GTK_TESTS=OFF
|
||||
-DBUILD_QT4_TESTS=OFF
|
||||
-DBUILD_QT5_TESTS=OFF
|
||||
-DBUILD_CPP_TESTS=OFF
|
||||
-DENABLE_SPLASH=ON
|
||||
-DENABLE_ZLIB=ON
|
||||
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
||||
-DENABLE_XPDF_HEADERS=ON
|
||||
-DENABLE_LIBCURL="$(usex curl)"
|
||||
-DENABLE_CPP="$(usex cxx)"
|
||||
-DENABLE_UTILS="$(usex utils)"
|
||||
-DSPLASH_CMYK=OFF
|
||||
-DUSE_FIXEDPOINT=OFF
|
||||
-DUSE_FLOAT=OFF
|
||||
-DWITH_Cairo="$(usex cairo)"
|
||||
-DWITH_GObjectIntrospection="$(usex introspection)"
|
||||
-DWITH_JPEG="$(usex jpeg)"
|
||||
-DWITH_NSS3="$(usex nss)"
|
||||
-DWITH_PNG="$(usex png)"
|
||||
-DWITH_Qt4="$(usex qt4)"
|
||||
$(cmake-utils_use_find_package qt5 Qt5Core)
|
||||
-DWITH_TIFF="$(usex tiff)"
|
||||
)
|
||||
if use jpeg2k; then
|
||||
mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
|
||||
else
|
||||
mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
|
||||
fi
|
||||
if use lcms; then
|
||||
mycmakeargs+=(-DENABLE_CMS=lcms2)
|
||||
else
|
||||
mycmakeargs+=(-DENABLE_CMS=)
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# live version doesn't provide html documentation
|
||||
if use cairo && use doc && [[ ${PV} != 9999 ]]; then
|
||||
# For now install gtk-doc there
|
||||
insinto /usr/share/gtk-doc/html/poppler
|
||||
doins -r "${S}"/glib/reference/html/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,212 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
MY_EXTRAS_VER="20160629-1442Z"
|
||||
SUBSLOT="18"
|
||||
MYSQL_PV_MAJOR="5.6"
|
||||
|
||||
JAVA_PKG_OPT_USE="jdbc"
|
||||
|
||||
inherit toolchain-funcs java-pkg-opt-2 mysql-multilib-r1
|
||||
|
||||
HOMEPAGE="http://mariadb.org/"
|
||||
DESCRIPTION="An enhanced, drop-in replacement for MySQL"
|
||||
|
||||
IUSE="bindist jdbc odbc oqgraph pam sphinx tokudb xml"
|
||||
RESTRICT="!bindist? ( bindist )"
|
||||
|
||||
REQUIRED_USE="server? ( tokudb? ( jemalloc ) ) static? ( !pam ) jdbc? ( extraengine server !static )"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
|
||||
PATCHES=(
|
||||
"${MY_PATCH_DIR}/01050_all_mariadb_mysql_config_cleanup-5.5.41.patch"
|
||||
"${MY_PATCH_DIR}/20006_all_cmake_elib-mariadb-10.0.26.patch"
|
||||
"${MY_PATCH_DIR}/20009_all_mariadb_myodbc_symbol_fix-5.5.38.patch"
|
||||
"${MY_PATCH_DIR}/20018_all_mariadb-10.0.20-without-clientlibs-tools.patch"
|
||||
)
|
||||
COMMON_DEPEND="
|
||||
!bindist? ( >=sys-libs/readline-4.1:0= )
|
||||
server? (
|
||||
extraengine? (
|
||||
odbc? ( dev-db/unixODBC:0= )
|
||||
xml? ( dev-libs/libxml2:2= )
|
||||
)
|
||||
oqgraph? ( >=dev-libs/boost-1.40.0:0= dev-libs/judy:0= )
|
||||
pam? ( virtual/pam:0= )
|
||||
tokudb? ( app-arch/snappy )
|
||||
)
|
||||
>=dev-libs/libpcre-8.35:3=
|
||||
"
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
|
||||
server? ( extraengine? ( jdbc? ( >=virtual/jdk-1.6 ) ) )
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="${RDEPEND} ${COMMON_DEPEND}
|
||||
perl? ( !dev-db/mytop
|
||||
virtual/perl-Getopt-Long
|
||||
dev-perl/TermReadKey
|
||||
virtual/perl-Term-ANSIColor
|
||||
virtual/perl-Time-HiRes )
|
||||
server? ( extraengine? ( jdbc? ( >=virtual/jre-1.6 ) ) )
|
||||
"
|
||||
MULTILIB_WRAPPED_HEADERS+=( /usr/include/mysql/mysql_version.h
|
||||
/usr/include/mysql/private/probes_mysql_nodtrace.h
|
||||
/usr/include/mysql/private/probes_mysql_dtrace.h )
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-opt-2_pkg_setup
|
||||
mysql-multilib-r1_pkg_setup
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
java-pkg-opt-2_pkg_preinst
|
||||
mysql-multilib-r1_pkg_preinst
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
java-pkg-opt-2_src_prepare
|
||||
mysql-multilib-r1_src_prepare
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
# bug 508724 mariadb cannot use ld.gold
|
||||
tc-ld-disable-gold
|
||||
local MYSQL_CMAKE_NATIVE_DEFINES=(
|
||||
-DWITH_JEMALLOC=$(usex jemalloc system)
|
||||
-DWITH_PCRE=system
|
||||
)
|
||||
if use server ; then
|
||||
# Federated{,X} must be treated special otherwise they will not be built as plugins
|
||||
if ! use extraengine ; then
|
||||
MYSQL_CMAKE_NATIVE_DEFINES+=(
|
||||
-DWITHOUT_FEDERATED=1
|
||||
-DWITHOUT_FEDERATEDX=1 )
|
||||
fi
|
||||
|
||||
# Connect with Zip is currently broken and does not compile
|
||||
# Reported upstream https://jira.mariadb.org/browse/MDEV-11809
|
||||
|
||||
MYSQL_CMAKE_NATIVE_DEFINES+=(
|
||||
$(mysql-cmake_use_plugin oqgraph OQGRAPH)
|
||||
$(mysql-cmake_use_plugin sphinx SPHINX)
|
||||
$(mysql-cmake_use_plugin tokudb TOKUDB)
|
||||
$(mysql-cmake_use_plugin pam AUTH_PAM)
|
||||
-DWITHOUT_CASSANDRA=0
|
||||
$(mysql-cmake_use_plugin extraengine SEQUENCE)
|
||||
$(mysql-cmake_use_plugin extraengine SPIDER)
|
||||
$(mysql-cmake_use_plugin extraengine CONNECT)
|
||||
-DCONNECT_WITH_MYSQL=1
|
||||
-DCONNECT_WITH_LIBXML2=$(usex xml)
|
||||
-DCONNECT_WITH_ODBC=$(usex odbc)
|
||||
-DCONNECT_WITH_JDBC=$(usex jdbc)
|
||||
-DWITHOUT_MROONGA=1
|
||||
-DCONNECT_WITH_ZIP=OFF
|
||||
)
|
||||
fi
|
||||
mysql-multilib-r1_src_configure
|
||||
}
|
||||
|
||||
# Official test instructions:
|
||||
# USE='embedded extraengine perl server openssl static-libs' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mariadb-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
multilib_src_test() {
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
einfo "Server tests not available on non-native abi".
|
||||
return 0;
|
||||
fi
|
||||
|
||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
if use server ; then
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
# Enable parallel testing, auto will try to detect number of cores
|
||||
# You may set this by hand.
|
||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
||||
|
||||
# create directories because mysqladmin might run out of order
|
||||
mkdir -p "${T}"/var-tests{,/log}
|
||||
|
||||
# These are failing in MariaDB 10.0 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql,
|
||||
# funcs_1.is_columns_mysql main.bootstrap
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test, main.mysql_client_test_nonblock
|
||||
# main.mysql_client_test_comp:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# archive.mysqlhotcopy_archive main.mysqlhotcopy_myisam
|
||||
# fails due to bad cleanup of previous tests when run in parallel
|
||||
# The tool is deprecated anyway
|
||||
# Bug 532288
|
||||
|
||||
#main.bootstrap \
|
||||
# for t in main.mysql_client_test main.mysql_client_test_nonblock \
|
||||
# main.mysql_client_test_comp \
|
||||
# binlog.binlog_statement_insert_delayed main.information_schema \
|
||||
# main.mysqld--help \
|
||||
# archive.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
|
||||
# funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do
|
||||
# mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
|
||||
# done
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}" || die
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" --reorder
|
||||
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd || die
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST CEGUI-0.6.2-DOCS.tar.gz 18396638 SHA256 f1ea46bd583c486a6c588118573ebde55b06e90b190083e95525820e950ce2c8 SHA512 56ded923f21f18d837d71425e06fe8675a2efa979edde461a9e4e558c213cbb79ff8eeb576211da6ade56526ccdd9644a7a45b3619058615388e3882f96b9fb4 WHIRLPOOL f67c9dba4558c43ec9d14c160f228e974de4364bfe36ebfa9f3fe6bfc290fd5c4f024e954525845cd83645a06d53e6d63776137cbe58c459bcdd0e350d12e9c7
|
||||
DIST CEGUI-0.6.2b.tar.gz 2628081 SHA256 eb77741cd9fcc927a876e8116b98691212e973d2264e2071406423f6ca3e305f SHA512 52ed7e7a97024138af957815a396dda74b650e7c53542d2d48c5eb95335bec270abca3685c49b05078f4338079334df6bfbcec75e9b7eb21ee40bdbff5f57b20 WHIRLPOOL 3fde683a82fb0be33565adb28fbcb4b7001be99f1b3bdb2d3af9abecc5dc7681d633f141cc19f9eb1dc264d0fb0b2084ea604202a22a3e2cc415bdb6b9686161
|
||||
DIST cegui-0.8.4.tar.bz2 17894771 SHA256 b5fcbd548b83045e92c4da413928113be77ebee0117368925e1904b3b957a388 SHA512 493c949426ff2d9b760712b5fe7ed6a427404cd13934c36c7bdf207c0458686bcc74b675e9aeb5d16cd04f0874515503b8d3135ceb71b4d74738f047e4da39c7 WHIRLPOOL 1550a7fe2688c8247c8036e7302b0990b3abf3b16d794cd1d7f38a4af1feb4d373db476d911428e1380b79ff0feba1dedc1abefba17255b46eb6fa4956c39bc4
|
||||
DIST cegui-0.8.7.tar.bz2 18114465 SHA256 b351e8957716d9c170612c13559e49530ef911ae4bac2feeb2dacd70b430e518 SHA512 271ff2a1e19f46c7d40cbc210bc665666e45b56cd0efea460db4d08df134d929337846eaf923db1b915597965aab27ad39512d6567cc63ef883555cbff542e56 WHIRLPOOL 55b7dda2ccbb344b504d81681e900979bc31c261875741d2ff483bf3822eea3d484ac6d99526c9e6d718d0376f8a4bd3cd08d7dd38e030880b1d275bb325959b
|
||||
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# TODO: multiple ABI?
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit eutils flag-o-matic cmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="Crazy Eddie's GUI System"
|
||||
HOMEPAGE="http://www.cegui.org.uk/"
|
||||
SRC_URI="mirror://sourceforge/crayzedsgui/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 -ppc x86"
|
||||
IUSE="bidi debug devil doc freeimage expat irrlicht lua ogre opengl pcre python static-libs tinyxml truetype xerces-c +xml zip"
|
||||
REQUIRED_USE="|| ( expat tinyxml xerces-c xml )
|
||||
${PYTHON_REQUIRED_USE}" # bug 362223
|
||||
|
||||
# gles broken
|
||||
# gles? ( media-libs/mesa[gles1] )
|
||||
# directfb broken
|
||||
# directfb? ( dev-libs/DirectFB )
|
||||
RDEPEND="
|
||||
virtual/libiconv
|
||||
bidi? ( dev-libs/fribidi )
|
||||
devil? ( media-libs/devil )
|
||||
expat? ( dev-libs/expat )
|
||||
freeimage? ( media-libs/freeimage )
|
||||
irrlicht? ( dev-games/irrlicht )
|
||||
lua? (
|
||||
dev-lang/lua:0
|
||||
dev-lua/toluapp
|
||||
)
|
||||
ogre? ( >=dev-games/ogre-1.7 )
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
media-libs/glew:=
|
||||
)
|
||||
pcre? ( dev-libs/libpcre )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/boost:=[python,${PYTHON_USEDEP}]
|
||||
)
|
||||
tinyxml? ( dev-libs/tinyxml )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
xerces-c? ( dev-libs/xerces-c )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
zip? ( sys-libs/zlib[minizip] )"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
opengl? ( media-libs/glm )"
|
||||
|
||||
src_configure() {
|
||||
# http://www.cegui.org.uk/mantis/view.php?id=991
|
||||
append-ldflags $(no-as-needed)
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCEGUI_BUILD_IMAGECODEC_CORONA=OFF
|
||||
$(cmake-utils_use devil CEGUI_BUILD_IMAGECODEC_DEVIL)
|
||||
$(cmake-utils_use freeimage CEGUI_BUILD_IMAGECODEC_FREEIMAGE)
|
||||
-DCEGUI_BUILD_IMAGECODEC_PVR=OFF
|
||||
-DCEGUI_BUILD_IMAGECODEC_SILLY=OFF
|
||||
-DCEGUI_BUILD_IMAGECODEC_STB=ON
|
||||
-DCEGUI_BUILD_IMAGECODEC_TGA=ON
|
||||
$(cmake-utils_use lua CEGUI_BUILD_LUA_GENERATOR)
|
||||
$(cmake-utils_use lua CEGUI_BUILD_LUA_MODULE)
|
||||
$(cmake-utils_use python CEGUI_BUILD_PYTHON_MODULES)
|
||||
-DCEGUI_BUILD_RENDERER_DIRECTFB=OFF
|
||||
$(cmake-utils_use irrlicht CEGUI_BUILD_RENDERER_IRRLICHT)
|
||||
-DCEGUI_BUILD_RENDERER_NULL=ON
|
||||
$(cmake-utils_use ogre CEGUI_BUILD_RENDERER_OGRE)
|
||||
$(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL)
|
||||
$(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL3)
|
||||
-DCEGUI_BUILD_RENDERER_OPENGLES=OFF
|
||||
$(cmake-utils_use static-libs CEGUI_BUILD_STATIC_CONFIGURATION)
|
||||
-DCEGUI_BUILD_TESTS=OFF
|
||||
$(cmake-utils_use expat CEGUI_BUILD_XMLPARSER_EXPAT)
|
||||
$(cmake-utils_use xml CEGUI_BUILD_XMLPARSER_LIBXML2)
|
||||
-DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF
|
||||
$(cmake-utils_use tinyxml CEGUI_BUILD_XMLPARSER_TINYXML)
|
||||
$(cmake-utils_use xerces-c CEGUI_BUILD_XMLPARSER_XERCES)
|
||||
$(cmake-utils_use truetype CEGUI_HAS_FREETYPE)
|
||||
$(cmake-utils_use zip CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER)
|
||||
$(cmake-utils_use pcre CEGUI_HAS_PCRE_REGEX)
|
||||
-DCEGUI_SAMPLES_ENABLED=OFF
|
||||
$(cmake-utils_use bidi CEGUI_USE_FRIBIDI)
|
||||
-DCEGUI_USE_MINIBIDI=OFF
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use doc && emake -C "${BUILD_DIR}" html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
use doc && dohtml "${BUILD_DIR}"/doc/doxygen/html/*
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST wxcore-0.13.2.3.tar.gz 539251 SHA256 e02aab9b0d1084c723fafaf759576cc7a4800d3112d0f99923e88f75cec8ee57 SHA512 9745819c35a1ff4a287a992e146126df1170cacc8702d4a647ec9a4a3ead0518f015a6068858e035b4e30c165c3b84bc5251cd27c554d3271a6fab02f107d264 WHIRLPOOL 13e68eeb85b23104349990d03bdde6010f0ee8c046ec350cf4921fb723fc7f7c0d99b5565e0c40241601b8a3d9561a239dabd305c8096480e858fbd0e4ebf015
|
||||
DIST wxcore-0.92.2.0.tar.gz 400116 SHA256 76128916c5d5df9cea9fc1e1b3b56d800d87874a431e98fca4427cb41cfe283e SHA512 e1339ea30a699e22a9fc2f12b6ddcd773911e4d611f834886952bde4d76205c448e1702bab3148f4c370eec1cabeac06655b4cf3cbbfe24e2ea08a628906880a WHIRLPOOL 60e37835d5d13d116659bed858b1320ba5006fd119cc9f045ca02b0d381de73146f52fb7308ee95a752a0aa4921532258468d69ed054c7ece67f0e8bf63a9f3b
|
||||
|
@ -1,42 +0,0 @@
|
||||
--- wxcore-0.13.2.3-orig/src/haskell/Graphics/UI/WXCore/Events.hs 2012-09-30 19:56:52.000000000 +1000
|
||||
+++ wxcore-0.13.2.3/src/haskell/Graphics/UI/WXCore/Events.hs 2013-01-13 10:08:50.415293002 +1100
|
||||
@@ -1,4 +1,4 @@
|
||||
-{-# LANGUAGE ForeignFunctionInterface #-}
|
||||
+{-# LANGUAGE CPP, ForeignFunctionInterface #-}
|
||||
-----------------------------------------------------------------------------------------
|
||||
{-| Module : Events
|
||||
Copyright : (c) Daan Leijen 2003
|
||||
@@ -241,6 +241,9 @@
|
||||
import Foreign.Marshal.Alloc
|
||||
import Foreign.Marshal.Array
|
||||
import Foreign.Marshal.Utils
|
||||
+#if (__GLASGOW_HASKELL__>=705)
|
||||
+import Foreign.C.Types(CInt(..))
|
||||
+#endif
|
||||
|
||||
import Data.Char ( chr ) -- used in stc
|
||||
import Data.Maybe ( fromMaybe, fromJust )
|
||||
--- wxcore-0.13.2.3-orig/src/haskell/Graphics/UI/WXCore/WxcTypes.hs 2012-09-30 19:56:52.000000000 +1000
|
||||
+++ wxcore-0.13.2.3/src/haskell/Graphics/UI/WXCore/WxcTypes.hs 2013-01-13 10:08:50.420293137 +1100
|
||||
@@ -142,7 +142,12 @@
|
||||
|
||||
import Data.Int
|
||||
import Data.Word
|
||||
+#ifdef MIN_VERSION_base(4,5,0)
|
||||
+import Debug.Trace (traceIO)
|
||||
+#else
|
||||
import Debug.Trace (putTraceMsg)
|
||||
+#define traceIO putTraceMsg
|
||||
+#endif
|
||||
|
||||
import Graphics.UI.WXCore.WxcObject
|
||||
import Graphics.UI.WXCore.WxcClassTypes
|
||||
@@ -853,7 +858,7 @@
|
||||
withCharResult io
|
||||
= do x <- io
|
||||
if (x < 0)
|
||||
- then do putTraceMsg ("Recieved negative unicode: " ++ (show x))
|
||||
+ then do traceIO ("Recieved negative unicode: " ++ (show x))
|
||||
return '\n'
|
||||
else return (fromCWchar x)
|
||||
|
@ -1,6 +0,0 @@
|
||||
diff --git a/wxcore.cabal b/wxcore.cabal
|
||||
index 886c77d..e1bfeb6 100644
|
||||
--- a/wxcore.cabal
|
||||
+++ b/wxcore.cabal
|
||||
@@ -173,0 +174 @@ library
|
||||
+ extra-libraries: stdc++
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
WX_GTK_VER="2.8"
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit base haskell-cabal wxwidgets
|
||||
|
||||
DESCRIPTION="wxHaskell core"
|
||||
HOMEPAGE="http://haskell.org/haskellwiki/WxHaskell"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="wxWinLL-3.1"
|
||||
SLOT="${WX_GTK_VER}/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-haskell/parsec:=[profile?]
|
||||
dev-haskell/stm:=[profile?]
|
||||
>dev-haskell/wxdirect-0.12.1.2:${WX_GTK_VER}=[profile?]
|
||||
<dev-haskell/wxdirect-0.90:${WX_GTK_VER}=[profile?]
|
||||
>=dev-lang/ghc-6.12.1:=
|
||||
x11-libs/wxGTK:${WX_GTK_VER}=[X,gstreamer,opengl]"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.2"
|
||||
|
||||
PATCHES=("${FILESDIR}/${PN}"-0.13.2.3-ghc-7.6.patch
|
||||
"${FILESDIR}/${PN}"-0.13.2.3-stdcpp.patch)
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
sed -e "s@wxdirect@wxdirect-${WX_GTK_VER}@g" \
|
||||
-i "${S}/Setup.hs" \
|
||||
|| die "Could not change Setup.hs for wxdirect slot ${WX_GTK_VER}"
|
||||
cabal_chdeps \
|
||||
'array >= 0.2 && < 0.5' 'array >= 0.2'
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
--flag=splitbase
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST wxdirect-0.13.1.3.tar.gz 32748 SHA256 2691991b319db1a57b9ee8895f78474ac4cbb947040e250d86975a30e8cf7411 SHA512 fc0ae01937c524105edcc39a8cbb3b0ac45d2d8b34346f59ada30171ed78f1a3e0be4010ffe63cd37ee0cc38c1b08e31628281efaa3ccc847a19f9518ecbe08c WHIRLPOOL db92071df161d4f25ddbd0af24153a21c3eb51877496f5fa60cf655bf71fc7c19f06f70fd3919798fcde50052205d04932307d8eaec65bb47dc9e561cb8ba02f
|
||||
DIST wxdirect-0.90.1.1.tar.gz 29893 SHA256 282968b7fc52ed67f1efaf357cac05ffad58b7f80128062549801b6309ed7045 SHA512 f32b62db9c88a282531081a1a1e40757335306306af28a38ed364d28ca532418aca18e44ec6b5a789e02f5dddb455c9a7eb7f7e7c24b8a155df80628dcd2cfa1 WHIRLPOOL fbcb554ddaa6d96d3b87dc2c1423802409a8d763c59981446c7005b56455f275854587c49eb56da371ff350eacd1d76059f8b850844ffa05ef177b8338d10f12
|
||||
DIST wxdirect-0.92.2.0.tar.gz 30544 SHA256 2303834061c544f7e32ffd7aaf91e644ee89e178487689f109f06625f0eefd3b SHA512 f112fc0a62031bc9eb8e6caa2bd70f0b9fa66a81380785165a07bdffa6fa2b44652ffb9f1165c3b8ab7db8a31273650e36e98c8eb72f7cec5873ecb75f58dc21 WHIRLPOOL 86f23acadec66f9fcb658c0e9faac33800396c11819c5950285f72e23233603866fad0e00c376636c69d3f7a16ee91ff327cf715f33edfa0628f20d8837ba883
|
||||
|
@ -1,25 +0,0 @@
|
||||
diff --git a/src/HaskellNames.hs b/src/HaskellNames.hs
|
||||
index 6e1910e..bd61137 100644
|
||||
--- a/src/HaskellNames.hs
|
||||
+++ b/src/HaskellNames.hs
|
||||
@@ -147,6 +147,7 @@ isBuiltin name
|
||||
{-----------------------------------------------------------------------------------------
|
||||
Haddock prologue
|
||||
-----------------------------------------------------------------------------------------}
|
||||
+getPrologue :: [Char] -> [Char] -> [Char] -> [String] -> IO [String]
|
||||
getPrologue moduleName content contains inputFiles
|
||||
= do time <- getCurrentTime
|
||||
return (prologue time)
|
||||
diff --git a/wxdirect.cabal b/wxdirect.cabal
|
||||
index 83be4af..02b56af 100644
|
||||
--- a/wxdirect.cabal
|
||||
+++ b/wxdirect.cabal
|
||||
@@ -61,7 +61,7 @@ executable wxdirect-2.8
|
||||
|
||||
build-depends:
|
||||
parsec >= 2.1.0 && < 4,
|
||||
- time >= 1.0 && < 1.5,
|
||||
+ time >= 1.0,
|
||||
strict >= 0.3 && < 1.0,
|
||||
directory >= 1.0 && < 2.0
|
||||
|
@ -1,54 +0,0 @@
|
||||
--- wxdirect-0.13.1.3-orig/src/ParseEiffel.hs 2012-09-30 20:02:15.000000000 +1000
|
||||
+++ wxdirect-0.13.1.3/src/ParseEiffel.hs 2014-03-23 14:15:23.118131281 +1100
|
||||
@@ -1,3 +1,4 @@
|
||||
+{-# LANGUAGE ScopedTypeVariables #-}
|
||||
-----------------------------------------------------------------------------------------
|
||||
{-| Module : ParseEiffel
|
||||
Copyright : (c) Daan Leijen 2003
|
||||
@@ -12,6 +13,8 @@
|
||||
-----------------------------------------------------------------------------------------
|
||||
module ParseEiffel( parseEiffel ) where
|
||||
|
||||
+import Prelude hiding ( catch )
|
||||
+import Control.Exception ( catch, IOException )
|
||||
import Data.Char( digitToInt )
|
||||
import Text.ParserCombinators.Parsec
|
||||
import qualified Text.ParserCombinators.Parsec.Token as P
|
||||
--- wxdirect-0.13.1.3-orig/src/Classes.hs 2012-09-30 20:02:15.000000000 +1000
|
||||
+++ wxdirect-0.13.1.3/src/Classes.hs 2014-03-23 14:15:23.118131281 +1100
|
||||
@@ -1,3 +1,4 @@
|
||||
+{-# LANGUAGE CPP #-}
|
||||
-----------------------------------------------------------------------------------------
|
||||
{-| Module : Classes
|
||||
Copyright : (c) Daan Leijen 2003
|
||||
@@ -28,7 +29,9 @@
|
||||
import Data.List( sort, sortBy )
|
||||
import qualified Data.Set as Set
|
||||
import qualified Data.Map as Map
|
||||
+#if !MIN_VERSION_base(4,6,0)
|
||||
import Prelude hiding ( catch )
|
||||
+#endif
|
||||
import HaskellNames( haskellTypeName, isBuiltin )
|
||||
import Types
|
||||
|
||||
--- wxdirect-0.13.1.3-orig/src/CompileClasses.hs 2012-09-30 20:02:15.000000000 +1000
|
||||
+++ wxdirect-0.13.1.3/src/CompileClasses.hs 2014-03-23 14:15:23.119131301 +1100
|
||||
@@ -89,7 +89,7 @@
|
||||
(exportsStatic,exportsClassClasses,classCount) = exportDefs decls exportsClass []
|
||||
|
||||
methodCount = length decls
|
||||
- ghcoptions = [ "{-# LANGUAGE ForeignFunctionInterface #-}"]
|
||||
+ ghcoptions = [ "{-# LANGUAGE CPP, ForeignFunctionInterface #-}"]
|
||||
|
||||
export = concat [ ["module " ++ moduleRoot ++ moduleName
|
||||
, " ( -- * Global" ]
|
||||
@@ -104,6 +104,9 @@
|
||||
, "import System.IO.Unsafe( unsafePerformIO )"
|
||||
, "import " ++ moduleRoot ++ "WxcTypes"
|
||||
, "import " ++ moduleRoot ++ moduleClassTypesName
|
||||
+ , "#if (__GLASGOW_HASKELL__>=705)"
|
||||
+ , "import Foreign.C.Types(CDouble(..), CInt(..), CWchar(..))"
|
||||
+ , "#endif"
|
||||
, ""
|
||||
]
|
||||
]
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.3.6.9999
|
||||
|
||||
WX_GTK_VER="2.8"
|
||||
|
||||
CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
|
||||
inherit base haskell-cabal
|
||||
|
||||
DESCRIPTION="helper tool for building wxHaskell"
|
||||
HOMEPAGE="http://haskell.org/haskellwiki/WxHaskell"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="${WX_GTK_VER}/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/parsec-2.1.0:=[profile?] <dev-haskell/parsec-4:=[profile?]
|
||||
>=dev-haskell/strict-0.3:=[profile?] <dev-haskell/strict-1.0:=[profile?]
|
||||
>=dev-lang/ghc-6.12.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8.0.2
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.13.1.3-ghc-7.6.patch
|
||||
"${FILESDIR}"/${PN}-0.13.1.3-ghc-7.10.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
sed -e "s@executable wxdirect@executable wxdirect-${WX_GTK_VER}@" \
|
||||
-i "${S}/${PN}.cabal" \
|
||||
|| die "Could not change ${PN}.cabal for wxdirect slot ${WX_GTK_VER}"
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib
|
||||
|
||||
DESCRIPTION="Elixir programming language"
|
||||
HOMEPAGE="http://elixir-lang.org"
|
||||
SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/erlang-18[ssl]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
emake Q=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="/usr" install
|
||||
dodoc README.md CHANGELOG.md CODE_OF_CONDUCT.md
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
commit 501e05bb1b8974fc8b6c9eee86c87c367e87a211
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Tue Aug 30 12:10:47 2016 +0100
|
||||
|
||||
GhcMake: limit Capability count to CPU count in parallel mode
|
||||
|
||||
In Trac #9221 one of problems using high --jobs=<N>
|
||||
is amount of mutator (or GC) threads we crate.
|
||||
|
||||
We use userspace spinning-and-yielding (see ACQUIRE_SPIN_LOCK)
|
||||
to acess work stealing queues. In case of
|
||||
N-worker-threads > N-CPUs fraction of time when
|
||||
thread holding spin lock gets descheduled by kernel
|
||||
increases. That causes other threads to waste CPU time
|
||||
before giving up CPU.
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
|
||||
|
||||
Test Plan:
|
||||
ghc --make -j8 and -j80 have comparable sys time
|
||||
on a 8-core system.
|
||||
|
||||
Reviewers: austin, gintas, bgamari, simonmar
|
||||
|
||||
Reviewed By: bgamari, simonmar
|
||||
|
||||
Subscribers: thomie
|
||||
|
||||
Differential Revision: https://phabricator.haskell.org/D2482
|
||||
|
||||
GHC Trac Issues: #9221
|
||||
|
||||
diff --git a/compiler/main/GhcMake.hs b/compiler/main/GhcMake.hs
|
||||
index 9dc43cd..905df63 100644
|
||||
--- a/compiler/main/GhcMake.hs
|
||||
+++ b/compiler/main/GhcMake.hs
|
||||
@@ -761,7 +761,12 @@ parUpsweep n_jobs old_hpt stable_mods cleanup sccs = do
|
||||
|
||||
let updNumCapabilities = liftIO $ do
|
||||
n_capabilities <- getNumCapabilities
|
||||
- unless (n_capabilities /= 1) $ setNumCapabilities n_jobs
|
||||
+ n_cpus <- getNumProcessors
|
||||
+ -- Setting number of capabilities more than
|
||||
+ -- CPU count usually leads to high userspace
|
||||
+ -- lock contention. Trac #9221
|
||||
+ let n_caps = min n_jobs n_cpus
|
||||
+ unless (n_capabilities /= 1) $ setNumCapabilities n_caps
|
||||
return n_capabilities
|
||||
-- Reset the number of capabilities once the upsweep ends.
|
||||
let resetNumCapabilities orig_n = liftIO $ setNumCapabilities orig_n
|
@ -0,0 +1,65 @@
|
||||
commit bdfc5375f219d6def81effda4e57cb56d01fc917
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Tue Aug 30 12:10:54 2016 +0100
|
||||
|
||||
rts: enable parallel GC scan of large (32M+) allocation area
|
||||
|
||||
Parallel GC does not scan large allocation area (-A)
|
||||
effectively as it does not do work stealing from nursery
|
||||
by default.
|
||||
|
||||
That leads to large imbalance when only one of threads
|
||||
overflows allocation area: most of GC threads finish
|
||||
quickly (as there is not much to collect) and sit idle
|
||||
waiting while single GC thread finishes scan of single
|
||||
allocation area for that thread.
|
||||
|
||||
The patch enables work stealing for (equivalent of -qb0)
|
||||
allocation area of -A32M or higher.
|
||||
|
||||
Tested on a highlighting-kate package from Trac #9221
|
||||
|
||||
On 8-core machine the difference is around 5% faster
|
||||
of wall-clock time. On 24-core VM the speedup is 20%.
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
|
||||
|
||||
Test Plan: measured wall time and GC parallelism on highlighting-kate build
|
||||
|
||||
Reviewers: austin, bgamari, erikd, simonmar
|
||||
|
||||
Reviewed By: bgamari, simonmar
|
||||
|
||||
Subscribers: thomie
|
||||
|
||||
Differential Revision: https://phabricator.haskell.org/D2483
|
||||
|
||||
GHC Trac Issues: #9221
|
||||
|
||||
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
|
||||
index fda33f0..7a719b9 100644
|
||||
--- a/rts/RtsFlags.c
|
||||
+++ b/rts/RtsFlags.c
|
||||
@@ -237,1 +237,1 @@ void initRtsFlagsDefaults(void)
|
||||
- RtsFlags.ParFlags.parGcLoadBalancingGen = 1;
|
||||
+ RtsFlags.ParFlags.parGcLoadBalancingGen = ~0u; /* auto, based on -A */
|
||||
@@ -1398,2 +1390,19 @@ static void normaliseRtsOpts (void)
|
||||
}
|
||||
|
||||
+#ifdef THREADED_RTS
|
||||
+ if (RtsFlags.ParFlags.parGcLoadBalancingGen == ~0u) {
|
||||
+ StgWord alloc_area_bytes
|
||||
+ = RtsFlags.GcFlags.minAllocAreaSize * BLOCK_SIZE;
|
||||
+
|
||||
+ // If allocation area is larger that CPU cache
|
||||
+ // we can finish scanning quicker doing work-stealing
|
||||
+ // scan. Trac #9221
|
||||
+ // 32M looks big enough not to fit into L2 cache
|
||||
+ // of popular modern CPUs.
|
||||
+ if (alloc_area_bytes >= 32 * 1024 * 1024) {
|
||||
+ RtsFlags.ParFlags.parGcLoadBalancingGen = 0;
|
||||
+ } else {
|
||||
+ RtsFlags.ParFlags.parGcLoadBalancingGen = 1;
|
||||
+ }
|
||||
+ }
|
||||
+#endif
|
@ -0,0 +1,127 @@
|
||||
commit 5efbf0d243984444cf352ad6f0d147e226c64498
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Thu Sep 1 17:34:58 2016 +0100
|
||||
|
||||
restore -fmax-worker-args handling (Trac #11565)
|
||||
|
||||
maxWorkerArgs handling was accidentally lost 3 years ago
|
||||
in a major update of demand analysis
|
||||
commit 0831a12ea2fc73c33652eeec1adc79fa19700578
|
||||
|
||||
Old regression is noticeable as:
|
||||
- code bloat (requires stack reshuffling)
|
||||
- compilation slowdown (more code to optimise/generate)
|
||||
- and increased heap usage (DynFlags unboxing/reboxing?)
|
||||
|
||||
On a simple compile benchmark this change causes heap
|
||||
allocation drop from 70G don to 67G (ghc perf build).
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
|
||||
|
||||
Reviewers: simonpj, ezyang, goldfire, austin, bgamari
|
||||
|
||||
Reviewed By: simonpj, ezyang
|
||||
|
||||
Subscribers: thomie
|
||||
|
||||
Differential Revision: https://phabricator.haskell.org/D2503
|
||||
|
||||
GHC Trac Issues: #11565
|
||||
|
||||
diff --git a/compiler/specialise/SpecConstr.hs b/compiler/specialise/SpecConstr.hs
|
||||
index 10d5614..7166f57 100644
|
||||
--- a/compiler/specialise/SpecConstr.hs
|
||||
+++ b/compiler/specialise/SpecConstr.hs
|
||||
@@ -29,7 +29,7 @@ import CoreFVs ( exprsFreeVarsList )
|
||||
import CoreMonad
|
||||
import Literal ( litIsLifted )
|
||||
import HscTypes ( ModGuts(..) )
|
||||
-import WwLib ( mkWorkerArgs )
|
||||
+import WwLib ( isWorkerSmallEnough, mkWorkerArgs )
|
||||
import DataCon
|
||||
import Coercion hiding( substCo )
|
||||
import Rules
|
||||
@@ -1533,10 +1533,14 @@ specialise env bind_calls (RI { ri_fn = fn, ri_lam_bndrs = arg_bndrs
|
||||
|
||||
| Just all_calls <- lookupVarEnv bind_calls fn
|
||||
= -- pprTrace "specialise entry {" (ppr fn <+> ppr (length all_calls)) $
|
||||
- do { (boring_call, pats) <- callsToPats env specs arg_occs all_calls
|
||||
-
|
||||
+ do { (boring_call, all_pats) <- callsToPats env specs arg_occs all_calls
|
||||
-- Bale out if too many specialisations
|
||||
- ; let n_pats = length pats
|
||||
+ ; let pats = filter (is_small_enough . fst) all_pats
|
||||
+ is_small_enough vars = isWorkerSmallEnough (sc_dflags env) vars
|
||||
+ -- We are about to construct w/w pair in 'spec_one'.
|
||||
+ -- Omit specialisation leading to high arity workers.
|
||||
+ -- See Note [Limit w/w arity]
|
||||
+ n_pats = length pats
|
||||
spec_count' = n_pats + spec_count
|
||||
; case sc_count env of
|
||||
Just max | not (sc_force env) && spec_count' > max
|
||||
diff --git a/compiler/stranal/WwLib.hs b/compiler/stranal/WwLib.hs
|
||||
index 09bc204..d9460d9 100644
|
||||
--- a/compiler/stranal/WwLib.hs
|
||||
+++ b/compiler/stranal/WwLib.hs
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
module WwLib ( mkWwBodies, mkWWstr, mkWorkerArgs
|
||||
, deepSplitProductType_maybe, findTypeShape
|
||||
+ , isWorkerSmallEnough
|
||||
) where
|
||||
|
||||
#include "HsVersions.h"
|
||||
@@ -144,7 +145,8 @@ mkWwBodies dflags fam_envs fun_ty demands res_info one_shots
|
||||
wrapper_body = wrap_fn_args . wrap_fn_cpr . wrap_fn_str . applyToVars work_call_args . Var
|
||||
worker_body = mkLams work_lam_args. work_fn_str . work_fn_cpr . work_fn_args
|
||||
|
||||
- ; if useful1 && not (only_one_void_argument) || useful2
|
||||
+ ; if isWorkerSmallEnough dflags work_args
|
||||
+ && (useful1 && not only_one_void_argument || useful2)
|
||||
then return (Just (worker_args_dmds, wrapper_body, worker_body))
|
||||
else return Nothing
|
||||
}
|
||||
@@ -165,6 +167,12 @@ mkWwBodies dflags fam_envs fun_ty demands res_info one_shots
|
||||
| otherwise
|
||||
= False
|
||||
|
||||
+-- See Note [Limit w/w arity]
|
||||
+isWorkerSmallEnough :: DynFlags -> [Var] -> Bool
|
||||
+isWorkerSmallEnough dflags vars = count isId vars <= maxWorkerArgs dflags
|
||||
+ -- We count only Free variables (isId) to skip Type, Kind
|
||||
+ -- variables which have no runtime representation.
|
||||
+
|
||||
{-
|
||||
Note [Always do CPR w/w]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -178,6 +186,30 @@ a disaster, because then the enclosing function might say it has the CPR
|
||||
property, but now doesn't and there a cascade of disaster. A good example
|
||||
is Trac #5920.
|
||||
|
||||
+Note [Limit w/w arity]
|
||||
+~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+Guard against high worker arity as it generates a lot of stack traffic.
|
||||
+A simplified example is Trac #11565#comment:6
|
||||
+
|
||||
+Current strategy is very simple: don't perform w/w transformation at all
|
||||
+if the result produces a wrapper with arity higher than -fmax-worker-args=.
|
||||
+
|
||||
+It is a bit all or nothing, consider
|
||||
+
|
||||
+ f (x,y) (a,b,c,d,e ... , z) = rhs
|
||||
+
|
||||
+Currently we will remove all w/w ness entirely. But actually we could
|
||||
+w/w on the (x,y) pair... it's the huge product that is the problem.
|
||||
+
|
||||
+Could we instead refrain from w/w on an arg-by-arg basis? Yes, that'd
|
||||
+solve f. But we can get a lot of args from deeply-nested products:
|
||||
+
|
||||
+ g (a, (b, (c, (d, ...)))) = rhs
|
||||
+
|
||||
+This is harder to spot on an arg-by-arg basis. Previously mkWwStr was
|
||||
+given some "fuel" saying how many arguments it could add; when we ran
|
||||
+out of fuel it would stop w/wing.
|
||||
+Still not very clever because it had a left-right bias.
|
||||
|
||||
************************************************************************
|
||||
* *
|
@ -0,0 +1,34 @@
|
||||
commit b0cf3ab7a69b878a4335d21a347b56e4b0ca0b7b
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Mon Apr 14 19:06:24 2014 +0300
|
||||
|
||||
compiler/cmm/PprC.hs: constify local string literals
|
||||
|
||||
Consider one-line module
|
||||
module B (v) where v = "hello"
|
||||
in -fvia-C mode it generates code like
|
||||
static char gibberish_str[] = "hello";
|
||||
|
||||
It uselessly eats data section (precious resource on ia64!).
|
||||
The patch switches genrator to emit:
|
||||
static const char gibberish_str[] = "hello";
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
|
||||
diff --git a/compiler/cmm/PprC.hs b/compiler/cmm/PprC.hs
|
||||
index 2398981..fdb578d 100644
|
||||
--- a/compiler/cmm/PprC.hs
|
||||
+++ b/compiler/cmm/PprC.hs
|
||||
@@ -112,6 +112,12 @@ pprTop (CmmProc infos clbl _ graph) =
|
||||
|
||||
-- We only handle (a) arrays of word-sized things and (b) strings.
|
||||
|
||||
+pprTop (CmmData (Section ReadOnlyData _) (Statics lbl [CmmString str])) =
|
||||
+ hcat [
|
||||
+ pprLocalness lbl, ptext (sLit "const char "), ppr lbl,
|
||||
+ ptext (sLit "[] = "), pprStringInCStyle str, semi
|
||||
+ ]
|
||||
+
|
||||
pprTop (CmmData _section (Statics lbl [CmmString str])) =
|
||||
hcat [
|
||||
pprLocalness lbl, ptext (sLit "char "), ppr lbl,
|
@ -0,0 +1,12 @@
|
||||
diff --git a/docs/users_guide/profiling.rst b/docs/users_guide/profiling.rst
|
||||
index 4d0bb3a..f980f72 100644
|
||||
--- a/docs/users_guide/profiling.rst
|
||||
+++ b/docs/users_guide/profiling.rst
|
||||
@@ -435,7 +435,2 @@ To generate a heap profile from your program:
|
||||
|
||||
-For example, here is a heap profile produced for the ``sphere`` program
|
||||
-from GHC's ``nofib`` benchmark suite,
|
||||
-
|
||||
-.. image:: images/prof_scc.*
|
||||
-
|
||||
You might also want to take a look at
|
@ -0,0 +1,653 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# to make make a crosscompiler use crossdev and symlink ghc tree into
|
||||
# cross overlay. result would look like 'cross-sparc-unknown-linux-gnu/ghc'
|
||||
#
|
||||
# 'CTARGET' definition and 'is_crosscompile' are taken from 'toolchain.eclass'
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} = ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
|
||||
inherit autotools bash-completion-r1 eutils flag-o-matic ghc-package
|
||||
inherit multilib pax-utils toolchain-funcs versionator prefix
|
||||
|
||||
DESCRIPTION="The Glasgow Haskell Compiler"
|
||||
HOMEPAGE="http://www.haskell.org/ghc/"
|
||||
|
||||
# we don't have any binaries yet
|
||||
arch_binaries=""
|
||||
|
||||
# sorted!
|
||||
#arch_binaries="$arch_binaries alpha? ( http://code.haskell.org/~slyfox/ghc-alpha/ghc-bin-${PV}-alpha.tbz2 )"
|
||||
#arch_binaries="$arch_binaries arm? ( http://code.haskell.org/~slyfox/ghc-arm/ghc-bin-${PV}-arm.tbz2 )"
|
||||
#arch_binaries="$arch_binaries amd64? ( http://code.haskell.org/~slyfox/ghc-amd64/ghc-bin-${PV}-amd64.tbz2 )"
|
||||
#arch_binaries="$arch_binaries ia64? ( http://code.haskell.org/~slyfox/ghc-ia64/ghc-bin-${PV}-ia64-fixed-fiw.tbz2 )"
|
||||
#arch_binaries="$arch_binaries ppc? ( http://code.haskell.org/~slyfox/ghc-ppc/ghc-bin-${PV}-ppc.tbz2 )"
|
||||
#arch_binaries="$arch_binaries ppc64? ( http://code.haskell.org/~slyfox/ghc-ppc64/ghc-bin-${PV}-ppc64.tbz2 )"
|
||||
#arch_binaries="$arch_binaries sparc? ( http://code.haskell.org/~slyfox/ghc-sparc/ghc-bin-${PV}-sparc.tbz2 )"
|
||||
#arch_binaries="$arch_binaries x86? ( http://code.haskell.org/~slyfox/ghc-x86/ghc-bin-${PV}-x86.tbz2 )"
|
||||
|
||||
# various ports:
|
||||
#arch_binaries="$arch_binaries x86-fbsd? ( http://code.haskell.org/~slyfox/ghc-x86-fbsd/ghc-bin-${PV}-x86-fbsd.tbz2 )"
|
||||
|
||||
# 0 - yet
|
||||
yet_binary() {
|
||||
case "${ARCH}" in
|
||||
#alpha) return 0 ;;
|
||||
#arm)
|
||||
# ewarn "ARM binary is built on armv5tel-eabi toolchain. Use with caution."
|
||||
# return 0
|
||||
#;;
|
||||
#amd64) return 0 ;;
|
||||
#ia64) return 0 ;;
|
||||
#ppc) return 0 ;;
|
||||
#ppc64) return 0 ;;
|
||||
#sparc) return 0 ;;
|
||||
#x86) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
GHC_PV=${PV}
|
||||
#GHC_PV=8.0.1.20161213 # uncomment only for -rc ebuilds
|
||||
GHC_P=${PN}-${GHC_PV} # using ${P} is almost never correct
|
||||
|
||||
SRC_URI="!binary? ( http://downloads.haskell.org/~ghc/${PV/_rc/-rc}/${GHC_P}-src.tar.xz )"
|
||||
S="${WORKDIR}"/${GHC_P}
|
||||
|
||||
[[ -n $arch_binaries ]] && SRC_URI+=" !ghcbootstrap? ( $arch_binaries )"
|
||||
|
||||
BUMP_LIBRARIES=(
|
||||
# "hackage-name hackage-version"
|
||||
)
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
#KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc ghcbootstrap ghcmakebinary +gmp +profile"
|
||||
IUSE+=" binary"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/perl-5.6.1
|
||||
dev-libs/gmp:0=
|
||||
sys-libs/ncurses:=[unicode]
|
||||
!ghcmakebinary? ( virtual/libffi:= )
|
||||
"
|
||||
# gentoo binaries are built against ncurses-6
|
||||
RDEPEND+="
|
||||
binary? (
|
||||
|| (
|
||||
sys-libs/ncurses:0/6
|
||||
sys-libs/ncurses:5/6
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-text/docbook-xml-dtd:4.2
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-python/sphinx
|
||||
>=dev-libs/libxslt-1.1.2 )
|
||||
"
|
||||
|
||||
PDEPEND="!ghcbootstrap? ( =app-admin/haskell-updater-1.2* )"
|
||||
|
||||
REQUIRED_USE="?? ( ghcbootstrap binary )"
|
||||
|
||||
# haskell libraries built with cabal in configure mode, #515354
|
||||
QA_CONFIGURE_OPTIONS+=" --with-compiler --with-gcc"
|
||||
|
||||
is_crosscompile() {
|
||||
[[ ${CHOST} != ${CTARGET} ]]
|
||||
}
|
||||
|
||||
# returns tool prefix for crosscompiler.
|
||||
# Example:
|
||||
# CTARGET=armv7a-unknown-linux-gnueabi
|
||||
# CHOST=x86_64-pc-linux-gnu
|
||||
# "armv7a-unknown-linux-gnueabi-"
|
||||
# CTARGET=${CHOST}
|
||||
# ""
|
||||
# Used in tools and library prefix:
|
||||
# "${ED}"/usr/bin/$(cross)haddock
|
||||
# "${ED}/usr/$(get_libdir)/$(cross)${GHC_P}/package.conf.d"
|
||||
|
||||
cross() {
|
||||
if is_crosscompile; then
|
||||
echo "${CTARGET}-"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
}
|
||||
|
||||
append-ghc-cflags() {
|
||||
local persistent compile assemble link
|
||||
local flag ghcflag
|
||||
|
||||
for flag in $*; do
|
||||
case ${flag} in
|
||||
persistent) persistent="yes";;
|
||||
compile) compile="yes";;
|
||||
assemble) assemble="yes";;
|
||||
link) link="yes";;
|
||||
*)
|
||||
[[ ${compile} ]] && ghcflag="-optc${flag}" CFLAGS+=" ${flag}" && GHC_FLAGS+=" ${ghcflag}" &&
|
||||
[[ ${persistent} ]] && GHC_PERSISTENT_FLAGS+=" ${ghcflag}"
|
||||
[[ ${assemble} ]] && ghcflag="-opta${flag}" CFLAGS+=" ${flag}" && GHC_FLAGS+=" ${ghcflag}" &&
|
||||
[[ ${persistent} ]] && GHC_PERSISTENT_FLAGS+=" ${ghcflag}"
|
||||
[[ ${link} ]] && ghcflag="-optl${flag}" LDFLAGS+=" ${flag}" && GHC_FLAGS+=" ${ghcflag}" &&
|
||||
[[ ${persistent} ]] && GHC_PERSISTENT_FLAGS+=" ${ghcflag}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
# $1 - lib name (under libraries/)
|
||||
# $2 - lib version
|
||||
# example: bump_lib "transformers" "0.4.2.0"
|
||||
bump_lib() {
|
||||
local pn=$1 pv=$2
|
||||
local p=${pn}-${pv}
|
||||
local f
|
||||
|
||||
einfo "Bumping ${pn} up to ${pv}"
|
||||
|
||||
for f in ghc.mk GNUmakefile; do
|
||||
mv libraries/"${pn}"/$f "${WORKDIR}"/"${p}"/$f || die
|
||||
done
|
||||
mv libraries/"${pn}" "${WORKDIR}"/"${pn}".old || die
|
||||
mv "${WORKDIR}"/"${p}" libraries/"${pn}" || die
|
||||
}
|
||||
|
||||
update_SRC_URI() {
|
||||
local p pn pv
|
||||
for p in "${BUMP_LIBRARIES[@]}"; do
|
||||
set -- $p
|
||||
pn=$1 pv=$2
|
||||
|
||||
SRC_URI+=" mirror://hackage/package/${pn}/${pn}-${pv}.tar.gz"
|
||||
done
|
||||
}
|
||||
|
||||
update_SRC_URI
|
||||
|
||||
bump_libs() {
|
||||
local p pn pv
|
||||
for p in "${BUMP_LIBRARIES[@]}"; do
|
||||
set -- $p
|
||||
pn=$1 pv=$2
|
||||
|
||||
bump_lib "${pn}" "${pv}"
|
||||
done
|
||||
}
|
||||
|
||||
ghc_setup_cflags() {
|
||||
if is_crosscompile; then
|
||||
export CFLAGS=${GHC_CFLAGS-"-O2 -pipe"}
|
||||
export LDFLAGS=${GHC_LDFLAGS-"-Wl,-O1"}
|
||||
einfo "Crosscompiling mode:"
|
||||
einfo " CHOST: ${CHOST}"
|
||||
einfo " CTARGET: ${CTARGET}"
|
||||
einfo " CFLAGS: ${CFLAGS}"
|
||||
einfo " LDFLAGS: ${LDFLAGS}"
|
||||
einfo " prefix: $(cross)"
|
||||
return
|
||||
fi
|
||||
# We need to be very careful with the CFLAGS we ask ghc to pass through to
|
||||
# gcc. There are plenty of flags which will make gcc produce output that
|
||||
# breaks ghc in various ways. The main ones we want to pass through are
|
||||
# -mcpu / -march flags. These are important for arches like alpha & sparc.
|
||||
# We also use these CFLAGS for building the C parts of ghc, ie the rts.
|
||||
strip-flags
|
||||
strip-unsupported-flags
|
||||
|
||||
# Cmm can't parse line numbers #482086
|
||||
replace-flags -ggdb[3-9] -ggdb2
|
||||
|
||||
GHC_FLAGS=""
|
||||
GHC_PERSISTENT_FLAGS=""
|
||||
for flag in ${CFLAGS}; do
|
||||
case ${flag} in
|
||||
|
||||
# Ignore extra optimisation (ghc passes -O to gcc anyway)
|
||||
# -O2 and above break on too many systems
|
||||
-O*) ;;
|
||||
|
||||
# Arch and ABI flags are what we're really after
|
||||
-m*) append-ghc-cflags compile assemble ${flag};;
|
||||
|
||||
# Sometimes it's handy to see backtrace of RTS
|
||||
# to get an idea what happens there
|
||||
-g*) append-ghc-cflags compile ${flag};;
|
||||
|
||||
# Ignore all other flags, including all -f* flags
|
||||
esac
|
||||
done
|
||||
|
||||
for flag in ${LDFLAGS}; do
|
||||
append-ghc-cflags link ${flag}
|
||||
done
|
||||
|
||||
# hardened-gcc needs to be disabled, because the mangler doesn't accept
|
||||
# its output.
|
||||
gcc-specs-pie && append-ghc-cflags persistent compile link -nopie
|
||||
gcc-specs-ssp && append-ghc-cflags persistent compile -fno-stack-protector
|
||||
|
||||
# prevent from failind building unregisterised ghc:
|
||||
# http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg171602.html
|
||||
use ppc64 && append-ghc-cflags persistent compile -mminimal-toc
|
||||
}
|
||||
|
||||
# substitutes string $1 to $2 in files $3 $4 ...
|
||||
relocate_path() {
|
||||
local from=$1
|
||||
local to=$2
|
||||
shift 2
|
||||
local file=
|
||||
for file in "$@"
|
||||
do
|
||||
sed -i -e "s|$from|$to|g" \
|
||||
"$file" || die "path relocation failed for '$file'"
|
||||
done
|
||||
}
|
||||
|
||||
# changes hardcoded ghc paths and updates package index
|
||||
# $1 - new absolute root path
|
||||
relocate_ghc() {
|
||||
local to=$1
|
||||
|
||||
# libdir for prebuilt binary and for current system may mismatch
|
||||
# It does for prefix installation for example: bug #476998
|
||||
local bin_ghc_prefix=${WORKDIR}/usr
|
||||
local bin_libpath=$(echo "${bin_ghc_prefix}"/lib*)
|
||||
local bin_libdir=${bin_libpath#${bin_ghc_prefix}/}
|
||||
|
||||
# backup original script to use it later after relocation
|
||||
local gp_back="${T}/ghc-pkg-${GHC_PV}-orig"
|
||||
cp "${WORKDIR}/usr/bin/$(cross)ghc-pkg-${GHC_PV}" "$gp_back" || die "unable to backup ghc-pkg wrapper"
|
||||
|
||||
if [[ ${bin_libdir} != $(get_libdir) ]]; then
|
||||
einfo "Relocating '${bin_libdir}' to '$(get_libdir)' (bug #476998)"
|
||||
# moving the dir itself is not strictly needed
|
||||
# but then USE=binary would result in installing
|
||||
# in '${bin_libdir}'
|
||||
mv "${bin_ghc_prefix}/${bin_libdir}" "${bin_ghc_prefix}/$(get_libdir)" || die
|
||||
|
||||
relocate_path "/usr/${bin_libdir}" "/usr/$(get_libdir)" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghc-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghci-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghc-pkg-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)hsc2hs" \
|
||||
"${WORKDIR}/usr/bin/$(cross)runghc-${GHC_PV}" \
|
||||
"$gp_back" \
|
||||
"${WORKDIR}/usr/$(get_libdir)/$(cross)${GHC_P}/package.conf.d/"*
|
||||
fi
|
||||
|
||||
# Relocate from /usr to ${EPREFIX}/usr
|
||||
relocate_path "/usr" "${to}/usr" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghc-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghci-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghc-pkg-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)hsc2hs" \
|
||||
"${WORKDIR}/usr/bin/$(cross)runghc-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/$(get_libdir)/$(cross)${GHC_P}/package.conf.d/"*
|
||||
|
||||
# this one we will use to regenerate cache
|
||||
# so it should point to current tree location
|
||||
relocate_path "/usr" "${WORKDIR}/usr" "$gp_back"
|
||||
|
||||
if use prefix; then
|
||||
# and insert LD_LIBRARY_PATH entry to EPREFIX dir tree
|
||||
# TODO: add the same for darwin's CHOST and it's DYLD_
|
||||
local new_ldpath='LD_LIBRARY_PATH="'${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir)'${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"\nexport LD_LIBRARY_PATH'
|
||||
sed -i -e '2i'"$new_ldpath" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghc-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghci-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghc-pkg-${GHC_PV}" \
|
||||
"${WORKDIR}/usr/bin/$(cross)hsc2hs" \
|
||||
"${WORKDIR}/usr/bin/$(cross)runghc-${GHC_PV}" \
|
||||
"$gp_back" \
|
||||
|| die "Adding LD_LIBRARY_PATH for wrappers failed"
|
||||
hprefixify "${bin_libpath}"/${PN}*/settings
|
||||
fi
|
||||
|
||||
# regenerate the binary package cache
|
||||
"$gp_back" recache || die "failed to update cache after relocation"
|
||||
rm "$gp_back"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# quiet portage about prebuilt binaries
|
||||
use binary && QA_PREBUILT="*"
|
||||
|
||||
[[ ${MERGE_TYPE} == binary ]] && return
|
||||
|
||||
if use ghcbootstrap; then
|
||||
ewarn "You requested ghc bootstrapping, this is usually only used"
|
||||
ewarn "by Gentoo developers to make binary .tbz2 packages."
|
||||
|
||||
[[ -z $(type -P ghc) ]] && \
|
||||
die "Could not find a ghc to bootstrap with."
|
||||
else
|
||||
if ! yet_binary; then
|
||||
eerror "Please try emerging with USE=ghcbootstrap and report build"
|
||||
eerror "sucess or failure to the haskell team (haskell@gentoo.org)"
|
||||
die "No binary available for '${ARCH}' arch yet, USE=ghcbootstrap"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# Create the ${S} dir if we're using the binary version
|
||||
use binary && mkdir "${S}"
|
||||
|
||||
# the Solaris and Darwin binaries from ghc (maeder) need to be
|
||||
# unpacked separately, so prevent them from being unpacked
|
||||
local ONLYA=${A}
|
||||
case ${CHOST} in
|
||||
*-darwin* | *-solaris*) ONLYA=${GHC_P}-src.tar.bz2 ;;
|
||||
esac
|
||||
unpack ${ONLYA}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
ghc_setup_cflags
|
||||
|
||||
if ! use ghcbootstrap && [[ ${CHOST} != *-darwin* && ${CHOST} != *-solaris* ]]; then
|
||||
# Modify the wrapper script from the binary tarball to use GHC_PERSISTENT_FLAGS.
|
||||
# See bug #313635.
|
||||
sed -i -e "s|\"\$topdir\"|\"\$topdir\" ${GHC_PERSISTENT_FLAGS}|" \
|
||||
"${WORKDIR}/usr/bin/$(cross)ghc-${GHC_PV}"
|
||||
|
||||
# allow hardened users use vanilla binary to bootstrap ghc
|
||||
# ghci uses mmap with rwx protection at it implements dynamic
|
||||
# linking on it's own (bug #299709)
|
||||
pax-mark -m "${WORKDIR}/usr/$(get_libdir)/$(cross)${GHC_P}/bin/ghc"
|
||||
fi
|
||||
|
||||
if use binary; then
|
||||
if use prefix; then
|
||||
relocate_ghc "${EPREFIX}"
|
||||
fi
|
||||
|
||||
# Move unpacked files to the expected place
|
||||
mv "${WORKDIR}/usr" "${S}"
|
||||
else
|
||||
if ! use ghcbootstrap; then
|
||||
case ${CHOST} in
|
||||
*-darwin* | *-solaris*)
|
||||
# UPDATE ME for ghc-7
|
||||
mkdir "${WORKDIR}"/ghc-bin-installer || die
|
||||
pushd "${WORKDIR}"/ghc-bin-installer > /dev/null || die
|
||||
use sparc-solaris && unpack ghc-6.10.4-sparc-sun-solaris2.tar.bz2
|
||||
use x86-solaris && unpack ghc-7.0.3-i386-unknown-solaris2.tar.bz2
|
||||
use x86-macos && unpack ghc-7.4.1-i386-apple-darwin.tar.bz2
|
||||
use x64-macos && unpack ghc-7.4.1-x86_64-apple-darwin.tar.bz2
|
||||
popd > /dev/null
|
||||
|
||||
pushd "${WORKDIR}"/ghc-bin-installer/ghc-[67].?*.? > /dev/null || die
|
||||
# fix the binaries so they run, on Solaris we need an
|
||||
# LD_LIBRARY_PATH which has our prefix libdirs, on
|
||||
# Darwin we need to replace the frameworks with our libs
|
||||
# from the prefix fix before installation, because some
|
||||
# of the tools are actually used during configure/make
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
export LD_LIBRARY_PATH="${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir):${LD_LIBRARY_PATH}"
|
||||
elif [[ ${CHOST} == *-darwin* ]] ; then
|
||||
local readline_framework=GNUreadline.framework/GNUreadline
|
||||
local gmp_framework=/opt/local/lib/libgmp.10.dylib
|
||||
local ncurses_file=/opt/local/lib/libncurses.5.dylib
|
||||
for binary in $(scanmacho -BRE MH_EXECUTE -F '%F' .) ; do
|
||||
install_name_tool -change \
|
||||
${readline_framework} \
|
||||
"${EPREFIX}"/lib/libreadline.dylib \
|
||||
${binary} || die
|
||||
install_name_tool -change \
|
||||
${gmp_framework} \
|
||||
"${EPREFIX}"/usr/lib/libgmp.dylib \
|
||||
${binary} || die
|
||||
install_name_tool -change \
|
||||
${ncurses_file} \
|
||||
"${EPREFIX}"/usr/lib/libncurses.dylib \
|
||||
${binary} || die
|
||||
done
|
||||
# we don't do frameworks!
|
||||
sed -i \
|
||||
-e 's/\(frameworks = \)\["GMP"\]/\1[]/g' \
|
||||
-e 's/\(extraLibraries = \)\["m"\]/\1["m","gmp"]/g' \
|
||||
rts/package.conf.in || die
|
||||
fi
|
||||
|
||||
# it is autoconf, but we really don't want to give it too
|
||||
# much arguments, in fact we do the make in-place anyway
|
||||
./configure --prefix="${WORKDIR}"/usr || die
|
||||
make install || die
|
||||
popd > /dev/null
|
||||
;;
|
||||
*)
|
||||
relocate_ghc "${WORKDIR}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
sed -i -e "s|\"\$topdir\"|\"\$topdir\" ${GHC_PERSISTENT_FLAGS}|" \
|
||||
"${S}/ghc/ghc.wrapper"
|
||||
|
||||
cd "${S}" # otherwise epatch will break
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-7.0.4-CHOST-prefix.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-8.0.1_rc1-cgen-constify.patch
|
||||
epatch "${FILESDIR}"/${PN}-7.8.3-prim-lm.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-8.0.1-limit-jN.patch
|
||||
epatch "${FILESDIR}"/${PN}-8.0.1-ww-args-limit.patch
|
||||
epatch "${FILESDIR}"/${PN}-8.0.1-par-g0-on-A32.patch
|
||||
epatch "${FILESDIR}"/${PN}-8.0.2_rc2-old-sphinx.patch
|
||||
|
||||
if use prefix; then
|
||||
# Make configure find docbook-xsl-stylesheets from Prefix
|
||||
sed -e '/^FP_DIR_DOCBOOK_XSL/s:\[.*\]:['"${EPREFIX}"'/usr/share/sgml/docbook/xsl-stylesheets/]:' \
|
||||
-i utils/haddock/doc/configure.ac || die
|
||||
fi
|
||||
|
||||
bump_libs
|
||||
|
||||
# as we have changed the build system
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if ! use binary; then
|
||||
# initialize build.mk
|
||||
echo '# Gentoo changes' > mk/build.mk
|
||||
|
||||
# Put docs into the right place, ie /usr/share/doc/ghc-${GHC_PV}
|
||||
echo "docdir = ${EPREFIX}/usr/share/doc/${P}" >> mk/build.mk
|
||||
echo "htmldir = ${EPREFIX}/usr/share/doc/${P}" >> mk/build.mk
|
||||
|
||||
# We also need to use the GHC_FLAGS flags when building ghc itself
|
||||
echo "SRC_HC_OPTS+=${HCFLAGS} ${GHC_FLAGS}" >> mk/build.mk
|
||||
echo "SRC_CC_OPTS+=${CFLAGS}" >> mk/build.mk
|
||||
echo "SRC_LD_OPTS+=${LDFLAGS}" >> mk/build.mk
|
||||
# Speed up initial Cabal bootstrap
|
||||
echo "utils/ghc-cabal_dist_EXTRA_HC_OPTS+=$(ghc-make-args)" >> mk/build.mk
|
||||
|
||||
# We can't depend on haddock except when bootstrapping when we
|
||||
# must build docs and include them into the binary .tbz2 package
|
||||
# app-text/dblatex is not in portage, can not build PDF or PS
|
||||
echo "BUILD_SPHINX_PDF = NO" >> mk/build.mk
|
||||
echo "BUILD_SPHINX_HTML = $(usex doc YES NO)" >> mk/build.mk
|
||||
|
||||
# this controls presence on 'xhtml' and 'haddock' in final install
|
||||
echo "HADDOCK_DOCS = YES" >> mk/build.mk
|
||||
|
||||
# allows overriding build flavours for libraries:
|
||||
# v - vanilla (static libs)
|
||||
# p - profiled
|
||||
# dyn - shared libraries
|
||||
# example: GHC_LIBRARY_WAYS="v dyn"
|
||||
if [[ -n ${GHC_LIBRARY_WAYS} ]]; then
|
||||
echo "GhcLibWays=${GHC_LIBRARY_WAYS}" >> mk/build.mk
|
||||
fi
|
||||
echo "BUILD_PROF_LIBS = $(usex profile YES NO)" >> mk/build.mk
|
||||
|
||||
# Get ghc from the unpacked binary .tbz2
|
||||
# except when bootstrapping we just pick ghc up off the path
|
||||
if ! use ghcbootstrap; then
|
||||
export PATH="${WORKDIR}/usr/bin:${PATH}"
|
||||
fi
|
||||
|
||||
echo "INTEGER_LIBRARY = $(usex gmp integer-gmp integer-simple)" >> mk/build.mk
|
||||
|
||||
# don't strip anything. Very useful when stage2 SIGSEGVs on you
|
||||
echo "STRIP_CMD = :" >> mk/build.mk
|
||||
|
||||
local econf_args=()
|
||||
|
||||
# GHC embeds 'gcc' it was built by and uses it later.
|
||||
# Don't allow things like ccache or versioned binary slip.
|
||||
# We use stable thing across gcc upgrades.
|
||||
is_crosscompile || econf_args+=(--with-gcc=${CHOST}-gcc)
|
||||
|
||||
if use ghcmakebinary; then
|
||||
# When building booting libary we are trying to
|
||||
# bundle or restrict most of external depends
|
||||
# with unstable ABI:
|
||||
# - embed libffi (default GHC behaviour)
|
||||
# - disable ncurses support for ghci (via haskeline)
|
||||
# https://bugs.gentoo.org/557478
|
||||
# - disable ncurses support for ghc-pkg
|
||||
echo "libraries/haskeline_CONFIGURE_OPTS += --flag=-terminfo" >> mk/build.mk
|
||||
echo "utils/ghc-pkg_HC_OPTS += -DBOOTSTRAPPING" >> mk/build.mk
|
||||
else
|
||||
econf_args+=(--with-system-libffi)
|
||||
econf_args+=(--with-ffi-includes=$(pkg-config libffi --cflags-only-I | sed -e 's@^-I@@'))
|
||||
fi
|
||||
|
||||
elog "Final mk/build.mk:"
|
||||
cat mk/build.mk || die
|
||||
|
||||
econf ${econf_args[@]} --enable-bootstrap-with-devel-snapshot
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
GHC_PV="$(grep 'S\[\"PACKAGE_VERSION\"\]' config.status | sed -e 's@^.*=\"\(.*\)\"@\1@')"
|
||||
GHC_P=${PN}-${GHC_PV}
|
||||
fi
|
||||
fi # ! use binary
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
# 1. build/pax-mark compiler binary first
|
||||
emake ghc/stage2/build/tmp/ghc-stage2
|
||||
pax-mark -m ghc/stage2/build/tmp/ghc-stage2
|
||||
# 2. build/pax-mark haddock using ghc-stage2
|
||||
emake utils/haddock/dist/build/tmp/haddock
|
||||
pax-mark -m utils/haddock/dist/build/tmp/haddock
|
||||
# 3. and then all the rest
|
||||
emake all
|
||||
fi # ! use binary
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use binary; then
|
||||
use prefix && mkdir -p "${ED}"
|
||||
mv "${S}/usr" "${ED}"
|
||||
else
|
||||
|
||||
emake install DESTDIR="${D}"
|
||||
dodoc "distrib/README" "ANNOUNCE" "LICENSE" "VERSION"
|
||||
|
||||
# rename ghc-shipped files to avoid collision
|
||||
# of external packages. Motivating example:
|
||||
# user had installed:
|
||||
# dev-lang/ghc-7.8.4-r0 (with transformers-0.3.0.0)
|
||||
# dev-haskell/transformers-0.4.2.0
|
||||
# then user tried to update to
|
||||
# dev-lang/ghc-7.8.4-r1 (with transformers-0.4.2.0)
|
||||
# this will lead to single .conf file collision.
|
||||
local shipped_conf renamed_conf
|
||||
local package_confdir="${ED}/usr/$(get_libdir)/$(cross)${GHC_P}/package.conf.d"
|
||||
for shipped_conf in "${package_confdir}"/*.conf; do
|
||||
# rename 'pkg-ver-id.conf' to 'pkg-ver-id-gentoo-${PF}.conf'
|
||||
renamed_conf=${shipped_conf%.conf}-gentoo-${PF}.conf
|
||||
mv "${shipped_conf}" "${renamed_conf}" || die
|
||||
done
|
||||
|
||||
# remove link, but leave 'haddock-${GHC_P}'
|
||||
rm -f "${ED}"/usr/bin/$(cross)haddock
|
||||
|
||||
if [[ ! -f "${S}/VERSION" ]]; then
|
||||
echo "${GHC_PV}" > "${S}/VERSION" \
|
||||
|| die "Could not create file ${S}/VERSION"
|
||||
fi
|
||||
if ! is_crosscompile; then
|
||||
newbashcomp "${FILESDIR}"/ghc-bash-completion ghc-pkg
|
||||
newbashcomp utils/completion/ghc.bash ghc
|
||||
fi
|
||||
fi
|
||||
|
||||
# path to the package.cache
|
||||
local package_confdir="${ED}/usr/$(get_libdir)/$(cross)${GHC_P}/package.conf.d"
|
||||
PKGCACHE="${package_confdir}"/package.cache
|
||||
# copy the package.conf.d, including timestamp, save it so we can help
|
||||
# users that have a broken package.conf.d
|
||||
cp -pR "${package_confdir}"{,.initial} || die "failed to backup intial package.conf.d"
|
||||
|
||||
# copy the package.conf, including timestamp, save it so we later can put it
|
||||
# back before uninstalling, or when upgrading.
|
||||
cp -p "${PKGCACHE}"{,.shipped} \
|
||||
|| die "failed to copy package.conf.d/package.cache"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# have we got an earlier version of ghc installed?
|
||||
if has_version "<${CATEGORY}/${PF}"; then
|
||||
haskell_updater_warn="1"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ghc-reregister
|
||||
|
||||
# path to the package.cache
|
||||
PKGCACHE="${EROOT}/usr/$(get_libdir)/$(cross)${GHC_P}/package.conf.d/package.cache"
|
||||
|
||||
# give the cache a new timestamp, it must be as recent as
|
||||
# the package.conf.d directory.
|
||||
touch "${PKGCACHE}"
|
||||
|
||||
if [[ "${haskell_updater_warn}" == "1" ]]; then
|
||||
ewarn
|
||||
ewarn "\e[1;31m************************************************************************\e[0m"
|
||||
ewarn
|
||||
ewarn "You have just upgraded from an older version of GHC."
|
||||
ewarn "You may have to run"
|
||||
ewarn " 'haskell-updater'"
|
||||
ewarn "to rebuild all ghc-based Haskell libraries."
|
||||
ewarn
|
||||
ewarn "\e[1;31m************************************************************************\e[0m"
|
||||
ewarn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
PKGCACHE="${EROOT}/usr/$(get_libdir)/$(cross)${GHC_P}/package.conf.d/package.cache"
|
||||
rm -rf "${PKGCACHE}"
|
||||
|
||||
cp -p "${PKGCACHE}"{.shipped,}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
ghc-package_pkg_postrm
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools multilib
|
||||
|
||||
MY_P="${P/mini-xml/mxml}"
|
||||
|
||||
DESCRIPTION="Small XML parsing library to read XML and XML-like data files"
|
||||
HOMEPAGE="http://www.minixml.org/"
|
||||
SRC_URI="http://www.msweet.org/files/project3/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Mini-XML"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~hppa ppc ~ppc64 x86"
|
||||
IUSE="threads static-libs"
|
||||
|
||||
DEPEND="virtual/pkgconfig"
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
sed -e "s:755 -s:755:" \
|
||||
-e "/^TARGETS/s: testmxml::" \
|
||||
-e 's:$(DSO) $(DSOFLAGS) -o libmxml.so.1.5 $(LIBOBJS):$(DSO) $(DSOFLAGS) $(LDFLAGS) -o libmxml.so.1.5 $(LIBOBJS):' \
|
||||
-i Makefile.in || die "sed failed"
|
||||
sed -i -e 's:OPTIM="-Os -g":OPTIM="":' configure.in || die "sed failed"
|
||||
rm configure
|
||||
# eautoreconf
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-shared \
|
||||
--libdir="/usr/$(get_libdir)" \
|
||||
--with-docdir="/usr/share/doc/${PF}/html" \
|
||||
$(use_enable threads)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake libmxml.so.1.5 mxmldoc doc/mxml.man
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DSTROOT="${D}" install
|
||||
|
||||
if ! use static-libs; then
|
||||
rm "${ED}"/usr/$(get_libdir)/libmxml.a || die
|
||||
fi
|
||||
|
||||
dodoc ANNOUNCEMENT CHANGES README
|
||||
rm "${D}/usr/share/doc/${PF}/html/"{CHANGES,COPYING,README} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake testmxml
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools
|
||||
|
||||
MY_P="${P/mini-xml/mxml}"
|
||||
|
||||
DESCRIPTION="Small XML parsing library to read XML and XML-like data files"
|
||||
HOMEPAGE="http://www.minixml.org/"
|
||||
SRC_URI="http://www.msweet.org/files/project3/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Mini-XML"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="threads static-libs"
|
||||
|
||||
DEPEND="virtual/pkgconfig"
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e "s:755 -s:755:" \
|
||||
-e "/^TARGETS/s: testmxml::" \
|
||||
-e 's:$(DSO) $(DSOFLAGS) -o libmxml.so.1.5 $(LIBOBJS):$(DSO) $(DSOFLAGS) $(LDFLAGS) -o libmxml.so.1.5 $(LIBOBJS):' \
|
||||
-i Makefile.in || die
|
||||
sed -i -e 's:OPTIM="-Os -g":OPTIM="":' configure.in || die
|
||||
rm configure || die
|
||||
mv configure.{in,ac} || die
|
||||
#eautoreconf
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-shared \
|
||||
--libdir="/usr/$(get_libdir)" \
|
||||
--with-docdir="/usr/share/doc/${PF}/html" \
|
||||
$(use_enable threads)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake libmxml.so.1.5 mxmldoc doc/mxml.man
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DSTROOT="${ED}" install
|
||||
|
||||
if ! use static-libs; then
|
||||
rm "${ED}"/usr/$(get_libdir)/libmxml.a || die
|
||||
fi
|
||||
|
||||
dodoc ANNOUNCEMENT CHANGES README
|
||||
rm "${ED}/usr/share/doc/${PF}/html/"{CHANGES,COPYING,README} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake testmxml
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST flask-bootstrap-3.3.6.0.tar.gz 489779 SHA256 b7e215fbd570940a5a29fa08d41ee5958b616947f39f93cbd9d0ae3e5ed6d56a SHA512 4cf08a6fd75185fdf5c89783cf8610d74835bf9dc07bd83b36819147bd40cf0e10d20f563a5fc5b8e799e2b87f1e80ad896c76930ca1bc72f74a94818ac708c8 WHIRLPOOL 2963b38b7f076e5289e75ff439eb9facf3b025a548b907cd4a8166c833f164aa6b631a4ffbcad95b0d90c384bb0ccb95523f7c244334232a6d8ce6f43fb94266
|
||||
DIST flask-bootstrap-3.3.7.0.tar.gz 490438 SHA256 c526afd60c8d56391d2a728706470aa5f789ea6bc739c01613973652b1932f78 SHA512 0c7950d633d88f2e71eab444760229efde324b5169bc774215db4a5cd816d4b8eee8b5d55a68921330b2018d4ae57aafefa6e66cefa0ee822260103cf42143e6 WHIRLPOOL 698d5aee5c188349d6f00a0a9acc1fc8bb62b0ef707e4de46d6be1c788d1a578f64319f1936d47d9e2f69825a70ba15743cede32aa08ac8dda37d44ecdbb21e6
|
||||
DIST flask-bootstrap-3.3.7.1.tar.gz 490821 SHA256 b5c188cebd80eabe94f3ea2189429a9070cdbf102d2ae31aa007883d86d25f16 SHA512 010c71f69a95cb51afb449d1b43cb345ad23815ea89b368281f721a2af13cf2c143d67b586114898450d8e7fec413f45ff042cfca3dc1183cb0f50566e39fdc3 WHIRLPOOL a5c2991d391252909027cc67cafd0b4ddc98247c3762969ca7da5de6530911c07bbed73ee6dd836f70632acf5d2b211df0e76b4ed7fb7b759878bb2b663faf5c
|
||||
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="An extension that includes Bootstrap in your project, without boilerplate code"
|
||||
HOMEPAGE="https://pythonhosted.org/Flask-Bootstrap/"
|
||||
# PyPI tarballs don't include tests
|
||||
# https://github.com/mbr/flask-bootstrap/pull/134
|
||||
SRC_URI="https://github.com/mbr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/dominate[${PYTHON_USEDEP}]
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
dev-python/visitor[${PYTHON_USEDEP}]
|
||||
dev-python/wtforms[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/flask-appconfig[${PYTHON_USEDEP}]
|
||||
dev-python/flask-debug[${PYTHON_USEDEP}]
|
||||
dev-python/flask-nav[${PYTHON_USEDEP}]
|
||||
dev-python/flask-wtf[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-runner[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i "s/, 'sphinx.ext.intersphinx'//" docs/conf.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Skip one test which requires network access
|
||||
py.test -k "not test_versions_match" || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST minidb-2.0.1.tar.gz 13848 SHA256 be894fc4e68e3ce9b84b3992f12fbbea5051d3c2a11019b1da463099f24725f5 SHA512 98be264ba669ef08f180c469ca8375540436244228ee4e0c4e4b0511425b909eb4c64dc812a27d0b490af5972e0897538f905590b7d2dd19f6fdd160280a6b4b WHIRLPOOL a209d44f26add8ebae0ad142c94fdfcd4698b80d4f7e491ad16d36a4704f8fa9f3e8649aead9b268cb80055c6ae9f4691e6428979e048907a79caef8165fb864
|
||||
DIST minidb-2.0.2.tar.gz 13928 SHA256 43d59231556e9ed43d88c8c1ffcca30886b4db6436625599eeeb22bb9f74ab2b SHA512 92879d6df61b0f9f72f9fe8f1cf38d559477983c6bba8c88ed02289570daff02f6f8d7010c0a95ffce049ab67be69323c47caefdfe3a8b008038377235ed9a5f WHIRLPOOL 3ec87fc16ca02c817c70917a8bb0b3da5f12aeaf0b54827551b27a1549ad8daad635d88a81a14730c9deea50ca582f201cbef83ca929a14d91b1b722d5865a58
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{3_4,3_5} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simple SQLite-based object store"
|
||||
HOMEPAGE="https://thp.io/2010/minidb/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
python_test() {
|
||||
nosetests test || die "tests failed with ${EPYTHON}"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST cmdparse-2.0.6.gem 53760 SHA256 8a242a17e5147651ef59c2fdd11acd077b18299d24a21d1d8a0f18dfdc91337f SHA512 c4120b049e7d42d65be80649cdd097d17f8a732f090382759351617225f6235438f4338466e5e8c7b5c35675ca43d4930dc39b357263062ba7ae9c61c85f472e WHIRLPOOL 8944ea90f3d57bb2c9c308bc90a46184280b0e4ac563631c5ab931a8a5ea2ae3c42c6569cf775b4930bd1f9a1716d1f58e916a7b901a69733245464975ea9518
|
||||
DIST cmdparse-3.0.1.gem 53760 SHA256 4e38fc892e308ee834e19c6912c98c7059a053a7fe87d6908223422e43ed86c3 SHA512 8724ef46d543ee4677f9245b68b41c776cebfe7464dc63e3d785557883a10f4471810e90831873e3774c2597f55c32fcf48ac7efe6e494a63269ac713a3ce2ee WHIRLPOOL faf7d7e3c53f52ccacea85c108d7cc3c9cd54805057fb91f3dc0a83205cf264dfbdcee27e0e000be75d28b29c566dc8c7eb6928f3b0da7273daf3c88856d377a
|
||||
DIST cmdparse-3.0.2.gem 53760 SHA256 2fde02ee5d523dc27fc7e47cb1e705ec4d89cd277fe3afe97225358eba3ae7dd SHA512 217f6d7459342c9c274d5b5b4ccb279e66d7adfe1ef4f7b8eb9c7fe418b0bd4d66c790601d0ea4dc120b78977b6586e7993e9242818244c0eb1affb68fd8fc0c WHIRLPOOL 70bbfa6d2d786ee16914d09a47d899ed38bd4a26d4a0249f9404dcb8b3c82c40536f10c46db607738bdf715153feba7f0f9a7593887164dd4d218ba8798d98f1
|
||||
DIST cmdparse-3.0.3.gem 53760 SHA256 d3f39788f541cb8099e7342c03d7a2650290d3eab9683c11106fded73f1d8289 SHA512 decea4449653ed459dab25eae2681cb1bcfdd15c3f5c32ee19506d2ab33e7ab89a0ee46dbcc72c16a72eaf3833c847b5b86a0a74a528f520256cf9a8e54af81d WHIRLPOOL 4385a344b24d763770ab18ea8a0012163ad2627542b794ecb43c110c5a59cfd11fdb9abeb82917af4c2f22e6e6626069186218e5efd16691f104547686e99547
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23 ruby24"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
IUSE=""
|
||||
|
||||
DESCRIPTION="Advanced command line parser supporting commands"
|
||||
HOMEPAGE="https://cmdparse.gettalong.org/"
|
||||
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="3"
|
@ -1,4 +1,5 @@
|
||||
DIST rack-1.4.7.gem 204800 SHA256 fa06e970605808834fc7e5a8b9babd4871d7d4c23a4d9d61cb94cbd4c15de5e6 SHA512 26391faec30b12981413eb1f433bfc9be5d124689bc3ae6e32de7d544917f2330fa4f9255c6879632f2edae5a05a4198454b8fe1310bcdb3d2e0b8b336a20359 WHIRLPOOL 3e20db05b829b8dadbcc9dbeff6e883cdf1a8b175bd0af0f9c511ab2dc1111036b5815abe8c342120b74a0727a79b18b5966ec90d073404489b2045b134c527a
|
||||
DIST rack-1.5.5.gem 216576 SHA256 4ae4a74f555008ecc541060515c37baa9e16f131538447a668c0bf52117c43b7 SHA512 7b8ea669c55fa94801aae20612076db702837194bc602c64bec1085836712806a081504b37e4c545bcccf0337e7afc0ad9dca3c1258260fde5f3ec505247056a WHIRLPOOL 3eed7d4befb678d1b89f2dd8f03b119ab23f6155c9fdc55d545a02a23fd718d436ca5ff880bec1a17ee7927183aed1d298cef97c1737cf88a315161a2f4ab37e
|
||||
DIST rack-1.6.4.gem 228864 SHA256 455ec4545a54b40dae9937bc5f61ee0e32134191cc1ef9a7959a19ec4b127a25 SHA512 304a6ae21bfd38008fd7d147f82c44397f3a1d2e689bd01de689aedc6ea0e8784605207fd314bc796974edc5dfcab81636664ea2becb0489302999f99501d41a WHIRLPOOL e99b545a783eaf09bc1c0cf3b4abfafa3341980cfebf1840e25ab25d5801d911da7dfbb232f70df291b7494cc8f8c089fe8a654502aa808850801c02b1e481c6
|
||||
DIST rack-1.6.5.gem 229376 SHA256 ff9d8fc9e89af3f59ba1708d5dec642e3ec421dbeca567bc460b5b8ba0efe48c SHA512 469711832b9a2a4a5816607712a0dfe4c59fae5c4cfa37819f0f2b695f477a56040bb71d48ef7c05bad32cd48c02b8c20402d59f84acd299d5266858ff9bbf04 WHIRLPOOL f2625c8861f822e668d16f8972157107149aad87e5e4205037aba50c9db1a6187538c99cb2e49b4e0a910c8b00eff5359af946a23539d438af679c2843b22817
|
||||
DIST rack-2.0.1.gem 253952 SHA256 61f78033bf5b1cd0221549ecce7c7b73205d4634b0e63c66e1f295dcf3c26b14 SHA512 6ad5060ce56e279eb01029a699e86ee3f3cd6fe15b282f4c38ecc095d8bdf359dee0ff3fbe699bcac0e4765da7758fa5161f3c939da71a77eaf3fe3bc79bea1d WHIRLPOOL 34c292aab8997f1a1d8ee0a8c228ecc0b517996d3c610ff4e07a1d535d065447af949d4f534cc94c746e976c4d5d4e9b1277306758d4a030450f6b68e37e4ea1
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="HISTORY.md KNOWN-ISSUES README.rdoc SPEC"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
|
||||
inherit ruby-fakegem eutils versionator
|
||||
|
||||
DESCRIPTION="A modular Ruby webserver interface"
|
||||
HOMEPAGE="https://rack.github.com/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RUBY_PATCHES=( ${PN}-1.2.1-gentoo.patch ${PN}-1.6-rewindable-ruby23.patch )
|
||||
|
||||
ruby_add_rdepend "virtual/ruby-ssl"
|
||||
|
||||
# The gem has automagic dependencies over mongrel, ruby-openid,
|
||||
# memcache-client, thin, mongrel and camping; not sure if we should
|
||||
# make them dependencies at all.
|
||||
ruby_add_bdepend "test? ( dev-ruby/bacon )"
|
||||
|
||||
# Block against versions in older slots that also try to install a binary.
|
||||
RDEPEND="${RDEPEND} !<dev-ruby/rack-1.4.5-r1:1.4 !<dev-ruby/rack-1.5.2-r4:1.5"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# The build system tries to generate the ChangeLog from git. Create
|
||||
# an empty file to avoid a needless dependency on git.
|
||||
touch ChangeLog || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
# Since the Rakefile calls specrb directly rather than loading it, we
|
||||
# cannot use it to launch the tests or only the currently-selected
|
||||
# RUBY interpreter will be tested.
|
||||
${RUBY} -S bacon -Ilib -w -a \
|
||||
-q -t '^(?!Rack::Handler|Rack::Adapter|Rack::Session::Memcache|Rack::Server)' \
|
||||
|| die "test failed for ${RUBY}"
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST subversion-1.8.16.tar.bz2 6919310 SHA256 f18f6e8309270982135aae54d96958f9ca6b93f8a4e746dd634b1b5b84edb346 SHA512 de8ce1aacd60516fd412f3f8b73e0e43c1a5e91d21d099937d3b02a1620aa947a330ec435d8662d5ad5372e23b1ebec1d8aea7d3ca4dd02eb3421924f6da88b1 WHIRLPOOL 01093eaf39173f4a789120ab8ed1b68dcb9b1bea5e9d396d23831b9a0733be412842a711ffe9b72e9d1bf26e835f47b1395b24f2a1301cc556e2520da6151f3e
|
||||
DIST subversion-1.8.17.tar.bz2 6924354 SHA256 de119538d29a5f2c028984cb54a55a4af3e9c32fa9316331bcbe5719e474a090 SHA512 49de24703bc40ccfd5a5df15215fd037f81c20f3047be5d3321bb2ce53dc7664505460791408a8989ede4a1357a0bdb49fb90a3db6ea2e2893c14a13a15b3ae7 WHIRLPOOL 6b420eb23fbf01ba418d759c275d1f0778c3904c76b78e88d4e82ed948fb44f578f6b171f927e4a4d96cf59eb49b528c9204909951d2cb41ad62804979098f1e
|
||||
DIST subversion-1.9.4.tar.bz2 7911473 SHA256 1267f9e2ab983f260623bee841e6c9cc458bf4bf776238ed5f100983f79e9299 SHA512 fa512d8315dd6a435dcc5a3c2ca3cd7cf932364dd3a82063be868aa3ebcc04caf87cd3ff732d3e3d8aec86f3f58848e2b55987451d4697479bb151d1269db07f WHIRLPOOL 0323e5258be08dfdacb0e450b413bdfd053c0026a290dd45cfe5a03437c727d9ad088baba5a42fdd98ff47af5bdc09a0bbeba70a1e4e4e19a8ebcba7e7b7ddd3
|
||||
DIST subversion-1.9.5.tar.bz2 7904861 SHA256 8a4fc68aff1d18dcb4dd9e460648d24d9e98657fbed496c582929c6b3ce555e5 SHA512 ff7241ffae2506e97f40011242b5d5c6fa665f5463743f9acc52136b59ad84b6db00b60e70c44a9060579db49b818db06da1d1352aaee78e5bfe6ce56f32a2cf WHIRLPOOL 37a124dc2f99bb465b47083de168530f8178305e3208972d56c2c29a93bbf73ded816f742808cf9e7a5d3f13690e48cdd9f800abd85452ad1da4c13d603454f3
|
||||
|
@ -1,509 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
USE_RUBY="ruby22 ruby21 ruby20"
|
||||
DISTUTILS_OPTIONAL=1
|
||||
WANT_AUTOMAKE="none"
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
|
||||
inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common eutils flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
DESCRIPTION="Advanced version control system"
|
||||
HOMEPAGE="http://subversion.apache.org/"
|
||||
SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="Subversion GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kde nls perl python ruby sasl test vim-syntax"
|
||||
|
||||
COMMON_DEPEND=">=dev-db/sqlite-3.7.12
|
||||
>=dev-libs/apr-1.3:1
|
||||
>=dev-libs/apr-util-1.3:1
|
||||
dev-libs/expat
|
||||
sys-apps/file
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
berkdb? ( >=sys-libs/db-4.0.14:= )
|
||||
ctypes-python? ( ${PYTHON_DEPS} )
|
||||
gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/libgnome-keyring )
|
||||
kde? ( sys-apps/dbus dev-qt/qtcore:4 dev-qt/qtdbus:4 dev-qt/qtgui:4 kde-frameworks/kdelibs:4 )
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( ${RUBY_DEPS} )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
http? ( >=net-libs/serf-1.2.1 )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
apache2? ( www-servers/apache[apache2_modules_dav] )
|
||||
java? ( >=virtual/jre-1.5 )
|
||||
kde? ( kde-apps/kwalletd:4 )
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-perl/URI )"
|
||||
# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
!!<sys-apps/sandbox-1.6
|
||||
ctypes-python? ( dev-python/ctypesgen )
|
||||
doc? ( app-doc/doxygen )
|
||||
gnome-keyring? ( virtual/pkgconfig )
|
||||
http? ( virtual/pkgconfig )
|
||||
java? ( >=virtual/jdk-1.5 )
|
||||
kde? ( virtual/pkgconfig )
|
||||
nls? ( sys-devel/gettext )
|
||||
test? ( ${PYTHON_DEPS} )"
|
||||
|
||||
REQUIRED_USE="
|
||||
ctypes-python? ( ${PYTHON_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? (
|
||||
${PYTHON_REQUIRED_USE}
|
||||
!dso
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.5.4-interix.patch
|
||||
"${FILESDIR}"/${PN}-1.5.6-aix-dso.patch
|
||||
"${FILESDIR}"/${PN}-1.8.0-hpux-dso.patch
|
||||
"${FILESDIR}"/${PN}-fix-parallel-build-support-for-perl-bindings.patch
|
||||
"${FILESDIR}"/${PN}-1.8.1-revert_bdb6check.patch
|
||||
"${FILESDIR}"/${PN}-1.8.16-javadoc-nolint.patch
|
||||
)
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb ; then
|
||||
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
|
||||
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
|
||||
| sed 's:.*b::')"
|
||||
einfo
|
||||
if [[ -z "${SVN_BDB_VERSION}" ]] ; then
|
||||
if [[ -n "${apu_bdb_version}" ]] ; then
|
||||
SVN_BDB_VERSION="${apu_bdb_version}"
|
||||
einfo "Matching db version to apr-util"
|
||||
else
|
||||
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
|
||||
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
|
||||
fi
|
||||
fi
|
||||
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
|
||||
einfo
|
||||
|
||||
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
|
||||
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
|
||||
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
|
||||
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
|
||||
eerror "Aborting to avoid possible run-time crashes."
|
||||
die "Berkeley DB version mismatch"
|
||||
fi
|
||||
fi
|
||||
|
||||
depend.apache_pkg_setup
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
if ! use http ; then
|
||||
ewarn "WebDAV support is disabled. You need WebDAV to"
|
||||
ewarn "access repositories through the HTTP protocol."
|
||||
ewarn "Consider enabling \"http\" USE flag"
|
||||
echo -ne "\a"
|
||||
fi
|
||||
|
||||
if use debug ; then
|
||||
append-cppflags -DSVN_DEBUG -DAP_DEBUG
|
||||
fi
|
||||
|
||||
# http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@wandisco.com%3E
|
||||
[[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
|
||||
|
||||
# Allow for custom repository locations.
|
||||
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
|
||||
|
||||
if use ruby ; then
|
||||
local rbslot
|
||||
RB_VER=""
|
||||
for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
|
||||
if has_version dev-lang/ruby:${rbslot} ; then
|
||||
RB_VER="${rbslot/.}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
[[ -z "${RB_VER}" ]] && die "No useable ruby version found"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
fperms +x build/transform_libtool_scripts.sh
|
||||
|
||||
sed -i \
|
||||
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
|
||||
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
|
||||
|
||||
# this bites us in particular on Solaris
|
||||
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
|
||||
die "/bin/sh is not POSIX shell!"
|
||||
|
||||
eautoconf
|
||||
elibtoolize
|
||||
|
||||
sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
|
||||
-i build-outputs.mk || die "sed failed"
|
||||
|
||||
if use python ; then
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C20130614113003.GA19257@tarsus.local2%3E
|
||||
# in short, we don't have gnome-keyring stuff here, patch
|
||||
# borrowed from MacPorts
|
||||
epatch "${FILESDIR}"/${PN}-1.8.5-swig-python-no-gnome-keyring.patch
|
||||
fi
|
||||
|
||||
# XXX: make python_copy_sources accept path
|
||||
S=${S}/subversion/bindings/swig/python python_copy_sources
|
||||
rm -r "${S}"/subversion/bindings/swig/python || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
if use python || use perl || use ruby; then
|
||||
myconf+=( --with-swig )
|
||||
else
|
||||
myconf+=( --without-swig )
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
myconf+=( --without-junit )
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-aix*)
|
||||
# avoid recording immediate path to sharedlibs into executables
|
||||
append-ldflags -Wl,-bnoipath
|
||||
;;
|
||||
*-interix*)
|
||||
# loader crashes on the LD_PRELOADs...
|
||||
myconf+=( --disable-local-library-preloading )
|
||||
;;
|
||||
*-solaris*)
|
||||
# need -lintl to link
|
||||
use nls && append-libs intl
|
||||
# this breaks installation, on x64 echo replacement is 32-bits
|
||||
myconf+=( --disable-local-library-preloading )
|
||||
;;
|
||||
*-mint*)
|
||||
myconf+=( --enable-all-static --disable-local-library-preloading )
|
||||
;;
|
||||
*)
|
||||
# inject LD_PRELOAD entries for easy in-tree development
|
||||
myconf+=( --enable-local-library-preloading )
|
||||
;;
|
||||
esac
|
||||
|
||||
#version 1.7.7 again tries to link against the older installed version and fails, when trying to
|
||||
#compile for x86 on amd64, so workaround this issue again
|
||||
#check newer versions, if this is still/again needed
|
||||
myconf+=( --disable-disallowing-of-undefined-references )
|
||||
|
||||
# for build-time scripts
|
||||
if use ctypes-python || use python || use test; then
|
||||
python_setup
|
||||
fi
|
||||
|
||||
if use python && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
|
||||
export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
|
||||
export ac_cv_python_compile="$(tc-getCC)"
|
||||
fi
|
||||
|
||||
# allow overriding Python include directory
|
||||
ac_cv_path_RUBY=$(usex ruby "${EPREFIX}/usr/bin/ruby${RB_VER}" "none") \
|
||||
ac_cv_path_RDOC=$(usex ruby "${EPREFIX}/usr/bin/rdoc${RB_VER}" "none") \
|
||||
ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
|
||||
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
$(use_with apache2 apache-libexecdir) \
|
||||
$(use_with apache2 apxs "${APXS}") \
|
||||
$(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
|
||||
$(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
|
||||
$(use_enable dso runtime-module-search) \
|
||||
$(use_with gnome-keyring) \
|
||||
$(use_enable java javahl) \
|
||||
$(use_with java jdk "${JAVA_HOME}") \
|
||||
$(use_with kde kwallet) \
|
||||
$(use_enable nls) \
|
||||
$(use_with sasl) \
|
||||
$(use_with http serf) \
|
||||
${myconf[@]} \
|
||||
--with-apr="${EPREFIX}/usr/bin/apr-1-config" \
|
||||
--with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
|
||||
--disable-experimental-libtool \
|
||||
--without-jikes \
|
||||
--disable-mod-activation \
|
||||
--disable-static
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake local-all
|
||||
|
||||
if use ctypes-python ; then
|
||||
# pre-generate .py files
|
||||
use ctypes-python && emake ctypes-python
|
||||
|
||||
pushd subversion/bindings/ctypes-python >/dev/null || die
|
||||
distutils-r1_src_compile
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_compile() {
|
||||
local p=subversion/bindings/swig/python
|
||||
rm -f ${p} || die
|
||||
ln -s "${BUILD_DIR}" ${p} || die
|
||||
|
||||
python_export PYTHON_INCLUDEDIR
|
||||
emake swig-py \
|
||||
swig_pydir="$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="$(python_get_sitedir)/svn"
|
||||
}
|
||||
|
||||
# this will give us proper BUILD_DIR for symlinking
|
||||
BUILD_DIR=python \
|
||||
python_foreach_impl swig_py_compile
|
||||
fi
|
||||
|
||||
if use perl ; then
|
||||
emake swig-pl
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake swig-rb
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
|
||||
fi
|
||||
|
||||
if use extras ; then
|
||||
emake tools
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
|
||||
|
||||
if use java; then
|
||||
emake doc-javahl
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if has_version ~${CATEGORY}/${P} ; then
|
||||
default
|
||||
|
||||
if use ctypes-python ; then
|
||||
python_test() {
|
||||
"${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
|
||||
|| die "ctypes-python tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
distutils-r1_src_test
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_test() {
|
||||
pushd "${BUILD_DIR}" >/dev/null || die
|
||||
"${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
BUILD_DIR=subversion/bindings/swig/python \
|
||||
python_foreach_impl swig_py_test
|
||||
fi
|
||||
else
|
||||
ewarn "The test suite shows errors when there is an older version of"
|
||||
ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
|
||||
ewarn "before running the test suite."
|
||||
ewarn "Test suite skipped."
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" local-install
|
||||
|
||||
if use ctypes-python ; then
|
||||
pushd subversion/bindings/ctypes-python >/dev/null || die
|
||||
distutils-r1_src_install
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_install() {
|
||||
local p=subversion/bindings/swig/python
|
||||
rm -f ${p} || die
|
||||
ln -s "${BUILD_DIR}" ${p} || die
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
swig_pydir="$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="$(python_get_sitedir)/svn" \
|
||||
install-swig-py
|
||||
}
|
||||
|
||||
BUILD_DIR=python \
|
||||
python_foreach_impl swig_py_install
|
||||
fi
|
||||
|
||||
if use perl ; then
|
||||
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
|
||||
perl_delete_localpod
|
||||
find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -delete
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake DESTDIR="${D}" install-swig-rb
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
emake DESTDIR="${D}" install-javahl
|
||||
java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*$(get_libname)
|
||||
java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
|
||||
rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
|
||||
fi
|
||||
|
||||
# Install Apache module configuration.
|
||||
if use apache2 ; then
|
||||
keepdir "${APACHE_MODULES_CONFDIR}"
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}/47_mod_dav_svn.conf"
|
||||
fi
|
||||
|
||||
# Install Bash Completion, bug 43179.
|
||||
newbashcomp tools/client-side/bash_completion svn
|
||||
bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
|
||||
rm -f tools/client-side/bash_completion
|
||||
|
||||
# Install hot backup script, bug 54304.
|
||||
newbin tools/backup/hot-backup.py svn-hot-backup
|
||||
rm -fr tools/backup
|
||||
|
||||
# Install svnserve init-script and xinet.d snippet, bug 43245.
|
||||
newinitd "${FILESDIR}"/svnserve.initd3 svnserve
|
||||
newconfd "${FILESDIR}"/svnserve.confd svnserve
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/svnserve.xinetd svnserve
|
||||
|
||||
#adjust default user and group with disabled apache2 USE flag, bug 381385
|
||||
use apache2 || sed -e "s\USER:-apache\USER:-svn\g" \
|
||||
-e "s\GROUP:-apache\GROUP:-svnusers\g" \
|
||||
-i "${ED}"etc/init.d/svnserve || die
|
||||
use apache2 || sed -e "0,/apache/s//svn/" \
|
||||
-e "s:apache:svnusers:" \
|
||||
-i "${ED}"etc/xinetd.d/svnserve || die
|
||||
|
||||
# Install documentation.
|
||||
dodoc CHANGES COMMITTERS README
|
||||
dodoc tools/xslt/svnindex.{css,xsl}
|
||||
rm -fr tools/xslt
|
||||
|
||||
# Install extra files.
|
||||
if use extras ; then
|
||||
cat << EOF > 80subversion-extras
|
||||
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
EOF
|
||||
doenvd 80subversion-extras
|
||||
|
||||
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
|
||||
|
||||
find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
|
||||
rm -fr tools/client-side/svnmucc
|
||||
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
|
||||
rm -fr tools/{buildbot,dev,diff,po}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
|
||||
doins -r tools
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r doc/doxygen/html/*
|
||||
|
||||
if use java ; then
|
||||
java-pkg_dojavadoc doc/javadoc
|
||||
fi
|
||||
fi
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
cd "${ED}"usr/share/locale
|
||||
for i in * ; do
|
||||
[[ ${i} == *$LINGUAS* ]] || { rm -r ${i} || die ; }
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Compare versions of Berkeley DB, bug 122877.
|
||||
if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]] ; then
|
||||
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
|
||||
CHANGED_BDB_VERSION="1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
|
||||
ewarn "You upgraded from an older version of Berkeley DB and may experience"
|
||||
ewarn "problems with your repository. Run the following commands as root to fix it:"
|
||||
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
|
||||
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
|
||||
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
:
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
|
||||
# already has EPREFIX in it
|
||||
einfo "Initializing the database in ${SVN_REPOS_LOC}..."
|
||||
if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
|
||||
echo "A Subversion repository already exists and I will not overwrite it."
|
||||
echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
|
||||
else
|
||||
mkdir -p "${SVN_REPOS_LOC}/conf"
|
||||
|
||||
einfo "Populating repository directory..."
|
||||
# Create initial repository.
|
||||
"${EROOT}usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
|
||||
|
||||
einfo "Setting repository permissions..."
|
||||
SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
|
||||
SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
|
||||
if use apache2 ; then
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
|
||||
else
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
|
||||
fi
|
||||
chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
|
||||
chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
|
||||
echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
|
||||
echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
|
||||
echo "to finish the configuration."
|
||||
fi
|
||||
}
|
@ -1,502 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
USE_RUBY="ruby23 ruby22 ruby21 ruby20"
|
||||
DISTUTILS_OPTIONAL=1
|
||||
WANT_AUTOMAKE="none"
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
|
||||
inherit autotools bash-completion-r1 db-use depend.apache distutils-r1 elisp-common eutils flag-o-matic java-pkg-opt-2 libtool multilib perl-module ruby-single
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
DESCRIPTION="Advanced version control system"
|
||||
HOMEPAGE="http://subversion.apache.org/"
|
||||
SRC_URI="mirror://apache/${PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="Subversion GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="apache2 berkdb ctypes-python debug doc +dso extras gnome-keyring +http java kde nls perl python ruby sasl test vim-syntax"
|
||||
|
||||
COMMON_DEPEND=">=dev-db/sqlite-3.7.12
|
||||
>=dev-libs/apr-1.3:1
|
||||
>=dev-libs/apr-util-1.3:1
|
||||
dev-libs/expat
|
||||
sys-apps/file
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
berkdb? ( >=sys-libs/db-4.0.14:= )
|
||||
ctypes-python? ( ${PYTHON_DEPS} )
|
||||
gnome-keyring? ( dev-libs/glib:2 sys-apps/dbus gnome-base/libgnome-keyring )
|
||||
kde? ( sys-apps/dbus dev-qt/qtcore:4 dev-qt/qtdbus:4 dev-qt/qtgui:4 kde-frameworks/kdelibs:4 )
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( ${RUBY_DEPS} )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
http? ( >=net-libs/serf-1.3.4 )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
apache2? ( www-servers/apache[apache2_modules_dav] )
|
||||
java? ( >=virtual/jre-1.5 )
|
||||
kde? ( kde-apps/kwalletd:4 )
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-perl/URI )"
|
||||
# Note: ctypesgen doesn't need PYTHON_USEDEP, it's used once
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
!!<sys-apps/sandbox-1.6
|
||||
ctypes-python? ( dev-python/ctypesgen )
|
||||
doc? ( app-doc/doxygen )
|
||||
gnome-keyring? ( virtual/pkgconfig )
|
||||
http? ( virtual/pkgconfig )
|
||||
java? ( >=virtual/jdk-1.5 )
|
||||
kde? ( virtual/pkgconfig )
|
||||
nls? ( sys-devel/gettext )
|
||||
test? ( ${PYTHON_DEPS} )"
|
||||
|
||||
REQUIRED_USE="
|
||||
ctypes-python? ( ${PYTHON_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? (
|
||||
${PYTHON_REQUIRED_USE}
|
||||
!dso
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.5.4-interix.patch
|
||||
"${FILESDIR}"/${PN}-1.5.6-aix-dso.patch
|
||||
"${FILESDIR}"/${PN}-1.8.0-hpux-dso.patch
|
||||
"${FILESDIR}"/${PN}-fix-parallel-build-support-for-perl-bindings.patch
|
||||
"${FILESDIR}"/${PN}-1.8.1-revert_bdb6check.patch
|
||||
"${FILESDIR}"/${PN}-1.8.16-javadoc-nolint.patch
|
||||
)
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
if use berkdb ; then
|
||||
local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \
|
||||
| grep -Eoe '-I${EPREFIX}/usr/include/db[[:digit:]]\.[[:digit:]]' \
|
||||
| sed 's:.*b::')"
|
||||
einfo
|
||||
if [[ -z "${SVN_BDB_VERSION}" ]] ; then
|
||||
if [[ -n "${apu_bdb_version}" ]] ; then
|
||||
SVN_BDB_VERSION="${apu_bdb_version}"
|
||||
einfo "Matching db version to apr-util"
|
||||
else
|
||||
SVN_BDB_VERSION="$(db_ver_to_slot "$(db_findver sys-libs/db 2>/dev/null)")"
|
||||
einfo "SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB."
|
||||
fi
|
||||
fi
|
||||
einfo "Using: Berkeley DB ${SVN_BDB_VERSION}"
|
||||
einfo
|
||||
|
||||
if [[ -n "${apu_bdb_version}" && "${SVN_BDB_VERSION}" != "${apu_bdb_version}" ]]; then
|
||||
eerror "APR-Util is linked against Berkeley DB ${apu_bdb_version}, but you are trying"
|
||||
eerror "to build Subversion with support for Berkeley DB ${SVN_BDB_VERSION}."
|
||||
eerror "Rebuild dev-libs/apr-util or set SVN_BDB_VERSION=\"${apu_bdb_version}\"."
|
||||
eerror "Aborting to avoid possible run-time crashes."
|
||||
die "Berkeley DB version mismatch"
|
||||
fi
|
||||
fi
|
||||
|
||||
depend.apache_pkg_setup
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
|
||||
if ! use http ; then
|
||||
ewarn "WebDAV support is disabled. You need WebDAV to"
|
||||
ewarn "access repositories through the HTTP protocol."
|
||||
ewarn "Consider enabling \"http\" USE flag"
|
||||
echo -ne "\a"
|
||||
fi
|
||||
|
||||
if use debug ; then
|
||||
append-cppflags -DSVN_DEBUG -DAP_DEBUG
|
||||
fi
|
||||
|
||||
# http://mail-archives.apache.org/mod_mbox/subversion-dev/201306.mbox/%3C51C42014.3060700@wandisco.com%3E
|
||||
[[ ${CHOST} == *-solaris2* ]] && append-cppflags -D__EXTENSIONS__
|
||||
|
||||
# Allow for custom repository locations.
|
||||
SVN_REPOS_LOC="${SVN_REPOS_LOC:-${EPREFIX}/var/svn}"
|
||||
|
||||
if use ruby ; then
|
||||
local rbslot
|
||||
RB_VER=""
|
||||
for rbslot in $(sed 's@\([[:digit:]]\+\)\([[:digit:]]\)@\1.\2@g' <<< ${USE_RUBY//ruby}) ; do
|
||||
if has_version dev-lang/ruby:${rbslot} ; then
|
||||
RB_VER="${rbslot/.}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
[[ -z "${RB_VER}" ]] && die "No useable ruby version found"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
fperms +x build/transform_libtool_scripts.sh
|
||||
|
||||
sed -i \
|
||||
-e "s/\(BUILD_RULES=.*\) bdb-test\(.*\)/\1\2/g" \
|
||||
-e "s/\(BUILD_RULES=.*\) test\(.*\)/\1\2/g" configure.ac
|
||||
|
||||
# this bites us in particular on Solaris
|
||||
sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \
|
||||
die "/bin/sh is not POSIX shell!"
|
||||
|
||||
eautoconf
|
||||
elibtoolize
|
||||
|
||||
sed -e 's/\(libsvn_swig_py\)-\(1\.la\)/\1-$(EPYTHON)-\2/g' \
|
||||
-i build-outputs.mk || die "sed failed"
|
||||
|
||||
if use python ; then
|
||||
# XXX: make python_copy_sources accept path
|
||||
S=${S}/subversion/bindings/swig/python python_copy_sources
|
||||
rm -r "${S}"/subversion/bindings/swig/python || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
if use python || use perl || use ruby; then
|
||||
myconf+=( --with-swig )
|
||||
else
|
||||
myconf+=( --without-swig )
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
myconf+=( --without-junit )
|
||||
fi
|
||||
|
||||
case ${CHOST} in
|
||||
*-aix*)
|
||||
# avoid recording immediate path to sharedlibs into executables
|
||||
append-ldflags -Wl,-bnoipath
|
||||
;;
|
||||
*-interix*)
|
||||
# loader crashes on the LD_PRELOADs...
|
||||
myconf+=( --disable-local-library-preloading )
|
||||
;;
|
||||
*-solaris*)
|
||||
# need -lintl to link
|
||||
use nls && append-libs intl
|
||||
# this breaks installation, on x64 echo replacement is 32-bits
|
||||
myconf+=( --disable-local-library-preloading )
|
||||
;;
|
||||
*-mint*)
|
||||
myconf+=( --enable-all-static --disable-local-library-preloading )
|
||||
;;
|
||||
*)
|
||||
# inject LD_PRELOAD entries for easy in-tree development
|
||||
myconf+=( --enable-local-library-preloading )
|
||||
;;
|
||||
esac
|
||||
|
||||
#version 1.7.7 again tries to link against the older installed version and fails, when trying to
|
||||
#compile for x86 on amd64, so workaround this issue again
|
||||
#check newer versions, if this is still/again needed
|
||||
myconf+=( --disable-disallowing-of-undefined-references )
|
||||
|
||||
# for build-time scripts
|
||||
if use ctypes-python || use python || use test; then
|
||||
python_setup
|
||||
fi
|
||||
|
||||
if use python && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
export ac_cv_python_link="$(tc-getCC) "'$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
|
||||
export ac_cv_python_libs='$(PYTHON_CFLAGS) -bundle -undefined dynamic_lookup $(PYTHON_LIBS)'
|
||||
export ac_cv_python_compile="$(tc-getCC)"
|
||||
fi
|
||||
|
||||
# allow overriding Python include directory
|
||||
ac_cv_path_RUBY=$(usex ruby "${EPREFIX}/usr/bin/ruby${RB_VER}" "none") \
|
||||
ac_cv_path_RDOC=$(usex ruby "${EPREFIX}/usr/bin/rdoc${RB_VER}" "none") \
|
||||
ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)' \
|
||||
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
$(use_with apache2 apache-libexecdir) \
|
||||
$(use_with apache2 apxs "${APXS}") \
|
||||
$(use_with berkdb berkeley-db "db.h:${EPREFIX}/usr/include/db${SVN_BDB_VERSION}::db-${SVN_BDB_VERSION}") \
|
||||
$(use_with ctypes-python ctypesgen "${EPREFIX}/usr") \
|
||||
$(use_enable dso runtime-module-search) \
|
||||
$(use_with gnome-keyring) \
|
||||
$(use_enable java javahl) \
|
||||
$(use_with java jdk "${JAVA_HOME}") \
|
||||
$(use_with kde kwallet) \
|
||||
$(use_enable nls) \
|
||||
$(use_with sasl) \
|
||||
$(use_with http serf) \
|
||||
${myconf[@]} \
|
||||
--with-apr="${EPREFIX}/usr/bin/apr-1-config" \
|
||||
--with-apr-util="${EPREFIX}/usr/bin/apu-1-config" \
|
||||
--disable-experimental-libtool \
|
||||
--without-jikes \
|
||||
--disable-mod-activation \
|
||||
--disable-static
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake local-all
|
||||
|
||||
if use ctypes-python ; then
|
||||
# pre-generate .py files
|
||||
use ctypes-python && emake ctypes-python
|
||||
|
||||
pushd subversion/bindings/ctypes-python >/dev/null || die
|
||||
distutils-r1_src_compile
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_compile() {
|
||||
local p=subversion/bindings/swig/python
|
||||
rm -f ${p} || die
|
||||
ln -s "${BUILD_DIR}" ${p} || die
|
||||
|
||||
python_export PYTHON_INCLUDEDIR
|
||||
emake swig-py \
|
||||
swig_pydir="$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="$(python_get_sitedir)/svn"
|
||||
}
|
||||
|
||||
# this will give us proper BUILD_DIR for symlinking
|
||||
BUILD_DIR=python \
|
||||
python_foreach_impl swig_py_compile
|
||||
fi
|
||||
|
||||
if use perl ; then
|
||||
emake swig-pl
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake swig-rb
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
emake -j1 JAVAC_FLAGS="$(java-pkg_javac-args) -encoding iso8859-1" javahl
|
||||
fi
|
||||
|
||||
if use extras ; then
|
||||
emake tools
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
doxygen doc/doxygen.conf || die "Building of Subversion HTML documentation failed"
|
||||
|
||||
if use java; then
|
||||
emake doc-javahl
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if has_version ~${CATEGORY}/${P} ; then
|
||||
default
|
||||
|
||||
if use ctypes-python ; then
|
||||
python_test() {
|
||||
"${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \
|
||||
|| die "ctypes-python tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
distutils-r1_src_test
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_test() {
|
||||
pushd "${BUILD_DIR}" >/dev/null || die
|
||||
"${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}"
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
BUILD_DIR=subversion/bindings/swig/python \
|
||||
python_foreach_impl swig_py_test
|
||||
fi
|
||||
else
|
||||
ewarn "The test suite shows errors when there is an older version of"
|
||||
ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*"
|
||||
ewarn "before running the test suite."
|
||||
ewarn "Test suite skipped."
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${D}" local-install
|
||||
|
||||
if use ctypes-python ; then
|
||||
pushd subversion/bindings/ctypes-python >/dev/null || die
|
||||
distutils-r1_src_install
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
swig_py_install() {
|
||||
local p=subversion/bindings/swig/python
|
||||
rm -f ${p} || die
|
||||
ln -s "${BUILD_DIR}" ${p} || die
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
swig_pydir="$(python_get_sitedir)/libsvn" \
|
||||
swig_pydir_extra="$(python_get_sitedir)/svn" \
|
||||
install-swig-py
|
||||
}
|
||||
|
||||
BUILD_DIR=python \
|
||||
python_foreach_impl swig_py_install
|
||||
fi
|
||||
|
||||
if use perl ; then
|
||||
emake DESTDIR="${D}" INSTALLDIRS="vendor" install-swig-pl
|
||||
perl_delete_localpod
|
||||
find "${ED}" "(" -name .packlist -o -name "*.bs" ")" -delete
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake DESTDIR="${D}" install-swig-rb
|
||||
fi
|
||||
|
||||
if use java ; then
|
||||
emake DESTDIR="${D}" install-javahl
|
||||
java-pkg_regso "${ED}"usr/$(get_libdir)/libsvnjavahl*$(get_libname)
|
||||
java-pkg_dojar "${ED}"usr/$(get_libdir)/svn-javahl/svn-javahl.jar
|
||||
rm -fr "${ED}"usr/$(get_libdir)/svn-javahl/*.jar
|
||||
fi
|
||||
|
||||
# Install Apache module configuration.
|
||||
if use apache2 ; then
|
||||
keepdir "${APACHE_MODULES_CONFDIR}"
|
||||
insinto "${APACHE_MODULES_CONFDIR}"
|
||||
doins "${FILESDIR}/47_mod_dav_svn.conf"
|
||||
fi
|
||||
|
||||
# Install Bash Completion, bug 43179.
|
||||
newbashcomp tools/client-side/bash_completion svn
|
||||
bashcomp_alias svn svn{admin,dumpfilter,look,sync,version}
|
||||
rm -f tools/client-side/bash_completion
|
||||
|
||||
# Install hot backup script, bug 54304.
|
||||
newbin tools/backup/hot-backup.py svn-hot-backup
|
||||
rm -fr tools/backup
|
||||
|
||||
# Install svnserve init-script and xinet.d snippet, bug 43245.
|
||||
newinitd "${FILESDIR}"/svnserve.initd3 svnserve
|
||||
newconfd "${FILESDIR}"/svnserve.confd svnserve
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/svnserve.xinetd svnserve
|
||||
|
||||
#adjust default user and group with disabled apache2 USE flag, bug 381385
|
||||
use apache2 || sed -e "s\USER:-apache\USER:-svn\g" \
|
||||
-e "s\GROUP:-apache\GROUP:-svnusers\g" \
|
||||
-i "${ED}"etc/init.d/svnserve || die
|
||||
use apache2 || sed -e "0,/apache/s//svn/" \
|
||||
-e "s:apache:svnusers:" \
|
||||
-i "${ED}"etc/xinetd.d/svnserve || die
|
||||
|
||||
# Install documentation.
|
||||
dodoc CHANGES COMMITTERS README
|
||||
dodoc tools/xslt/svnindex.{css,xsl}
|
||||
rm -fr tools/xslt
|
||||
|
||||
# Install extra files.
|
||||
if use extras ; then
|
||||
cat << EOF > 80subversion-extras
|
||||
PATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
ROOTPATH="${EPREFIX}/usr/$(get_libdir)/subversion/bin"
|
||||
EOF
|
||||
doenvd 80subversion-extras
|
||||
|
||||
emake DESTDIR="${D}" toolsdir="/usr/$(get_libdir)/subversion/bin" install-tools
|
||||
|
||||
find tools "(" -name "*.bat" -o -name "*.in" -o -name ".libs" ")" -print0 | xargs -0 rm -fr
|
||||
rm -fr tools/client-side/svnmucc
|
||||
rm -fr tools/server-side/{svn-populate-node-origins-index,svnauthz-validate}*
|
||||
rm -fr tools/{buildbot,dev,diff,po}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
find tools -name '*.py' -exec sed -i -e '1s:python:&2:' {} + || die
|
||||
doins -r tools
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r doc/doxygen/html/*
|
||||
|
||||
if use java ; then
|
||||
java-pkg_dojavadoc doc/javadoc
|
||||
fi
|
||||
fi
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
cd "${ED}"usr/share/locale
|
||||
for i in * ; do
|
||||
[[ ${i} == *$LINGUAS* ]] || { rm -r ${i} || die ; }
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Compare versions of Berkeley DB, bug 122877.
|
||||
if use berkdb && [[ -f "${EROOT}usr/bin/svn" ]] ; then
|
||||
OLD_BDB_VERSION="$(scanelf -nq "${EROOT}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
NEW_BDB_VERSION="$(scanelf -nq "${ED}usr/$(get_libdir)/libsvn_subr-1$(get_libname 0)" | grep -Eo "libdb-[[:digit:]]+\.[[:digit:]]+" | sed -e "s/libdb-\(.*\)/\1/")"
|
||||
if [[ "${OLD_BDB_VERSION}" != "${NEW_BDB_VERSION}" ]] ; then
|
||||
CHANGED_BDB_VERSION="1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "${CHANGED_BDB_VERSION}" ]] ; then
|
||||
ewarn "You upgraded from an older version of Berkeley DB and may experience"
|
||||
ewarn "problems with your repository. Run the following commands as root to fix it:"
|
||||
ewarn " db4_recover -h ${SVN_REPOS_LOC}/repos"
|
||||
ewarn " chown -Rf apache:apache ${SVN_REPOS_LOC}/repos"
|
||||
fi
|
||||
|
||||
ewarn "If you run subversion as a daemon, you will need to restart it to avoid module mismatches."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
:
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
# Remember: Don't use ${EROOT}${SVN_REPOS_LOC} since ${SVN_REPOS_LOC}
|
||||
# already has EPREFIX in it
|
||||
einfo "Initializing the database in ${SVN_REPOS_LOC}..."
|
||||
if [[ -e "${SVN_REPOS_LOC}/repos" ]] ; then
|
||||
echo "A Subversion repository already exists and I will not overwrite it."
|
||||
echo "Delete \"${SVN_REPOS_LOC}/repos\" first if you're sure you want to have a clean version."
|
||||
else
|
||||
mkdir -p "${SVN_REPOS_LOC}/conf"
|
||||
|
||||
einfo "Populating repository directory..."
|
||||
# Create initial repository.
|
||||
"${EROOT}usr/bin/svnadmin" create "${SVN_REPOS_LOC}/repos"
|
||||
|
||||
einfo "Setting repository permissions..."
|
||||
SVNSERVE_USER="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_USER}")"
|
||||
SVNSERVE_GROUP="$(. "${EROOT}etc/conf.d/svnserve"; echo "${SVNSERVE_GROUP}")"
|
||||
if use apache2 ; then
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="apache"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="apache"
|
||||
else
|
||||
[[ -z "${SVNSERVE_USER}" ]] && SVNSERVE_USER="svn"
|
||||
[[ -z "${SVNSERVE_GROUP}" ]] && SVNSERVE_GROUP="svnusers"
|
||||
fi
|
||||
chmod -Rf go-rwx "${SVN_REPOS_LOC}/conf"
|
||||
chmod -Rf o-rwx "${SVN_REPOS_LOC}/repos"
|
||||
echo "Please create \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Afterwards please create \"${SVNSERVE_USER}\" user with homedir \"${SVN_REPOS_LOC}\""
|
||||
echo "and as part of the \"${SVNSERVE_GROUP}\" group if it does not exist yet."
|
||||
echo "Finally, execute \"chown -Rf ${SVNSERVE_USER}:${SVNSERVE_GROUP} ${SVN_REPOS_LOC}/repos\""
|
||||
echo "to finish the configuration."
|
||||
fi
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST pngcrush-1.8.10-nolib.tar.xz 65196 SHA256 8db04792f8912011c9c25caf732894276f16ff0b7612f3365d18971dfb56442b SHA512 34d06b13ebbea77bb8f0e7d69ad8ddde5e36c8970adadc074bdf3715f5fe275e475680ea3e1b89349844b2aaeddcb00b35683c8dfc4ce2d78b59c20c626eca69 WHIRLPOOL 08b59025f59fb6ab9e13d2edd0271e25ff7f86f1506d18d55f3f2e7e22c974095ca98c020647a6a7752203446edb6ec8052e332d3a56aa754e96af5cc3e3ad3d
|
||||
DIST pngcrush-1.8.10.tar.xz 386240 SHA256 a9c11e27fafaf49f4be9883fe39c1c222a9f7a492a223e53408e68a96594b90c SHA512 fc858e1feec3c6311c7063665f21989d1e5d81afb1a32cce9f6dae63c714c07ec0c0272b06d6bc9f255948c1d3a439511b9768c62686093b44bcc2caeb49061f WHIRLPOOL dcdfac66ac32866e2f7e048806c9bcc64aefd0a8a6c41104aa0376d99372a33107fe98628e542c89d4a1da42b5105e484eaa864067f62de90799845712ed5bd8
|
||||
DIST pngcrush-1.8.11-nolib.tar.xz 65272 SHA256 23a293a9e7b1e4ea94829ae0266c8672506ed2dfa80f69b11594c650bf1ae5dd SHA512 1b6d1c5b934d3d349031da1e49f1b3206cb0540a3d3a36219a800f052cd30da305b80902f7bdccfcc1487babb826a925048d30f9fbae598ca8ca18d60b3c49e1 WHIRLPOOL aa5f8177634bdef7617d443654fa600bf9231461ce141cf27d7613819a74f57d4aa95b941d4c0036fce8d58a8c495da1a392121a1b56a521accc12fbe0b7606e
|
||||
DIST pngcrush-1.8.11.tar.xz 388456 SHA256 8d530328650ec82f3cbe998729ada8347eb3dbbdf706d9021c5786144d18f5b0 SHA512 7110d3f55ec1d18bf9cf9b923bfd2e06bdf8c87fbc8ac09a6bc9e17cc5cda022185d70270f67ea63f733b18f904c05f1426a4794c29493630d5661bddbcaca2b WHIRLPOOL 68f948e39d6a7b82de6ff87cdd5609a8e7a87eae813e97dc0eaa84d254319a6217f960943945e2a4c9645f9b033706d6fcb23d243cd3a74eec326213bcddd9e2
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Portable Network Graphics (PNG) optimizing utility"
|
||||
HOMEPAGE="http://pmt.sourceforge.net/pngcrush/"
|
||||
SRC_URI="system-libs? ( mirror://sourceforge/pmt/${P}-nolib.tar.xz )
|
||||
!system-libs? ( mirror://sourceforge/pmt/${P}.tar.xz )"
|
||||
|
||||
LICENSE="pngcrush"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="+system-libs"
|
||||
|
||||
RDEPEND="
|
||||
system-libs? (
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib:=
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils"
|
||||
|
||||
pkg_setup() {
|
||||
use system-libs && S+="-nolib"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
LD="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS} ${CPPFLAGS} -Wall" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
dodoc ChangeLog.html
|
||||
}
|
@ -1,9 +1,3 @@
|
||||
DIST qmmp-plugin-pack-0.10.1.tar.bz2 83356 SHA256 996afeb1becdac0575944a1546fe551511268203622110d3315591ab3d85fff4 SHA512 8a53973e4110b9cf27378e9974d9bc2af1229868361f52e49be26623b5cbda5fbdda9b313944ea1a729de0bb09194c6b229db48a5d500efe6362b39cf5d90413 WHIRLPOOL 2e0cb1e4eb4df17750e0d537cc4aae955b0a478f9ac8aa868ba553f2910482da8a585c98c61344998f83e4031056646856edb83a6d6b56a3882ad9294eec4f72
|
||||
DIST qmmp-plugin-pack-0.10.2.tar.bz2 83334 SHA256 393ceebc10542af6aa437f1b1b2acbf02c3c141d700a79dbde7f2dae60f7a535 SHA512 c27c050d808bab5704a8303a04780b4ff9c9dc75c438964e46d7de2cffdc341879e0cd2388cc6e0201bc15a3399b83d381bd9fd9dcbba73ebcc4b31a7608a2e1 WHIRLPOOL 363adffaafebc2ebf374530e9394375eac82e8aee95c14fdf25fa29c4d4ee4f757c96ee6c47d822605572f8ff2b02d9a3ebebc6db4a305c2d5daaf2d2d1db106
|
||||
DIST qmmp-plugin-pack-0.9.2.tar.bz2 76314 SHA256 730c4ac568a86969234e1faf2f18a7593a7d89c8c56fb58ab317aa7f3edb6317 SHA512 cc740cc28b55abe2d410c75433e49041a7602d80e932f97f22926bbff63b391e46f9772f8d7cd2fb5e7b109a73ef674894e151007ce99b1e26ef3234aaa22d42 WHIRLPOOL 6e5c213e54003e47c1b8226050f1d0c2628d159649fb9de3b8e3abe5b11e1cdef12f7dd4749c96454347c29715e941b32dbcee414c10ef01a116958aabfbf364
|
||||
DIST qmmp-plugin-pack-0.9.3.tar.bz2 76668 SHA256 4c65cf6b917574858248b81f7c357b128af21908e7a437f1e1cb89f1501020ec SHA512 b4be0f74ebee7306d9a6f51f462f201896f0287cd9bcf3db4cd12d4cd41313795c3a8e904f9173ce49159188f341eb81b37f3bab316ca824afb9877c1bb40a26 WHIRLPOOL 63fb1332e76a6d487c5208309c4cc04137818309865431eb6ca67b17fb17533e25f3db5cf09b0bae040338855838bd7844d2cca6db674b59c136a5454c7db267
|
||||
DIST qmmp-plugin-pack-0.9.5.tar.bz2 78097 SHA256 3bf2451545833871c01b75b79215ff52c5583876a7c8122005c55fc9053a61bb SHA512 34155e25ee381d9e61d88fe3871a4b8198611fbe99ab811e173c74f39e0105d232ea8945db9a3dafbea38bcb380a8b5b95bfcfd6c399ba8ed8dbd027b823d269 WHIRLPOOL 647cec884e1d725be7545aa2fdd0bdafedf699fe388b407b5a3b028dcf051ab6b483dd36114c7049affc31b82d210ecd9535a975864870249601a31d91d3e85a
|
||||
DIST qmmp-plugin-pack-1.0.2.tar.bz2 76533 SHA256 a3a309342fd5077c80bcba214a3d5df6f96135e9fae37d5d122e608557080767 SHA512 268e7cdb5e88f7f15f407df4b2d353c20d8477acc67607485500e0f3eee6bff259a2aac180d3e591dfd15750e495c5f1e0f645704fbe59fa398bfdd7d3f38f5f WHIRLPOOL 296de7571d6d61ec0ca58c4d970455aec092f5b0a9a50f8d960422649a8d7ecb6bc46b48b600f9a1a953aec64b165640b2cea91fee2b5ba11332c35385bd472d
|
||||
DIST qmmp-plugin-pack-1.0.4.tar.bz2 77490 SHA256 59073ced518c4dfb4b281b950997fdfe0c90461598d8ccfda3458a819bc10f67 SHA512 5bd601da78b8ae3e3fbaf0d2f5aac4e79bf1f9511f4712d346ea648b98d7d37ffdc8632c8fec160e2bf78fe27e00fb043da295d290653bee1d3781ba7b0b9407 WHIRLPOOL 63ad7085df56e874649be6a7402fb14c677e5fcd7b6a44c22839724952da24f101be82ae68484bac3dfa880b1841c63c9f57f433351a0721a94d21a18ad6c494
|
||||
DIST qmmp-plugin-pack-1.1.2.tar.bz2 83127 SHA256 e0b462426ad1b015bbc99b529985a859fd81ee09a591387136896a8fe8d0eb66 SHA512 072478a76192feb728caab61df0ad6fd7f44280c59d2865c21b33d135f5340e8b02afc57c3f8bbd7de41b37b806a5e5c0f2cc7e73e77808b9aaaceb7f051b693 WHIRLPOOL 1861c8df2e353623e2ad0fbe78f60fda0d8b4c5e59cc48fa2245041f0fc5872d5dca64c14195adc71322fa544412ccb621585a644de2b421e00654f0d7aed148
|
||||
DIST qmmp-plugin-pack-1.1.3.tar.bz2 83314 SHA256 e049920ec6cb7adf296b603c4268f615203e6c1cd0c9de2440b5b141e2e88377 SHA512 05d412da4b0c892b415c7e6a8248c90196da5544be027fac32a051c2e3a187f089e57086ca6858d7591bc7b81838e2ac5e4019d418c95ff3bfb4f7a100f8ecae WHIRLPOOL 460b5f7bf81278ad729929e38b4eb345759c918b41ce5e36ec746d25d9d5c267607dc9401f873d15747e1a3100bfda5cbf02bc7fc085d41ec77d5289f8a3b359
|
||||
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils versionator
|
||||
|
||||
DESCRIPTION="A set of extra plugins for Qmmp"
|
||||
HOMEPAGE="http://qmmp.ylsoftware.com/"
|
||||
SRC_URI="http://qmmp.ylsoftware.com/files/plugins/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/taglib
|
||||
media-sound/mpg123
|
||||
=media-sound/qmmp-$(get_version_component_range 1-2)*
|
||||
dev-qt/qtgui:4"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/yasm"
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="A set of extra plugins for Qmmp"
|
||||
HOMEPAGE="http://qmmp.ylsoftware.com/"
|
||||
SRC_URI="http://qmmp.ylsoftware.com/files/plugins/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/taglib
|
||||
media-sound/mpg123
|
||||
media-sound/qmmp
|
||||
dev-qt/qtgui:4"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/yasm"
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="A set of extra plugins for Qmmp"
|
||||
HOMEPAGE="http://qmmp.ylsoftware.com/"
|
||||
SRC_URI="http://qmmp.ylsoftware.com/files/plugins/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/taglib
|
||||
media-sound/mpg123
|
||||
media-sound/qmmp
|
||||
dev-qt/qtgui:4"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/yasm"
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="A set of extra plugins for Qmmp"
|
||||
HOMEPAGE="http://qmmp.ylsoftware.com/"
|
||||
SRC_URI="http://qmmp.ylsoftware.com/files/plugins/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/taglib
|
||||
media-sound/mpg123
|
||||
media-sound/qmmp
|
||||
dev-qt/qtgui:4"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/yasm"
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="A set of extra plugins for Qmmp"
|
||||
HOMEPAGE="http://qmmp.ylsoftware.com/"
|
||||
SRC_URI="http://qmmp.ylsoftware.com/files/plugins/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/taglib
|
||||
media-sound/mpg123
|
||||
>=media-sound/qmmp-1.0.0
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtx11extras:5
|
||||
dev-qt/qtwidgets:5"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/yasm
|
||||
dev-qt/linguist-tools:5"
|
||||
|
||||
#PATCHES=( )
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils versionator
|
||||
|
||||
DESCRIPTION="A set of extra plugins for Qmmp"
|
||||
HOMEPAGE="http://qmmp.ylsoftware.com/"
|
||||
SRC_URI="http://qmmp.ylsoftware.com/files/plugins/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=media-libs/taglib-1.10
|
||||
media-sound/mpg123
|
||||
=media-sound/qmmp-$(get_version_component_range 1-2)*
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtx11extras:5
|
||||
dev-qt/qtwidgets:5"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/yasm
|
||||
dev-qt/linguist-tools:5"
|
||||
|
||||
#PATCHES=( )
|
@ -1,5 +1,5 @@
|
||||
DIST qmmp-0.10.5.tar.bz2 1342190 SHA256 c1ac6aa5241f0ade901793a2e581183903e6c861a9f275f3f9735753f5e463ac SHA512 24751504101d3cf753f032515b61faf0e7f3b3b70ac1a8f7742e650868be3adb7ecae54c01bc5e7e407c6f3796da0a4347c908d976205448743163b22e211942 WHIRLPOOL 12ba0e0ef6bd3116326af6624628ebf2128d9d882e32ef3474bc4a6d4047c68de404bec07e893f101bdd8b6a0b843f5e3b1941e537fcdf436997a545b19ee027
|
||||
DIST qmmp-0.9.2.tar.bz2 1112974 SHA256 90ac69a21779df5073efe71b25f28a7461d6a928deb1afbaa1ef8268f62ae9c5 SHA512 fc6cb0ec4bbf52e2ceb9e87a3585f25bd58b3a323ef07ddb9fd9f21a065ef0f5deb0b014f29b9648fe9e0a8b412f3b04643f8128638558089a25d867577690ad WHIRLPOOL 47a596b0f7d9e516737bfeb10a962f79edb74f61e2985b01f2cee80c8ff252a1709459f5712700784faef824e24ff3567d73f0d5759e2cd2c0c53c267cc6a026
|
||||
DIST qmmp-0.10.6.tar.bz2 1341977 SHA256 9ec1df1128182dfe1d5686bfb857148577f4f2f1a10e5a0459998464ae6cd272 SHA512 fd549a381f957d38923fa675b284c0d57128eecb88d672d2ac82b8fb2e9b40004fd1f870425bd356badd3394ba36b8b9abfc7b61cc3b650512a9f203e0745db7 WHIRLPOOL 3039fb8d96bfde5b84a830fd6bcecb70dd94a3b7376a902345fb8166c77f6579df2bd67a3363119d15720ad65cbe1ac4de204d943c68962d25e1f0ebdafeb906
|
||||
DIST qmmp-1.0.10.tar.bz2 1107784 SHA256 02bcd01b1d8f6ca8b805a5deaeaa059ee44a38fafd20bec7ee3560a021250ee3 SHA512 45231ef8b1f0a0825336752fe9314cc0df1b937ebcf85b18c89c66e52f38cf69583eccd8ffcf92d89add11643e1f40ccf0fe720fd6279f3cf4f73db336d4d59b WHIRLPOOL 0bb7d873e58b8cdbbb71576af3080031fc0e03cc3fc3153812e2a105bad40f02ac4a3838454aef5551890e278d050bbe04caf0e77ddb1cd3b43f7fd2c77cd5e7
|
||||
DIST qmmp-1.0.7.tar.bz2 1107565 SHA256 adb8c4338a22bc80e75aa667e866789b970eb3c7662fdb374f03388f45e5e09b SHA512 d9c5be464ba2c4e2eb4b0ffbb938cb277e8c483fcb1ec97100dc862acfc2f1c6c1110a3d45c5c5713c7e30bd508a7c0828ff48587ea875ac7befe5b23544cabd WHIRLPOOL d766bd45c9bb18a5cec37d23a4ca123021e79dc1ffc275e38c99a9ee88b03120534aa845a0df007b1c93e44d4867e883fd6720079333b85420e4ca4b1364e992
|
||||
DIST qmmp-1.1.5.tar.bz2 1132552 SHA256 9b1288f432799980a5d58d131b56b4b590055d7e66c5fe50e9199b9daa35ddbd SHA512 9117e42fe3e74eb28c147ec98db5a5825b6c027b91ff5a9e9db48edc23b98745cfdeaf15139a48465e7607028d0a1835ab707f2e0b3749487c2e204a0ca511a7 WHIRLPOOL 0a8e75ccd0932f7e2dd95401849eb7ec88cdaa2a79b62d470319364b3e319640417359425da56cda7c31021c0a4247bca2984462fedfdc9b9edf082ce74bfbcc
|
||||
DIST qmmp-1.1.6.tar.bz2 1133591 SHA256 aff540547ed1e804b964edcb1eeb418c12906a88ab07e44fa4d88b066cd81015 SHA512 1bef5e6414021e0dfb213bc83818004b66b81cba81c0f4b53233acc9cf85cbf1f2f7c7bf15891f744fb9822e6ffabf16c87625617525bca5911cfcc99cf86eab WHIRLPOOL 129e429670280b2833c820ccd7174c2d263511bef71fdf614be69c95df6ff32f18447d854b7340fd7563543b9be24caf7ace6076db386e447a65a37c956e21de
|
||||
|
@ -1 +1,2 @@
|
||||
DIST motion-3.2.12.tar.gz 425729 SHA256 a597f8d7ec0bf3c5fb62722c4eead59717fe01c2ae0d256c642027cea74b2f0a SHA512 d44620f8865420da71ff1dc1e1d8ba8e5465b395f2cf3b2cc9a91d3d415694b26376a9f8e3a1b78ffd0efde22d9e0338daa77237aed38c060dc3577af4c0864c WHIRLPOOL 0b7618d48161e8ffefacc5331d1078004d87839b532100c37bfaf06e99772921228feea6eea063301dfdc9e5f5a1dc07fd0847858440c6f876c1e03deaa078c8
|
||||
DIST release-4.0.1.tar.gz 444779 SHA256 2f67669a09ce0481ecd987028dae1c5cb135dfdc3c254c06ab7c9ca0c6c183f0 SHA512 6ccde3890e6af56f28208321987dd1b9d62a55bbe7cbc3ab5600263602e6e8f47589392c2f3a3a6cb54f927ee76aea94d0e83f26ce8e4047890c891b6c2f8976 WHIRLPOOL 425587a1ff52edadddbdc7fd65cdb015324b99514128d3810a6d1bb6d2cd2f1c5daea03c1db0c4a89679358793f9201156dd821ce795d704ede12bdb151fafdd
|
||||
|
@ -0,0 +1 @@
|
||||
d /var/lib/motion/ 0750 motion video
|
@ -0,0 +1,9 @@
|
||||
# Set the user and group under which motion will be run
|
||||
MOTION_USER="motion"
|
||||
MOTION_GROUP="video"
|
||||
|
||||
# Set the the directory for storing the pidfile
|
||||
MOTION_RUN_DIR="/var/run/motion"
|
||||
|
||||
# Set the the working directory for storing images/videos
|
||||
MOTION_LIB_DIR="/var/lib/motion"
|
@ -0,0 +1,43 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
depend() {
|
||||
need modules
|
||||
after mysql
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
export MOTION_RUN_DIR="${MOTION_RUN_DIR:-/var/run/motion}"
|
||||
checkpath -d -m 750 -o "${MOTION_USER:-motion}:${MOTION_GROUP:-video}" "${MOTION_RUN_DIR}"
|
||||
export MOTION_LIB_DIR="${MOTION_LIB_DIR:-/var/lib/motion}"
|
||||
checkpath -d -m 750 -o "${MOTION_USER:-motion}:${MOTION_GROUP:-video}" "${MOTION_LIB_DIR}"
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
|
||||
ebegin "Starting motion detection"
|
||||
start-stop-daemon --start -u "${MOTION_USER}" -g "${MOTION_GROUP}" -d "${MOTION_LIB_DIR}" --quiet --exec /usr/bin/motion -- -b -p "${MOTION_RUN_DIR}/motion.pid"
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
checkconfig || return 1
|
||||
|
||||
ebegin "Stopping motion detection"
|
||||
start-stop-daemon --stop --quiet --exec /usr/bin/motion --pidfile "${MOTION_RUN_DIR}/motion.pid"
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
checkconfig || return 1
|
||||
|
||||
ebegin "Reloading motion detection configuration"
|
||||
start-stop-daemon --stop --signal HUP --exec /usr/bin/motion --pidfile "${MOTION_RUN_DIR}/motion.pid"
|
||||
eend $?
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Motion detection daemon
|
||||
After=local-fs.target network.target
|
||||
Documentation=man:motion(1)
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/motion -n -c /etc/motion/motion.conf
|
||||
StandardError=null
|
||||
|
||||
User=motion
|
||||
Group=video
|
||||
|
||||
#RuntimeDirectory=motion
|
||||
#RuntimeDirectoryMode=0750
|
||||
|
||||
WorkingDirectory=/var/lib/motion
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Motion detection daemon for %I
|
||||
After=local-fs.target network.target
|
||||
Documentation=man:motion(1)
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/motion -n -c /etc/motion/motion-%i.conf
|
||||
StandardError=null
|
||||
|
||||
User=motion
|
||||
Group=video
|
||||
|
||||
#RuntimeDirectory=motion
|
||||
#RuntimeDirectoryMode=0750
|
||||
|
||||
WorkingDirectory=/var/lib/motion
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools readme.gentoo-r1 user systemd
|
||||
|
||||
DESCRIPTION="A software motion detector"
|
||||
HOMEPAGE="https://motion-project.github.io"
|
||||
SRC_URI="https://github.com/Motion-Project/${PN}/archive/release-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="ffmpeg libav mmal mysql postgres v4l"
|
||||
|
||||
RDEPEND="
|
||||
ffmpeg? (
|
||||
libav? ( media-video/libav:= )
|
||||
!libav? ( media-video/ffmpeg:0= )
|
||||
)
|
||||
virtual/jpeg:=
|
||||
mmal? ( media-libs/raspberrypi-userland )
|
||||
mysql? ( virtual/mysql )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
v4l? ( virtual/os-headers media-libs/libv4l )
|
||||
"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="You need to setup /etc/${PN}/${PN}.conf before running
|
||||
${PN} for the first time.
|
||||
To install ${PN} as a service, use:
|
||||
rc-update add ${PN} default # with OpenRC
|
||||
systemctl enable ${PN}.service # with systemd
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
enewuser ${PN} -1 -1 -1 video
|
||||
}
|
||||
|
||||
S="${WORKDIR}"/${PN}-release-${PV}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with ffmpeg) \
|
||||
$(use_with mmal) \
|
||||
$(use_with mysql) \
|
||||
$(use_with postgres pgsql) \
|
||||
$(use_with v4l) \
|
||||
--without-optimizecpu
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
docdir=/usr/share/doc/${PF} \
|
||||
examplesdir=/usr/share/doc/${PF}/examples \
|
||||
install
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_dounit "${FILESDIR}"/${PN}_at.service
|
||||
systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf
|
||||
|
||||
keepdir /var/lib/motion
|
||||
fowners motion:video /var/lib/motion
|
||||
fperms 0750 /var/lib/motion
|
||||
|
||||
mv -vf "${D}"/etc/${PN}/${PN}{-dist,}.conf || die
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST vlc-2.2.1.tar.xz 20940288 SHA256 543d9d7e378ec0fa1ee2e7f7f5acf8c456c7d0ecc32037171523197ef3cf1fcb SHA512 91cd33ac61ebe376c24b3cc0d1dc52d7765fdccbd17e75abbbbf38f52b400e0269dc48f34ed558bff7ec1dd52c4f27098012709a3eb9fe7e8aad1069516de5de WHIRLPOOL 5c889fc5c0137f022b0b3408a5252668a1a946ed45677bb97bbbf0ec14c9411c24e8d1587e987391596774aaf7f1e4592c55b0c0f76742e84296bbfffb08e885
|
||||
DIST vlc-2.2.4.tar.xz 22199316 SHA256 1632e91d2a0087e0ef4c3fb4c95c3c2890f7715a9d1d43ffd46329f428cf53be SHA512 2fc1fe957ba7903f2e0c9640884ed850cb10a60132d80658dee8da0b5abaf4a6ccdf95fa2b8c0a4a827be5e7e40341318bce44662a5248e04442f4779010f85c WHIRLPOOL 0d59d9c2a623f72a6c708f9face6f29b7c7e71a9b38faf3717b8f223641c6f599d1407a4976874226dbbd9e553ec528249dc4f301c5682bfb49f5745468934b2
|
||||
|
@ -1,12 +0,0 @@
|
||||
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b82416d7000a993b33e903095a590fe32212a85e
|
||||
diff --git a/modules/video_filter/opencv_example.cpp b/modules/video_filter/opencv_example.cpp
|
||||
index ae3af05..998f286 100644 (file)
|
||||
--- a/modules/video_filter/opencv_example.cpp
|
||||
+++ b/modules/video_filter/opencv_example.cpp
|
||||
@@ -41,6 +41,8 @@
|
||||
|
||||
#include <opencv2/core/core_c.h>
|
||||
#include <opencv2/core/core.hpp>
|
||||
+#include <opencv2/imgproc/imgproc_c.h>
|
||||
+#include <opencv2/imgproc/imgproc.hpp>
|
||||
#include <opencv2/objdetect/objdetect.hpp>
|
@ -1,23 +0,0 @@
|
||||
--- a/modules/access/rdp.c 2014-11-22 01:40:52.044973648 -0800
|
||||
+++ b/modules/access/rdp.c 2014-11-22 01:36:44.291975380 -0800
|
||||
@@ -399,7 +404,9 @@
|
||||
if ( p_sys->f_fps <= 0 ) p_sys->f_fps = 1.0;
|
||||
p_sys->i_frame_interval = 1000000 / p_sys->f_fps;
|
||||
|
||||
+#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2))
|
||||
freerdp_channels_global_init();
|
||||
+#endif
|
||||
|
||||
p_sys->p_instance = freerdp_new();
|
||||
if ( !p_sys->p_instance )
|
||||
@@ -475,7 +482,10 @@
|
||||
|
||||
freerdp_disconnect( p_sys->p_instance );
|
||||
freerdp_free( p_sys->p_instance );
|
||||
+
|
||||
+#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2))
|
||||
freerdp_channels_global_uninit();
|
||||
+#endif
|
||||
|
||||
if ( p_sys->p_block )
|
||||
block_Release( p_sys->p_block );
|
@ -1,15 +0,0 @@
|
||||
--- modules/hw/vdpau/Makefile.am.orig 2015-04-16 22:29:26.299342749 -0700
|
||||
+++ modules/hw/vdpau/Makefile.am 2015-04-16 22:31:40.886340950 -0700
|
||||
@@ -45,6 +45,7 @@
|
||||
libvdpau_chroma_plugin_la_LIBADD = libvlc_vdpau.la
|
||||
vdpau_LTLIBRARIES += libvdpau_chroma_plugin.la
|
||||
|
||||
+if HAVE_XCB
|
||||
libvdpau_display_plugin_la_SOURCES = display.c
|
||||
libvdpau_display_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../../video_output/xcb
|
||||
libvdpau_display_plugin_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
|
||||
@@ -52,3 +53,4 @@
|
||||
../../video_output/libvlc_xcb_events.la \
|
||||
$(AM_LIBADD) $(X_LIBS) $(X_PRE_LIBS) -lX11 $(XCB_LIBS)
|
||||
vdpau_LTLIBRARIES += libvdpau_display_plugin.la
|
||||
+endif
|
@ -1,15 +0,0 @@
|
||||
https://git.videolan.org/?p=vlc/vlc-2.2.git;a=commitdiff;h=ce91452460a75d7424b165c4dc8db98114c3cbd9;hp=9e12195d3e4316278af1fa4bcb6a705ff27456fd
|
||||
--- a/modules/demux/mp4/libmp4.c
|
||||
+++ b/modules/demux/mp4/libmp4.c
|
||||
@@ -3643,6 +3643,11 @@ void MP4_BoxFree( stream_t *s, MP4_Box_t *p_box )
|
||||
{
|
||||
for( i_index = 0; ; i_index++ )
|
||||
{
|
||||
+ if ( MP4_Box_Function[i_index].i_parent &&
|
||||
+ p_box->p_father &&
|
||||
+ p_box->p_father->i_type != MP4_Box_Function[i_index].i_parent )
|
||||
+ continue;
|
||||
+
|
||||
if( ( MP4_Box_Function[i_index].i_type == p_box->i_type )||
|
||||
( MP4_Box_Function[i_index].i_type == 0 ) )
|
||||
{
|
@ -1,506 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
SCM=""
|
||||
if [ "${PV%9999}" != "${PV}" ] ; then
|
||||
SCM="git-r3"
|
||||
|
||||
if [ "${PV%.9999}" != "${PV}" ] ; then
|
||||
EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
|
||||
else
|
||||
EGIT_REPO_URI="git://git.videolan.org/vlc.git"
|
||||
fi
|
||||
fi
|
||||
|
||||
inherit eutils multilib autotools toolchain-funcs flag-o-matic versionator virtualx ${SCM}
|
||||
|
||||
MY_PV="${PV/_/-}"
|
||||
MY_PV="${MY_PV/-beta/-test}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="VLC media player - Video player and streamer"
|
||||
HOMEPAGE="http://www.videolan.org/vlc/"
|
||||
if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
|
||||
SRC_URI=""
|
||||
elif [[ "${MY_P}" == "${P}" ]]; then
|
||||
SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
|
||||
else
|
||||
SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1 GPL-2"
|
||||
SLOT="0/5-8" # vlc - vlccore
|
||||
|
||||
if [[ ${PV} != *9999 ]] ; then
|
||||
KEYWORDS="amd64 ~arm ppc ppc64 -sparc x86 ~x86-fbsd"
|
||||
fi
|
||||
|
||||
IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec
|
||||
+avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug
|
||||
directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +encode faad fdk
|
||||
fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
|
||||
growl httpd ieee1394 jack jpeg kate kde libass libav libcaca libnotify
|
||||
+libsamplerate libtiger linsys libtar lirc live lua
|
||||
macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit
|
||||
matroska cpu_flags_x86_mmx modplug mp3 mpeg
|
||||
mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus
|
||||
png postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba
|
||||
schroedinger sdl sdl-image sftp shout sid skins speex cpu_flags_x86_sse svg +swscale
|
||||
taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau
|
||||
vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zeroconf zvbi"
|
||||
|
||||
RDEPEND="
|
||||
!>=media-video/ffmpeg-3.0:0
|
||||
dev-libs/libgpg-error:0
|
||||
net-dns/libidn:0
|
||||
>=sys-libs/zlib-1.2.5.1-r2:0[minizip]
|
||||
virtual/libintl:0
|
||||
a52? ( >=media-libs/a52dec-0.7.4-r3:0 )
|
||||
aalib? ( media-libs/aalib:0 )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.24:0 )
|
||||
avcodec? (
|
||||
!libav? ( media-video/ffmpeg:0= )
|
||||
libav? ( >=media-video/libav-11:0= )
|
||||
)
|
||||
avformat? (
|
||||
!libav? ( media-video/ffmpeg:0= )
|
||||
libav? ( media-video/libav:0= )
|
||||
)
|
||||
bidi? ( >=dev-libs/fribidi-0.10.4:0 )
|
||||
bluray? ( >=media-libs/libbluray-0.3:0 )
|
||||
cddb? ( >=media-libs/libcddb-1.2:0 )
|
||||
chromaprint? ( >=media-libs/chromaprint-0.6:0 )
|
||||
dbus? ( >=sys-apps/dbus-1.6:0 )
|
||||
dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.1:2 )
|
||||
directfb? ( dev-libs/DirectFB:0 sys-libs/zlib:0 )
|
||||
dts? ( >=media-libs/libdca-0.0.5:0 )
|
||||
dvbpsi? ( >=media-libs/libdvbpsi-0.2.1:0= )
|
||||
dvd? ( >=media-libs/libdvdread-4.9:0 >=media-libs/libdvdnav-4.9:0 )
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 )
|
||||
faad? ( >=media-libs/faad2-2.6.1:0 )
|
||||
fdk? ( media-libs/fdk-aac:0 )
|
||||
flac? ( >=media-libs/libogg-1:0 >=media-libs/flac-1.1.2:0 )
|
||||
fluidsynth? ( >=media-sound/fluidsynth-1.1.2:0 )
|
||||
fontconfig? ( media-libs/fontconfig:1.0 )
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0= )
|
||||
gme? ( media-libs/game-music-emu:0 )
|
||||
gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 )
|
||||
gnutls? ( >=net-libs/gnutls-3.0.20:0 )
|
||||
ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 )
|
||||
jack? ( virtual/jack )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
kate? ( >=media-libs/libkate-0.3:0 )
|
||||
libass? ( >=media-libs/libass-0.9.8:0= media-libs/fontconfig:1.0 )
|
||||
libcaca? ( >=media-libs/libcaca-0.99_beta14:0 )
|
||||
libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 )
|
||||
libsamplerate? ( media-libs/libsamplerate:0 )
|
||||
libtar? ( >=dev-libs/libtar-1.2.11-r3:0 )
|
||||
libtiger? ( >=media-libs/libtiger-0.3.1:0 )
|
||||
linsys? ( >=media-libs/zvbi-0.2.28:0 )
|
||||
lirc? ( app-misc/lirc:0 )
|
||||
live? ( >=media-plugins/live-2011.12.23:0 )
|
||||
lua? ( >=dev-lang/lua-5.1:0 )
|
||||
matroska? ( >=dev-libs/libebml-1:0= >=media-libs/libmatroska-1:0= )
|
||||
modplug? ( >=media-libs/libmodplug-0.8.4:0 !~media-libs/libmodplug-0.8.8 )
|
||||
mp3? ( media-libs/libmad:0 )
|
||||
mpeg? ( >=media-libs/libmpeg2-0.3.2:0 )
|
||||
mtp? ( >=media-libs/libmtp-1:0 )
|
||||
musepack? ( >=media-sound/musepack-tools-444:0 )
|
||||
ncurses? ( sys-libs/ncurses:0=[unicode] )
|
||||
ogg? ( >=media-libs/libogg-1:0 )
|
||||
opencv? ( >media-libs/opencv-2:0 )
|
||||
opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 )
|
||||
opus? ( >=media-libs/opus-1.0.3:0 )
|
||||
png? ( media-libs/libpng:0= sys-libs/zlib:0 )
|
||||
postproc? (
|
||||
!libav? ( >=media-video/ffmpeg-2.2:0= )
|
||||
libav? ( media-libs/libpostproc:0= )
|
||||
)
|
||||
projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-1:0 )
|
||||
!qt5? ( qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) )
|
||||
qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 )
|
||||
rdp? ( >=net-misc/freerdp-1.0.1:0=[client] <net-misc/freerdp-2 )
|
||||
samba? ( >=net-fs/samba-4.0.0_alpha1:0[client] )
|
||||
schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
|
||||
sdl? ( >=media-libs/libsdl-1.2.10:0
|
||||
sdl-image? ( >=media-libs/sdl-image-1.2.10:0 sys-libs/zlib:0 ) )
|
||||
sftp? ( net-libs/libssh2:0 )
|
||||
shout? ( >=media-libs/libshout-2.1:0 )
|
||||
sid? ( media-libs/libsidplay:2 )
|
||||
skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 )
|
||||
speex? ( media-libs/speex:0 )
|
||||
svg? ( >=gnome-base/librsvg-2.9:2 >=x11-libs/cairo-1.13.1:0 )
|
||||
swscale? (
|
||||
!libav? ( media-video/ffmpeg:0= )
|
||||
libav? ( media-video/libav:0= )
|
||||
)
|
||||
taglib? ( >=media-libs/taglib-1.9:0 sys-libs/zlib:0 )
|
||||
theora? ( >=media-libs/libtheora-1.0_beta3:0 )
|
||||
tremor? ( media-libs/tremor:0 )
|
||||
truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0
|
||||
!fontconfig? ( media-fonts/dejavu:0 ) )
|
||||
twolame? ( media-sound/twolame:0 )
|
||||
udev? ( >=virtual/udev-142:0 )
|
||||
upnp? ( net-libs/libupnp:0 )
|
||||
v4l? ( media-libs/libv4l:0 )
|
||||
vaapi? (
|
||||
x11-libs/libva:0[X,drm]
|
||||
!libav? ( media-video/ffmpeg:0=[vaapi] )
|
||||
libav? ( media-video/libav:0=[vaapi] )
|
||||
)
|
||||
vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 )
|
||||
zeroconf? ( >=net-dns/avahi-0.6:0[dbus] )
|
||||
"
|
||||
|
||||
# Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works;
|
||||
# thus we'll have to wait for a new release there.
|
||||
RDEPEND="${RDEPEND}
|
||||
vdpau? (
|
||||
>=x11-libs/libvdpau-0.6:0
|
||||
!libav? ( >=media-video/ffmpeg-2.2:0= )
|
||||
libav? ( >=media-video/libav-10:0= )
|
||||
)
|
||||
vnc? ( >=net-libs/libvncserver-0.9.9:0 )
|
||||
vorbis? ( >=media-libs/libvorbis-1.1:0 )
|
||||
vpx? ( media-libs/libvpx:0= )
|
||||
X? ( x11-libs/libX11:0 )
|
||||
x264? ( >=media-libs/x264-0.0.20090923:0= )
|
||||
x265? ( media-libs/x265:0= )
|
||||
xcb? ( >=x11-libs/libxcb-1.6:0 >=x11-libs/xcb-util-0.3.4:0 >=x11-libs/xcb-util-keysyms-0.3.4:0 )
|
||||
xml? ( >=dev-libs/libxml2-2.5:2 )
|
||||
zvbi? ( >=media-libs/zvbi-0.2.25:0 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
!qt5? ( kde? ( kde-frameworks/kdelibs:4 ) )
|
||||
xcb? ( x11-proto/xproto:0 )
|
||||
app-arch/xz-utils:0
|
||||
x86? ( dev-lang/yasm:* )
|
||||
amd64? ( dev-lang/yasm:* )
|
||||
>=sys-devel/gettext-0.18.3:*
|
||||
virtual/pkgconfig:*
|
||||
"
|
||||
|
||||
REQUIRED_USE="
|
||||
aalib? ( X )
|
||||
bidi? ( truetype )
|
||||
cddb? ( cdda )
|
||||
dvb? ( dvbpsi )
|
||||
dxva2? ( avcodec )
|
||||
ffmpeg? ( avcodec avformat swscale )
|
||||
fontconfig? ( truetype )
|
||||
gnutls? ( gcrypt )
|
||||
httpd? ( lua )
|
||||
libcaca? ( X )
|
||||
libtar? ( skins )
|
||||
libtiger? ( kate )
|
||||
qt4? ( X )
|
||||
qt5? ( X )
|
||||
sdl? ( X )
|
||||
skins? ( truetype X xml || ( qt4 qt5 ) )
|
||||
vaapi? ( avcodec X )
|
||||
vdpau? ( xcb )
|
||||
vlm? ( encode )
|
||||
xv? ( xcb )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ "${MERGE_TYPE}" != "binary" ]] && tc-is-gcc ; then
|
||||
if ! version_is_at_least 4.5 $(gcc-version) ; then
|
||||
die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [ "${PV%9999}" != "${PV}" ] ; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack ${A}
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove unnecessary warnings about unimplemented pragmas on gcc for now.
|
||||
# Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc.
|
||||
#
|
||||
# config.h:792: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
|
||||
# config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
|
||||
#
|
||||
# https://gcc.gnu.org/c99status.html
|
||||
if tc-is-gcc ; then
|
||||
sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
|
||||
fi
|
||||
|
||||
# Bootstrap when we are on a git checkout.
|
||||
if [[ "${PV%9999}" != "${PV}" ]] ; then
|
||||
./bootstrap
|
||||
fi
|
||||
|
||||
# Make it build with libtool 1.5
|
||||
rm -f m4/lt* m4/libtool.m4 || die
|
||||
|
||||
# We are not in a real git checkout due to the absence of a .git directory.
|
||||
touch src/revision.txt || die
|
||||
|
||||
# PATCHES
|
||||
# Fix build system mistake.
|
||||
epatch "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch
|
||||
|
||||
# Patch up incompatibilities and reconfigure autotools.
|
||||
epatch "${FILESDIR}"/${PN}-9999-libva-1.2.1-compat.patch
|
||||
|
||||
# Patch for bug 542414
|
||||
epatch "${FILESDIR}"/${PN}-2.2.0-rdp-1.2.0.patch
|
||||
|
||||
# Patch for bug 541928
|
||||
epatch "${FILESDIR}"/${PN}-2.2.0-xcb_vdpau.patch
|
||||
|
||||
# Fix up broken audio when skipping using a fixed reversed bisected commit.
|
||||
epatch "${FILESDIR}"/${PN}-2.1.0-TomWij-bisected-PA-broken-underflow.patch
|
||||
|
||||
# Bug #541678
|
||||
epatch "${FILESDIR}"/qt4-select.patch
|
||||
|
||||
# Add missed header imgproc_c.h, imgproc.hpp, bug #554562
|
||||
epatch "${FILESDIR}"/opencv-3.0.0.patch
|
||||
|
||||
epatch "${FILESDIR}"//${P}-CVE-2015-5949.patch
|
||||
|
||||
# Don't use --started-from-file when not using dbus.
|
||||
if ! use dbus ; then
|
||||
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
|
||||
# Disable automatic running of tests.
|
||||
find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
|
||||
|
||||
# If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt version may be used.
|
||||
# Setting QT_SELECT environment variable will enforce correct binaries.
|
||||
if use qt5; then
|
||||
export QT_SELECT=qt5
|
||||
elif use qt4; then
|
||||
export QT_SELECT=qt4
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
# Compatibility fix for Samba 4.
|
||||
use samba && append-cppflags "-I/usr/include/samba-4.0"
|
||||
|
||||
# We need to disable -fstack-check if use >=gcc 4.8.0.
|
||||
# See bug #499996
|
||||
use x86 && append-cflags $(test-flags-CC -fno-stack-check)
|
||||
|
||||
# Needs libresid-builder from libsidplay:2 which is in another directory...
|
||||
# FIXME!
|
||||
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
|
||||
|
||||
if use truetype || use projectm ; then
|
||||
local dejavu="/usr/share/fonts/dejavu/"
|
||||
myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \
|
||||
--with-default-font-family=Sans \
|
||||
--with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
|
||||
--with-default-monospace-font-family=Monospace"
|
||||
fi
|
||||
|
||||
if use qt5 ; then
|
||||
myconf+=" --enable-qt=5"
|
||||
else
|
||||
if use qt4 ; then
|
||||
myconf+=" --enable-qt=4"
|
||||
else
|
||||
myconf+=" --disable-qt"
|
||||
fi
|
||||
use kde && myconf+=" --with-kde-solid"
|
||||
fi
|
||||
|
||||
econf \
|
||||
${myconf} \
|
||||
--enable-vlc \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--disable-dependency-tracking \
|
||||
--disable-optimizations \
|
||||
--disable-update-check \
|
||||
--enable-fast-install \
|
||||
--enable-screen \
|
||||
$(use_enable a52) \
|
||||
$(use_enable aalib aa) \
|
||||
$(use_enable alsa) \
|
||||
$(use_enable altivec) \
|
||||
$(use_enable atmo) \
|
||||
$(use_enable audioqueue) \
|
||||
$(use_enable avcodec) \
|
||||
$(use_enable avformat) \
|
||||
$(use_enable bidi fribidi) \
|
||||
$(use_enable bluray) \
|
||||
$(use_enable cdda vcd) \
|
||||
$(use_enable cddb libcddb) \
|
||||
$(use_enable chromaprint) \
|
||||
$(use_enable dbus) \
|
||||
$(use_enable directfb) \
|
||||
$(use_enable directx) \
|
||||
$(use_enable dc1394) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable dts dca) \
|
||||
$(use_enable dvbpsi) \
|
||||
$(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
|
||||
$(use_enable dxva2) \
|
||||
$(use_enable encode sout) \
|
||||
$(use_enable faad) \
|
||||
$(use_enable fdk fdkaac) \
|
||||
$(use_enable flac) \
|
||||
$(use_enable fluidsynth) \
|
||||
$(use_enable fontconfig) \
|
||||
$(use_enable gcrypt libgcrypt) \
|
||||
$(use_enable gme) \
|
||||
$(use_enable gnome gnomevfs) \
|
||||
$(use_enable gnutls) \
|
||||
$(use_enable growl) \
|
||||
$(use_enable httpd) \
|
||||
$(use_enable ieee1394 dv1394) \
|
||||
$(use_enable jack) \
|
||||
$(use_enable jpeg) \
|
||||
$(use_enable kate) \
|
||||
$(use_enable libass) \
|
||||
$(use_enable libcaca caca) \
|
||||
$(use_enable libnotify notify) \
|
||||
$(use_enable libsamplerate samplerate) \
|
||||
$(use_enable libtar) \
|
||||
$(use_enable libtiger tiger) \
|
||||
$(use_enable linsys) \
|
||||
$(use_enable lirc) \
|
||||
$(use_enable live live555) \
|
||||
$(use_enable lua) \
|
||||
$(use_enable macosx-dialog-provider) \
|
||||
$(use_enable macosx-eyetv) \
|
||||
$(use_enable macosx-qtkit) \
|
||||
$(use_enable macosx-quartztext) \
|
||||
$(use_enable matroska mkv) \
|
||||
$(use_enable cpu_flags_x86_mmx mmx) \
|
||||
$(use_enable modplug mod) \
|
||||
$(use_enable mp3 mad) \
|
||||
$(use_enable mpeg libmpeg2) \
|
||||
$(use_enable mtp) \
|
||||
$(use_enable musepack mpc) \
|
||||
$(use_enable ncurses) \
|
||||
$(use_enable neon) \
|
||||
$(use_enable ogg) $(use_enable ogg mux_ogg) \
|
||||
$(use_enable omxil) \
|
||||
$(use_enable omxil omxil-vout) \
|
||||
$(use_enable opencv) \
|
||||
$(use_enable opengl glspectrum) \
|
||||
$(use_enable opus) \
|
||||
$(use_enable optimisememory optimize-memory) \
|
||||
$(use_enable png) \
|
||||
$(use_enable postproc) \
|
||||
$(use_enable projectm) \
|
||||
$(use_enable pulseaudio pulse) \
|
||||
$(use_enable rdp freerdp) \
|
||||
$(use_enable rtsp realrtsp) \
|
||||
$(use_enable run-as-root) \
|
||||
$(use_enable samba smbclient) \
|
||||
$(use_enable schroedinger) \
|
||||
$(use_enable sdl) \
|
||||
$(use_enable sdl-image) \
|
||||
$(use_enable sid) \
|
||||
$(use_enable sftp) \
|
||||
$(use_enable shout) \
|
||||
$(use_enable skins skins2) \
|
||||
$(use_enable speex) \
|
||||
$(use_enable cpu_flags_x86_sse sse) \
|
||||
$(use_enable svg) \
|
||||
$(use_enable svg svgdec) \
|
||||
$(use_enable swscale) \
|
||||
$(use_enable taglib) \
|
||||
$(use_enable theora) \
|
||||
$(use_enable tremor) \
|
||||
$(use_enable truetype freetype) \
|
||||
$(use_enable twolame) \
|
||||
$(use_enable udev) \
|
||||
$(use_enable upnp) \
|
||||
$(use_enable v4l v4l2) \
|
||||
$(use_enable vaapi libva) \
|
||||
$(use_enable vcdx) \
|
||||
$(use_enable vdpau) \
|
||||
$(use_enable vlm) \
|
||||
$(use_enable vnc) \
|
||||
$(use_enable vorbis) \
|
||||
$(use_enable vpx) \
|
||||
$(use_enable wma-fixed) \
|
||||
$(use_with X x) \
|
||||
$(use_enable x264) \
|
||||
$(use_enable x265) \
|
||||
$(use_enable xcb) \
|
||||
$(use_enable xml libxml2) \
|
||||
$(use_enable xv xvideo) \
|
||||
$(use_enable zeroconf bonjour) \
|
||||
$(use_enable zvbi) $(use_enable !zvbi telx) \
|
||||
--disable-asdcp \
|
||||
--disable-coverage \
|
||||
--disable-cprof \
|
||||
--disable-crystalhd \
|
||||
--disable-decklink \
|
||||
--disable-gles1 \
|
||||
--disable-gles2 \
|
||||
--disable-goom \
|
||||
--disable-kai \
|
||||
--disable-kva \
|
||||
--disable-maintainer-mode \
|
||||
--disable-merge-ffmpeg \
|
||||
--disable-mfx \
|
||||
--disable-mmal-codec \
|
||||
--disable-mmal-vout \
|
||||
--disable-opensles \
|
||||
--disable-oss \
|
||||
--disable-quicktime \
|
||||
--disable-rpi-omxil \
|
||||
--disable-shine \
|
||||
--disable-sndio \
|
||||
--disable-vda \
|
||||
--disable-vsxu \
|
||||
--disable-wasapi
|
||||
|
||||
# ^ We don't have these disabled libraries in the Portage tree yet.
|
||||
|
||||
# _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo.
|
||||
# Other values of _FORTIFY_SOURCE may break the build (bug 523144), so definition should not be removed from config.h.
|
||||
# To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the very start of config.h file
|
||||
sed -i '1i#undef _FORTIFY_SOURCE' "${S}"/config.h || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx emake check-TESTS
|
||||
}
|
||||
|
||||
DOCS="AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Punt useless libtool's .la files
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
|
||||
einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
|
||||
"/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
|
||||
else
|
||||
ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
|
||||
ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
|
||||
ewarn "If you do not do it, vlc will take a long time to load."
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue