parent
fa02ae54b1
commit
99f724d567
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="Tools for manipulating UEFI secure boot platforms"
|
||||
HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git"
|
||||
SRC_URI=""
|
||||
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git"
|
||||
EGIT_COMMIT="v1.7.0"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/openssl
|
||||
sys-apps/util-linux"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/help2man
|
||||
>=sys-boot/gnu-efi-3.0u
|
||||
app-crypt/sbsigntool
|
||||
virtual/pkgconfig
|
||||
dev-perl/File-Slurp"
|
@ -1 +1,2 @@
|
||||
DIST tea-41.1.0.tar.bz2 381370 SHA256 65ea128739802b7626a5a59de12b0e885dcef7a83f7bcd06b6d3aea830ed8717 SHA512 a46e0cdfce5c7d453c7783c59ad98b2b029847ddcc8ce0655c6e1ae45825426ac1b271ca7ad90f0219d8f796f507f6bdba0f2c764c563c8c23503b94be817eb7 WHIRLPOOL a3d00f5e42a145be2a7f3bf846832bf2a7e95e957abf4c928118be7607adb57fddfb906fbedaf7fa51665b25629beae0fe5b4db40886f42dfcf5c166e43717b5
|
||||
DIST tea-41.1.1.tar.bz2 382592 SHA256 5f17a1f190c7a31f326273f5c987378f9fdbc3fc34a7d0a97529bc926492bef9 SHA512 087325a80f86b27c20174849a8477d1d994176f560fc0bc353cfa6bfcfc1e916bac42607d94640cd1c2e1abd6385db7a836557a6ef2defae6de0901195fc7975 WHIRLPOOL d1e48c2ba40d2978a06c2069927ba664b17f84039e96b349937ae5f159e32998a964fd86e8c89725bb36845aba541ba4eccfb91f939fb352b727e1cf2aa72548
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PLOCALES="de fr ru"
|
||||
|
||||
inherit eutils l10n qmake-utils
|
||||
|
||||
DESCRIPTION="Small, lightweight Qt text editor"
|
||||
HOMEPAGE="http://tea.ourproject.org/ http://semiletov.org/tea/"
|
||||
SRC_URI="http://tea.ourproject.org/dloads/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd"
|
||||
IUSE="aspell hunspell"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
sys-libs/zlib
|
||||
aspell? ( app-text/aspell )
|
||||
hunspell? ( app-text/hunspell )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
hunspell? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS TODO )
|
||||
|
||||
src_configure() {
|
||||
eqmake4 src.pro \
|
||||
$(use aspell || echo CONFIG+=noaspell) \
|
||||
$(use hunspell || echo CONFIG+=nohunspell)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/tea
|
||||
|
||||
newicon icons/tea-icon-v3-01.png ${PN}.png
|
||||
make_desktop_entry ${PN} 'Tea Editor'
|
||||
|
||||
# translations
|
||||
insinto /usr/share/qt4/translations
|
||||
local lang
|
||||
for lang in $(l10n_get_locales); do
|
||||
doins translations/${PN}_${lang}.qm
|
||||
done
|
||||
|
||||
# docs
|
||||
dohtml manuals/en.html
|
||||
if use linguas_ru; then
|
||||
dodoc NEWS-RU
|
||||
dohtml manuals/ru.html
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST qpdfview-0.4.13.tar.gz 563548 SHA256 8ff563055fb4df476afed08ead465e6204c16fc419a483ebf3dbe89779f28e41 SHA512 0246a2954ca01a1b3df69473ee53c7674ee891c460a26aebbf8acf2505692ec40eb712388893eddf6954180ddadb7965f173b9e55a3574f2cc8c0820d78be952 WHIRLPOOL 702ba4b5f1c597dfb4483775d9b089ff263594d99f7c9866c81ffb1a7755615b960c90a3b6c7cb8ea4b0d078c7d80b645612b5ce2eb618b2fedb785a6c67a725
|
||||
DIST qpdfview-0.4.15.tar.gz 611036 SHA256 a2dca83bc12c1241fc0603f8fb029a5d5011c68f9266d4a3a804fb75bf00f271 SHA512 dd87bcb62af75e3d96197f2ff6a76dde5c4a418dd6989050b9a606370b4a7f437a8a94fdef5f947e519b2880cb374af5f406ff4201bcd52da7a98949e63b02e4 WHIRLPOOL b78b76fa29f7775c3120bfd4487fb0dbcad82da923d5f02ba160912a9ecc1cc5831353b999c2ec36d9dbc7e464b650e4c1f753eb0f5ebe7d3014c0fb568dcf82
|
||||
DIST qpdfview-0.4.16.tar.gz 636095 SHA256 fad416e8fefc3057fa1b8d12d964c7eccd16dffe0307a0d6e9d55a543294da7f SHA512 d3ac05fc51d48533e44e58cd19e5d222a8bfbc9da4df02ece6a405d2fdd3346eb4614816ae91e89facf28e107b920ff3ce7b2ccc8c9b7832ae2595ef70d65584 WHIRLPOOL 47bc82937562fdcbdf17f567bb0fa6e8eebd2e657320c129e9fd4f592c27eab855e7d2d69a22b45666509ace93b12528811b0671cb9483607448152bb676f11e
|
||||
|
@ -0,0 +1,97 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PLOCALES="ast az be bg bs ca cs da de el en_GB eo es eu fi fr gl he hr hu id it kk ko ky lt ms my pl pt pt_BR ro ru sk sv th tr ug uk vi zh_CN"
|
||||
|
||||
inherit l10n qmake-utils
|
||||
|
||||
DESCRIPTION="A tabbed document viewer"
|
||||
HOMEPAGE="https://launchpad.net/qpdfview"
|
||||
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="cups +dbus djvu fitz +pdf postscript qt5 +sqlite +svg synctex"
|
||||
|
||||
REQUIRED_USE="?? ( fitz pdf )"
|
||||
|
||||
RDEPEND="
|
||||
cups? ( net-print/cups )
|
||||
djvu? ( app-text/djvu )
|
||||
fitz? ( >=app-text/mupdf-1.7:= )
|
||||
postscript? ( app-text/libspectre )
|
||||
!qt5? ( dev-qt/qtcore:4[iconv]
|
||||
dev-qt/qtgui:4
|
||||
sys-apps/file
|
||||
dbus? ( dev-qt/qtdbus:4 )
|
||||
pdf? ( >=app-text/poppler-0.35[qt4] )
|
||||
sqlite? ( dev-qt/qtsql:4[sqlite] )
|
||||
svg? ( dev-qt/qtsvg:4 ) )
|
||||
qt5? ( dev-qt/qtconcurrent:5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwidgets:5
|
||||
dbus? ( dev-qt/qtdbus:5 )
|
||||
pdf? ( >=app-text/poppler-0.35[qt5]
|
||||
dev-qt/qtxml:5 )
|
||||
sqlite? ( dev-qt/qtsql:5[sqlite] )
|
||||
svg? ( dev-qt/qtsvg:5 ) )
|
||||
!svg? ( virtual/freedesktop-icon-theme )
|
||||
synctex? ( app-text/texlive-core )"
|
||||
DEPEND="${RDEPEND}
|
||||
qt5? ( dev-qt/linguist-tools:5 )
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=( CHANGES CONTRIBUTORS README TODO )
|
||||
|
||||
src_prepare() {
|
||||
local mylrelease="$(qt4_get_bindir)"/lrelease
|
||||
use qt5 && mylrelease="$(qt5_get_bindir)"/lrelease
|
||||
|
||||
prepare_locale() {
|
||||
"${mylrelease}" "translations/${PN}_${1}.ts" || die "preparing ${1} locale failed"
|
||||
}
|
||||
|
||||
rm_help() {
|
||||
rm -f "help/help_${1}.html" || die "removing ${1} help file failed"
|
||||
}
|
||||
|
||||
l10n_find_plocales_changes translations ${PN}_ .ts
|
||||
l10n_for_each_locale_do prepare_locale
|
||||
l10n_for_each_disabled_locale_do rm_help
|
||||
|
||||
# adapt for prefix
|
||||
sed -i -e "s:/usr:${EPREFIX}/usr:g" qpdfview.pri || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconfig=() i=
|
||||
for i in cups dbus djvu pdf svg synctex; do
|
||||
use ${i} || myconfig+=(without_${i})
|
||||
done
|
||||
use fitz && myconfig+=(with_fitz)
|
||||
use postscript || myconfig+=(without_ps)
|
||||
use sqlite || myconfig+=(without_sql)
|
||||
|
||||
local myqmakeargs=(
|
||||
qpdfview.pro
|
||||
CONFIG+="${myconfig[@]}"
|
||||
PLUGIN_INSTALL_PATH="${EPREFIX}/usr/$(get_libdir)/${PN}"
|
||||
)
|
||||
if use qt5; then
|
||||
eqmake5 "${myqmakeargs[@]}"
|
||||
else
|
||||
eqmake4 "${myqmakeargs[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
einstalldocs
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
diff --git a/Configure.pl b/Configure.pl
|
||||
index 72a5dad..f829d5c 100755
|
||||
--- a/Configure.pl
|
||||
+++ b/Configure.pl
|
||||
@@ -32,7 +32,7 @@ GetOptions(\%args, qw(
|
||||
os=s shell=s toolchain=s compiler=s
|
||||
ar=s cc=s ld=s make=s has-sha has-libuv
|
||||
static has-libtommath has-libatomic_ops
|
||||
- has-dyncall has-libffi
|
||||
+ has-dyncall has-libffi pkgconfig=s
|
||||
build=s host=s big-endian jit! enable-jit lua=s has-dynasm
|
||||
prefix=s bindir=s libdir=s mastdir=s make-install asan ubsan),
|
||||
'no-optimize|nooptimize' => sub { $args{optimize} = 0 },
|
||||
@@ -99,6 +99,7 @@ $config{config} = join ' ', map { / / ? "\"$_\"" : $_ } @args;
|
||||
$config{osname} = $^O;
|
||||
$config{osvers} = $Config{osvers};
|
||||
$config{lua} = $args{lua} // './3rdparty/dynasm/minilua@exe@';
|
||||
+$config{pkgconfig} = $args{pkgconfig} // '/usr/bin/pkg-config';
|
||||
|
||||
# set options that take priority over all others
|
||||
my @keys = qw( ar cc ld make );
|
||||
@@ -164,12 +165,33 @@ if (-e '3rdparty/libuv/src/unix/threadpool' . $defaults{obj}
|
||||
system($defaults{make}, 'realclean')
|
||||
}
|
||||
|
||||
+# test whether pkg-config works
|
||||
+if (-e "$config{pkgconfig}") {
|
||||
+ print("\nTesting pkgconfig ... ");
|
||||
+ system("$config{pkgconfig}", "--version");
|
||||
+ if ( $? == 0 ) {
|
||||
+ $config{pkgconfig_works} = 1;
|
||||
+ } else {
|
||||
+ $config{pkgconfig_works} = 0;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
# conditionally set include dirs and install rules
|
||||
$config{cincludes} //= '';
|
||||
$config{install} //= '';
|
||||
if ($args{'has-libuv'}) {
|
||||
$defaults{-thirdparty}->{uv} = undef;
|
||||
unshift @{$config{usrlibs}}, 'uv';
|
||||
+ if ($config{pkgconfig_works}) {
|
||||
+ my $result = `$config{pkgconfig} --cflags libuv`;
|
||||
+ if ( $? == 0 ) {
|
||||
+ $result =~ s/\n/ /g;
|
||||
+ $config{cincludes} .= ' ' . "$result";
|
||||
+ print("Adding extra include for libuv: $result\n");
|
||||
+ } else {
|
||||
+ print("Error occured when running $config{pkgconfig} --cflags libuv.\n");
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
else {
|
||||
$config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libuv/include'
|
||||
@@ -181,6 +203,16 @@ else {
|
||||
if ($args{'has-libatomic_ops'}) {
|
||||
$defaults{-thirdparty}->{lao} = undef;
|
||||
unshift @{$config{usrlibs}}, 'atomic_ops';
|
||||
+ if ($config{pkgconfig_works}) {
|
||||
+ my $result = `$config{pkgconfig} --cflags atomic_ops`;
|
||||
+ if ( $? == 0 ) {
|
||||
+ $result =~ s/\n/ /g;
|
||||
+ $config{cincludes} .= ' ' . "$result";
|
||||
+ print("Adding extra include for atomic_ops: $result\n");
|
||||
+ } else {
|
||||
+ print("Error occured when running $config{pkgconfig} --cflags atomic_ops.\n");
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
else {
|
||||
$config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libatomic_ops/src';
|
||||
@@ -216,7 +248,8 @@ if ($args{'has-libtommath'}) {
|
||||
}
|
||||
else {
|
||||
$config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libtommath';
|
||||
- $config{install} .= "\t\$(CP) 3rdparty/libtommath/*.h \$(DESTDIR)\$(PREFIX)/include/libtommath\n";
|
||||
+ $config{install} .= "\t\$(MKPATH) \$(DESTDIR)\$(PREFIX)/include/libtommath\n"
|
||||
+ . "\t\$(CP) 3rdparty/libtommath/*.h \$(DESTDIR)\$(PREFIX)/include/libtommath\n";
|
||||
}
|
||||
|
||||
if ($args{'has-dynasm'}) {
|
||||
@@ -232,6 +265,16 @@ if ($args{'has-libffi'}) {
|
||||
$config{nativecall_backend} = 'libffi';
|
||||
unshift @{$config{usrlibs}}, 'ffi';
|
||||
push @{$config{defs}}, 'HAVE_LIBFFI';
|
||||
+ if ($config{pkgconfig_works}) {
|
||||
+ my $result = `$config{pkgconfig} --cflags libffi`;
|
||||
+ if ( $? == 0 ) {
|
||||
+ $result =~ s/\n/ /g;
|
||||
+ $config{cincludes} .= ' ' . "$result";
|
||||
+ print("Adding extra include for libffi: $result\n");
|
||||
+ } else {
|
||||
+ print("Error occured when running $config{pkgconfig} --cflags libffi.\n");
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
elsif ($args{'has-dyncall'}) {
|
||||
unshift @{$config{usrlibs}}, 'dyncall_s', 'dyncallback_s', 'dynload_s';
|
||||
@@ -364,6 +407,7 @@ my $order = $config{be} ? 'big endian' : 'little endian';
|
||||
print "\n", <<TERM, "\n";
|
||||
make: $config{make}
|
||||
compile: $config{cc} $config{cflags}
|
||||
+ includes: $config{cincludes}
|
||||
link: $config{ld} $config{ldflags}
|
||||
libs: $config{ldlibs}
|
||||
|
||||
@@ -873,6 +917,10 @@ Build and install MoarVM in addition to configuring it.
|
||||
|
||||
=item --has-libffi
|
||||
|
||||
+=item --pkgconfig=/path/to/pkgconfig/executable
|
||||
+
|
||||
+Provide path to the pkgconfig executable. Default: /usr/bin/pkg-config
|
||||
+
|
||||
=item --no-jit
|
||||
|
||||
Disable JIT compiler, which is enabled by default to JIT-compile hot frames.
|
||||
diff --git a/build/Makefile.in b/build/Makefile.in
|
||||
index 56a4c8a..b94e847 100644
|
||||
--- a/build/Makefile.in
|
||||
+++ b/build/Makefile.in
|
||||
@@ -454,9 +454,6 @@ install: all
|
||||
$(CP) src/strings/*.h $(DESTDIR)$(PREFIX)/include/moar/strings
|
||||
$(CP) src/jit/*.h $(DESTDIR)$(PREFIX)/include/moar/jit
|
||||
$(CP) src/instrument/*.h $(DESTDIR)$(PREFIX)/include/moar/instrument
|
||||
- $(MKPATH) $(DESTDIR)$(PREFIX)/include/libuv
|
||||
- $(MKPATH) $(DESTDIR)$(PREFIX)/include/libtommath
|
||||
- $(CP) 3rdparty/libuv/include/*.h $(DESTDIR)$(PREFIX)/include/libuv
|
||||
@install@
|
||||
|
||||
lib: @moar@
|
||||
diff --git a/build/setup.pm b/build/setup.pm
|
||||
index 324cc88..c87d79e 100755
|
||||
--- a/build/setup.pm
|
||||
+++ b/build/setup.pm
|
||||
@@ -125,7 +125,7 @@ our %TC_POSIX = (
|
||||
ccshared => '-fPIC',
|
||||
ldshared => '-shared @ccshared@',
|
||||
moarshared => '',
|
||||
- ldrpath => '-Wl,-rpath,@libdir@ -Wl,-rpath,@prefix@/share/perl6/site/lib',
|
||||
+ ldrpath => '-Wl,-rpath,/@libdir@ -Wl,-rpath,@prefix@/share/perl6/site/lib',
|
||||
|
||||
arflags => 'rcs',
|
||||
arout => '',
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="https://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs +system-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libtommath
|
||||
dev-libs/libuv
|
||||
jit? ( dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp )
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
PATCHES=( "${FILESDIR}/Configure-2016.04.patch" )
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_prepare() {
|
||||
eapply "${PATCHES[@]}"
|
||||
eapply_user
|
||||
use doc && DOCS+=( docs/* )
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex jit --lua=/usr/bin/lua --no-jit)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex system-libs --has-libtommath)"
|
||||
"$(usex system-libs --has-libuv)"
|
||||
"$(usex system-libs --has-libatomic_ops)"
|
||||
"$(usex system-libs --has-libffi)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,36 +1,68 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
inherit eutils git-r3
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="https://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="https://github.com/MoarVM/MoarVM"
|
||||
EGIT_REPO_URI="https://github.com/MoarVM/MoarVM.git"
|
||||
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="doc"
|
||||
IUSE="asan clang debug doc +jit static-libs +system-libs optimize ubsan"
|
||||
|
||||
RDEPEND=""
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libtommath
|
||||
dev-libs/libuv
|
||||
jit? ( dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp )
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
PATCHES=( "${FILESDIR}/Configure-2016.04.patch" )
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/Configure-9999.patch" || die
|
||||
eapply "${PATCHES[@]}"
|
||||
eapply_user
|
||||
use doc && DOCS+=( docs/* )
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# this is quite badong, but wtf build system
|
||||
echo "2013.10-145-gec52026" >> VERSION
|
||||
perl Configure.pl --prefix="${D}/usr"|| die
|
||||
}
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex jit --lua=/usr/bin/lua --no-jit)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex system-libs --has-libtommath)"
|
||||
"$(usex system-libs --has-libuv)"
|
||||
"$(usex system-libs --has-libatomic_ops)"
|
||||
"$(usex system-libs --has-libffi)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
src_install() {
|
||||
make install
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
||||
|
@ -0,0 +1,214 @@
|
||||
diff --git a/Configure.pl b/Configure.pl
|
||||
index 2064ac8..73e2d27 100755
|
||||
--- a/Configure.pl
|
||||
+++ b/Configure.pl
|
||||
@@ -34,6 +34,7 @@ MAIN: {
|
||||
'no-clean',
|
||||
'with-parrot=s', 'gen-parrot:s', 'parrot-config=s', 'parrot-option=s@',
|
||||
'with-moar=s', 'gen-moar:s', 'moar-option=s@',
|
||||
+ 'with-asm=s', 'with-asm-tree=s', 'with-jline=s', 'with-jna=s',
|
||||
'make-install!', 'makefile-timing!',
|
||||
'git-protocol=s',
|
||||
'git-depth=s', 'git-reference=s',);
|
||||
@@ -50,6 +51,53 @@ MAIN: {
|
||||
"Use --prefix to specify a directory in which parrot is installed.";
|
||||
}
|
||||
|
||||
+ if ($options{'with-asm'}) {
|
||||
+ if ($options{'with-asm'} ne '-') {
|
||||
+ $config{'asm'} = $options{'with-asm'};
|
||||
+ }
|
||||
+ } else {
|
||||
+ $config{'asm'} = "3rdparty/asm/asm-4.1.jar";
|
||||
+ }
|
||||
+ if ($options{'with-asm-tree'}) {
|
||||
+ if ($options{'with-asm-tree'} ne '-') {
|
||||
+ $config{'asmtree'} = $options{'with-asm-tree'};
|
||||
+ }
|
||||
+ } else {
|
||||
+ $config{'asmtree'} = "3rdparty/asm/asm-tree-4.1.jar";
|
||||
+ }
|
||||
+ if ($options{'with-jline'}) {
|
||||
+ if ($options{'with-jline'} ne '-') {
|
||||
+ $config{'jline'} = $options{'with-jline'};
|
||||
+ }
|
||||
+ } else {
|
||||
+ $config{'jline'} = "3rdparty/jline/jline-1.0.jar";
|
||||
+ }
|
||||
+ if ($options{'with-jna'}) {
|
||||
+ if ($options{'with-jna'} ne '-') {
|
||||
+ $config{'jna'} = $options{'with-jna'};
|
||||
+ }
|
||||
+ } else {
|
||||
+ $config{'jna'} = "3rdparty/jna/jna.jar";
|
||||
+ }
|
||||
+
|
||||
+ if ($^O eq 'MSWin32') {
|
||||
+ $config{'asmfile'} = $config{'asm'};
|
||||
+ $config{'asmfile'} =~ s/.*\\//;
|
||||
+ $config{'jlinefile'} = $config{'jline'};
|
||||
+ $config{'jlinefile'} =~ s/.*\\//;
|
||||
+ } else {
|
||||
+ $config{'asmfile'} = $config{'asm'};
|
||||
+ $config{'asmfile'} =~ s/.*\///;
|
||||
+ $config{'jlinefile'} = $config{'jline'};
|
||||
+ $config{'jlinefile'} =~ s/.*\///;
|
||||
+ }
|
||||
+
|
||||
+ fill_template_file(
|
||||
+ 'tools/build/install-jvm-runner.pl.in',
|
||||
+ 'tools/build/install-jvm-runner.pl',
|
||||
+ %config,
|
||||
+ );
|
||||
+
|
||||
my $default_backend;
|
||||
my @backends;
|
||||
my %backends;
|
||||
@@ -357,6 +405,11 @@ General Options:
|
||||
--gen-moar Download and build a copy of MoarVM to use
|
||||
--moar-option='--option=value'
|
||||
Options to pass to MoarVM configuration for --gen-moar
|
||||
+ --with-asm='/path/to/jar'
|
||||
+ --with-asm-tree='/path/to/jar'
|
||||
+ --with-jline='/path/to/jar'
|
||||
+ --with-jna='/path/to/jar'
|
||||
+ Provide paths to already installed jars
|
||||
--git-protocol={ssh,https,git}
|
||||
Protocol to use for git clone. Default: https
|
||||
--make-install Immediately run `MAKE install` after configuring
|
||||
diff --git a/tools/build/Makefile-JVM.in b/tools/build/Makefile-JVM.in
|
||||
index 27959ad..c19965a 100644
|
||||
--- a/tools/build/Makefile-JVM.in
|
||||
+++ b/tools/build/Makefile-JVM.in
|
||||
@@ -2,7 +2,6 @@ BAT = @bat@
|
||||
JAVA = java
|
||||
JAVAC = javac
|
||||
JAR = jar
|
||||
-ASM = 3rdparty/asm/
|
||||
J_RUNNER = nqp-j$(BAT)
|
||||
|
||||
NQP_JAR_DIR = $(NQP_LANG_DIR)/runtime
|
||||
@@ -18,7 +17,11 @@ RUNTIME_JAVAS = \
|
||||
|
||||
RUNTIME_JAR = nqp-runtime.jar
|
||||
|
||||
-THIRDPARTY_JARS = $(ASM)asm-4.1.jar@cpsep@$(ASM)asm-tree-4.1.jar@cpsep@3rdparty/jline/jline-1.0.jar@cpsep@3rdparty/jna/jna.jar
|
||||
+ASM = @asm@
|
||||
+ASMTREE = @asmtree@
|
||||
+JLINE = @jline@
|
||||
+JNA = @jna@
|
||||
+THIRDPARTY_JARS = $(ASM)@cpsep@$(ASMTREE)@cpsep@$(JLINE)@cpsep@$(JNA)
|
||||
J_STAGE0 = src/vm/jvm/stage0
|
||||
J_STAGE1 = $(JVM_BUILD_DIR)/stage1
|
||||
J_STAGE2 = $(JVM_BUILD_DIR)/stage2
|
||||
@@ -80,8 +83,8 @@ j-install: j-all
|
||||
$(MKPATH) $(DESTDIR)$(BIN_DIR)
|
||||
$(MKPATH) $(DESTDIR)$(NQP_JAR_DIR)
|
||||
$(MKPATH) $(DESTDIR)$(NQP_LIB_DIR)
|
||||
- $(CP) 3rdparty/asm/asm-4.1.jar 3rdparty/asm/asm-tree-4.1.jar $(DESTDIR)$(NQP_JAR_DIR)
|
||||
- $(CP) 3rdparty/jline/jline-1.0.jar 3rdparty/jna/jna.jar $(DESTDIR)$(NQP_JAR_DIR)
|
||||
+ $(CP) $(ASM) $(ASMTREE) $(DESTDIR)$(NQP_JAR_DIR)
|
||||
+ $(CP) $(JLINE) $(JNA) $(DESTDIR)$(NQP_JAR_DIR)
|
||||
$(CP) $(RUNTIME_JAR) $(DESTDIR)$(NQP_JAR_DIR)
|
||||
$(CP) $(NQP_MO_JAR) $(MODULE_LOADER_JAR) $(DESTDIR)$(NQP_LIB_DIR)
|
||||
$(CP) $(CORE_SETTING_JAR) $(QASTNODE_JAR) $(QREGEX_JAR) $(DESTDIR)$(NQP_LIB_DIR)
|
||||
diff --git a/tools/build/install-jvm-runner.pl b/tools/build/install-jvm-runner.pl
|
||||
deleted file mode 100644
|
||||
index 14541d6..0000000
|
||||
--- a/tools/build/install-jvm-runner.pl
|
||||
+++ /dev/null
|
||||
@@ -1,44 +0,0 @@
|
||||
-#!/usr/bin/perl
|
||||
-# Copyright (C) 2013, The Perl Foundation.
|
||||
-
|
||||
-use strict;
|
||||
-use warnings;
|
||||
-use 5.008;
|
||||
-use File::Spec;
|
||||
-
|
||||
-my ($destdir, $prefix) = @ARGV;
|
||||
-my $realpath = $destdir.$prefix;
|
||||
-
|
||||
-unless (File::Spec->file_name_is_absolute($prefix)) {
|
||||
- $prefix = File::Spec->rel2abs($prefix);
|
||||
-}
|
||||
-
|
||||
-if ($^O eq 'MSWin32') {
|
||||
- my $jar_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'runtime');
|
||||
- my $lib_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'lib');
|
||||
- my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j.bat');
|
||||
-
|
||||
- open my $fh, ">", $install_to
|
||||
- or die "Could not open $install_to: $!";
|
||||
- print $fh '@java -Xss1m -Xmx512m -Xbootclasspath/a:' . $jar_dir . '\\nqp-runtime.jar;' .
|
||||
- "$jar_dir\\asm-4.1.jar;$jar_dir\\jline-1.0.jar;$lib_dir\\nqp.jar -cp $lib_dir nqp %*\n";
|
||||
- close $fh
|
||||
- or die "Could not close $install_to: $!";
|
||||
-}
|
||||
-else {
|
||||
- my $nqp_dir = File::Spec->catfile($prefix, qw/share nqp/);
|
||||
- my $jar_dir = File::Spec->catfile('${NQP_DIR}', 'runtime');
|
||||
- my $lib_dir = File::Spec->catfile('${NQP_DIR}', 'lib');
|
||||
- my $jars = "$jar_dir/nqp-runtime.jar:$jar_dir/asm-4.1.jar:$jar_dir/jline-1.0.jar:$lib_dir/nqp.jar";
|
||||
- my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j');
|
||||
-
|
||||
- open my $fh, ">", $install_to
|
||||
- or die "Could not open $install_to: $!";
|
||||
- print $fh "#!/bin/sh\n";
|
||||
- print $fh ": \${NQP_DIR:=\"$nqp_dir\"}\n";
|
||||
- print $fh ": \${NQP_JARS:=\"$jars\"}\n";
|
||||
- print $fh "exec java -Xss1m -Xmx512m -Xbootclasspath/a:\${NQP_JARS} -cp $lib_dir nqp \"\$\@\"\n";
|
||||
- close $fh
|
||||
- or die "Could not close $install_to: $!";
|
||||
- chmod 0755, $install_to;
|
||||
-}
|
||||
diff --git a/tools/build/install-jvm-runner.pl.in b/tools/build/install-jvm-runner.pl.in
|
||||
new file mode 100644
|
||||
index 0000000..92a1109
|
||||
--- /dev/null
|
||||
+++ b/tools/build/install-jvm-runner.pl.in
|
||||
@@ -0,0 +1,44 @@
|
||||
+#!/usr/bin/perl
|
||||
+# Copyright (C) 2013, The Perl Foundation.
|
||||
+
|
||||
+use strict;
|
||||
+use warnings;
|
||||
+use 5.008;
|
||||
+use File::Spec;
|
||||
+
|
||||
+my ($destdir, $prefix) = @ARGV;
|
||||
+my $realpath = $destdir.$prefix;
|
||||
+
|
||||
+unless (File::Spec->file_name_is_absolute($prefix)) {
|
||||
+ $prefix = File::Spec->rel2abs($prefix);
|
||||
+}
|
||||
+
|
||||
+if ($^O eq 'MSWin32') {
|
||||
+ my $jar_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'runtime');
|
||||
+ my $lib_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'lib');
|
||||
+ my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j.bat');
|
||||
+
|
||||
+ open my $fh, ">", $install_to
|
||||
+ or die "Could not open $install_to: $!";
|
||||
+ print $fh '@java -Xss1m -Xmx512m -Xbootclasspath/a:' . $jar_dir . '\\nqp-runtime.jar;' .
|
||||
+ "$jar_dir\\@asmfile@;$jar_dir\\@jlinefile@;$lib_dir\\nqp.jar -cp $lib_dir nqp %*\n";
|
||||
+ close $fh
|
||||
+ or die "Could not close $install_to: $!";
|
||||
+}
|
||||
+else {
|
||||
+ my $nqp_dir = File::Spec->catfile($prefix, qw/share nqp/);
|
||||
+ my $jar_dir = File::Spec->catfile('${NQP_DIR}', 'runtime');
|
||||
+ my $lib_dir = File::Spec->catfile('${NQP_DIR}', 'lib');
|
||||
+ my $jars = "$jar_dir/nqp-runtime.jar:$jar_dir/@asmfile@:$jar_dir/@jlinefile@:$lib_dir/nqp.jar";
|
||||
+ my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j');
|
||||
+
|
||||
+ open my $fh, ">", $install_to
|
||||
+ or die "Could not open $install_to: $!";
|
||||
+ print $fh "#!/bin/sh\n";
|
||||
+ print $fh ": \${NQP_DIR:=\"$nqp_dir\"}\n";
|
||||
+ print $fh ": \${NQP_JARS:=\"$jars\"}\n";
|
||||
+ print $fh "exec java -Xss1m -Xmx512m -Xbootclasspath/a:\${NQP_JARS} -cp $lib_dir nqp \"\$\@\"\n";
|
||||
+ close $fh
|
||||
+ or die "Could not close $install_to: $!";
|
||||
+ chmod 0755, $install_to;
|
||||
+}
|
@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar +system-libs test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
RDEPEND="java? ( >=virtual/jre-1.7:*
|
||||
system-libs? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
)
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )
|
||||
dev-libs/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7:* )
|
||||
dev-lang/perl"
|
||||
PATCHES=( "${FILESDIR}/enable-external-jars.patch" )
|
||||
|
||||
pkg_setup() {
|
||||
use java && java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${PATCHES[@]}"
|
||||
eapply_user
|
||||
use java && java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack ${A}
|
||||
mv "${WORKDIR}/perl6-nqp-"* "${WORKDIR}/${P}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use java && backends+="jvm,"
|
||||
use moar && backends+="moar"
|
||||
local myconfargs=(
|
||||
"--backend=${backends}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
# 2016.04 doesn't like our jna-3.4.1
|
||||
# keep testing against it
|
||||
use system-libs && myconfargs+=(
|
||||
"--with-asm=$(echo $(java-pkg_getjars asm-4) | tr : '\n' | grep '/asm\.jar$')"
|
||||
"--with-asm-tree=$(echo $(java-pkg_getjars asm-4) | tr : '\n' | grep '/asm-tree\.jar$')"
|
||||
"--with-jline=$(echo $(java-pkg_getjars jline) | tr : '\n' | grep '/jline\.jar$')" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
MAKEOPTS=-j1 emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
MAKEOPTS=-j1 emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README.pod || die
|
||||
|
||||
if use doc; then
|
||||
dodoc -r docs/* || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar +system-libs test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
RDEPEND="java? ( >=virtual/jre-1.7:*
|
||||
system-libs? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
)
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )
|
||||
dev-libs/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7:* )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_setup() {
|
||||
use java && java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
use java && java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack ${A}
|
||||
mv "${WORKDIR}/perl6-nqp-"* "${WORKDIR}/${P}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use java && backends+="jvm,"
|
||||
use moar && backends+="moar"
|
||||
local myconfargs=(
|
||||
"--backend=${backends}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
# 2016.04 doesn't like our jna-3.4.1
|
||||
# keep testing against it
|
||||
use system-libs && myconfargs+=(
|
||||
"--with-asm=$(echo $(java-pkg_getjars asm-4) | tr : '\n' | grep '/asm\.jar$')"
|
||||
"--with-asm-tree=$(echo $(java-pkg_getjars asm-4) | tr : '\n' | grep '/asm-tree\.jar$')"
|
||||
"--with-jline=$(echo $(java-pkg_getjars jline) | tr : '\n' | grep '/jline\.jar$')" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
MAKEOPTS=-j1 emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
MAKEOPTS=-j1 emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README.pod || die
|
||||
|
||||
if use doc; then
|
||||
dodoc -r docs/* || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
diff -Naur a/tools/build/Makefile-Moar.in b/tools/build/Makefile-Moar.in
|
||||
--- a/tools/build/Makefile-Moar.in 2016-02-02 14:27:13.000000000 +0100
|
||||
+++ b/tools/build/Makefile-Moar.in 2016-04-22 15:01:35.338534944 +0200
|
||||
@@ -87,11 +87,11 @@
|
||||
$(M_CC) @moar::ccswitch@ @moar::ccshared@ $(M_CFLAGS) -I$(PREFIX)/include/libatomic_ops \
|
||||
-I$(PREFIX)/include/dyncall -I$(PREFIX)/include/moar \
|
||||
-I$(PREFIX)/include/sha1 -I$(PREFIX)/include/tinymt -I$(PREFIX)/include/libtommath \
|
||||
- -I$(PREFIX)/include/libuv -I$(PREFIX)/include @moar::ccout@$(M_PERL6_OPS_OBJ) $(M_PERL6_OPS_SRC)
|
||||
+ -I$(PREFIX)/include/libuv -I$(PREFIX)/include @moar::cincludes@ @moar::ccout@$(M_PERL6_OPS_OBJ) $(M_PERL6_OPS_SRC)
|
||||
$(M_CC) @moar::ccswitch@ @moar::ccshared@ $(M_CFLAGS) -I$(PREFIX)/include/libatomic_ops \
|
||||
-I$(PREFIX)/include/dyncall -I$(PREFIX)/include/moar \
|
||||
-I$(PREFIX)/include/sha1 -I$(PREFIX)/include/tinymt -I$(PREFIX)/include/libtommath \
|
||||
- -I$(PREFIX)/include/libuv -I$(PREFIX)/include @moar::ccout@$(M_PERL6_CONT_OBJ) $(M_PERL6_CONT_SRC)
|
||||
+ -I$(PREFIX)/include/libuv -I$(PREFIX)/include @moar::cincludes@ @moar::ccout@$(M_PERL6_CONT_OBJ) $(M_PERL6_CONT_SRC)
|
||||
$(M_LD) @moar::ldswitch@ -L@moar::libdir@ @moar::ldshared@ $(M_LDFLAGS) @moar::ldout@$(M_PERL6_OPS_DLL) $(M_PERL6_OPS_OBJ) $(M_PERL6_CONT_OBJ) -lmoar @moarimplib@
|
||||
|
||||
$(PERL6_ML_MOAR): src/Perl6/ModuleLoader.nqp src/vm/moar/ModuleLoaderVMConfig.nqp
|
@ -1,12 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>patrick@gentoo.org</email>
|
||||
<name>Patrick Lauer</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>patrick@gentoo.org</email>
|
||||
<name>Patrick Lauer</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>tomboy64@sina.cn</email>
|
||||
<name>Matthew Brewer</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="clang">Use Clang to compile the MoarVM backend</flag>
|
||||
<flag name="moar">Use the MoarVM as backend</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="http://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="${HOMEPAGE}/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
|
||||
RDEPEND="~dev-lang/nqp-${PV}:=[java=,moar=,clang=]"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
PATCHES=( "${FILESDIR}/${PN}-2016.04-Makefile.in.patch" )
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo && use java; then
|
||||
die "Rakudo is known to fail compilation with the jvm backend if it's already installed."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use java && java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${PATCHES[@]}"
|
||||
|
||||
# yup, this is ugly. but emake doesn't respect DESTDIR.
|
||||
for i in Moar JVM; do
|
||||
echo "DESTDIR = ${D}" > "${T}/Makefile-${i}.in" || die
|
||||
cat "${S}/tools/build/Makefile-${i}.in" >> "${T}/Makefile-${i}.in" || die
|
||||
mv "${T}/Makefile-${i}.in" "${S}/tools/build/Makefile-${i}.in" || die
|
||||
done
|
||||
|
||||
eapply_user
|
||||
use java && java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use java && backends+="jvm,"
|
||||
use moar && backends+="moar,"
|
||||
local myargs=( "--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--make-install"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
perl Configure.pl "${myargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export RAKUDO_PRECOMP_PREFIX=$(mktemp -d)
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="http://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="${HOMEPAGE}/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java moar test"
|
||||
|
||||
RDEPEND="~dev-lang/nqp-${PV}:=[java=,moar=,clang=]"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
PATCHES=( "${FILESDIR}/${PN}-2016.04-Makefile.in.patch" )
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo && use java; then
|
||||
die "Rakudo is known to fail compilation with the jvm backend if it's already installed."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use java && java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${PATCHES[@]}"
|
||||
|
||||
# yup, this is ugly. but emake doesn't respect DESTDIR.
|
||||
for i in Moar JVM; do
|
||||
echo "DESTDIR = ${D}" > "${T}/Makefile-${i}.in" || die
|
||||
cat "${S}/tools/build/Makefile-${i}.in" >> "${T}/Makefile-${i}.in" || die
|
||||
mv "${T}/Makefile-${i}.in" "${S}/tools/build/Makefile-${i}.in" || die
|
||||
done
|
||||
|
||||
eapply_user
|
||||
use java && java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use java && backends+="jvm,"
|
||||
use moar && backends+="moar,"
|
||||
local myargs=( "--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--make-install"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
perl Configure.pl "${myargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export RAKUDO_PRECOMP_PREFIX=$(mktemp -d)
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST re2-20130115.tgz 1020951 SHA256 a95d83ed8203817587f7cc368b6f7199d8a4b1558372c306b07201058b92e1fe SHA512 ef1378d89397bf594ece7817ef91171e467a3408046f769eca08beba900a0e70f652e7c4e3b667b3a9d5cef044b08ed74ef7d564ffb965ab75bb9a3964c9ab5a WHIRLPOOL 2cbf47b1816e35e5c7f359a310b4421ad635d1513167ffabf98db84397be800f8b98d4808705754f0e2db14bbeb0d62e47ac3abb385e299c503126a9f874daf5
|
||||
DIST re2-20130712.tgz 1028311 SHA256 c30e43524280ebc2b9afa8c40ad477d0b2665bc81b663e9ae1b8b48e053af54b SHA512 910e7c7f5b3268746355c2e14dc6a4e32105207abcf8cb56b76fc554be41768e4e4a6b526c9335e95be0bb111025876b61ede1cfebcbec4a4062d53bb1448e08 WHIRLPOOL e5cf26a6c8586503c1639dd3f528cace8a4d7ca4c4ff97e08b12f45753ff67ad78656513658eabd678ac8ab88f1de5279960428fffe1b9e0535afdba44e7e8a3
|
||||
DIST re2-20140304.tgz 1050493 SHA256 0bffd1a57de2f4b218ca0f77d8850bfd59c82944a98256c6edba25260e0196a7 SHA512 a426e8d69d2c7614087990180539c5b1aa2c544dee14b144098f810b76b6062d7de9efaf1e90e83c61c8e4382a066201862d09965f1a6a9f86e2912011ad9d40 WHIRLPOOL d998a6dd9edac52fe0c4ed7e895940380d9b67220711d68aed02294c8f65a644a59f77bddce116ccf79860c633046fa2b5060ef45d5cb5ea5bc0c1965cdce052
|
||||
DIST re2-2016-05-01.tar.gz 399509 SHA256 d9d13f0ea4e1c6628b1cb85eeee284d4fdd4948da94b1f205096254927092e3d SHA512 6d37ab1eae51a73f60d3c8280ea1162c420638363f0eb1313d7c2d5cee65a5abd4c2927da1a53572afbcb7d07fac2993a7e54c6cbc85e24aaae93c46dab19b14 WHIRLPOOL b601349800341d213b01219cf2171873be551488c71c2c06fbab1da27c20719fca12e0cfac30ac4e8ed0eb062a445b4c008491fd0e379f629434e0c9b4649a7e
|
||||
|
@ -0,0 +1,47 @@
|
||||
From 7dc941862819398db2ac4ae4239c8ed05431f928 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Sun, 8 May 2016 11:54:00 -0400
|
||||
Subject: [PATCH] Substitute includedir and libdir in re2.pc
|
||||
|
||||
---
|
||||
Makefile | 5 ++++-
|
||||
re2.pc => re2.pc.in | 5 ++---
|
||||
2 files changed, 6 insertions(+), 4 deletions(-)
|
||||
rename re2.pc => re2.pc.in (71%)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d0e2090..4a8d8a6 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -273,7 +273,10 @@ install: obj/libre2.a obj/so/libre2.$(SOEXT)
|
||||
$(INSTALL) obj/so/libre2.$(SOEXT) $(DESTDIR)$(libdir)/libre2.$(SOEXTVER00)
|
||||
ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXTVER)
|
||||
ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXT)
|
||||
- sed -e "s#@prefix@#${prefix}#" re2.pc >$(DESTDIR)$(libdir)/pkgconfig/re2.pc
|
||||
+ sed -e "s#@prefix@#$(prefix)#" \
|
||||
+ -e "s#@includedir@#$(includedir)#" \
|
||||
+ -e "s#@libdir@#$(libdir)#" \
|
||||
+ re2.pc.in >$(DESTDIR)$(libdir)/pkgconfig/re2.pc
|
||||
|
||||
testinstall: static-testinstall shared-testinstall
|
||||
@echo
|
||||
diff --git a/re2.pc b/re2.pc.in
|
||||
similarity index 71%
|
||||
rename from re2.pc
|
||||
rename to re2.pc.in
|
||||
index 91ba181..a04a70a 100644
|
||||
--- a/re2.pc
|
||||
+++ b/re2.pc.in
|
||||
@@ -1,7 +1,6 @@
|
||||
prefix=@prefix@
|
||||
-exec_prefix=${prefix}
|
||||
-includedir=${prefix}/include
|
||||
-libdir=${exec_prefix}/lib
|
||||
+includedir=@includedir@
|
||||
+libdir=@libdir@
|
||||
|
||||
Name: re2
|
||||
Description: RE2 is a fast, safe, thread-friendly regular expression engine.
|
||||
--
|
||||
2.8.2
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib-minimal toolchain-funcs
|
||||
|
||||
# Different date format used upstream.
|
||||
RE2_VER=${PV#0.}
|
||||
RE2_VER=${RE2_VER//./-}
|
||||
|
||||
DESCRIPTION="An efficent, principled regular expression library"
|
||||
HOMEPAGE="https://www.github.com/google/re2/"
|
||||
SRC_URI="https://www.github.com/google/re2/archive/${RE2_VER}.tar.gz -> ${PN}-${RE2_VER}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
# NOTE: Always run libre2 through abi-compliance-checker!
|
||||
SLOT="0/0.2016.05.01"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="icu"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
icu? ( virtual/pkgconfig )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${RE2_VER}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PV}-pkgconfig.patch" )
|
||||
DOCS=( "AUTHORS" "CONTRIBUTORS" "README" "doc/syntax.txt" )
|
||||
HTML_DOCS=( "doc/syntax.html" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use icu; then
|
||||
sed -i -e 's:^# \(\(CC\|LD\)ICU=.*\):\1:' Makefile || die
|
||||
fi
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CXX NM
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" libdir="\$(exec_prefix)/$(get_libdir)" install
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST abi-compliance-checker-1.99.12.tar.gz 254441 SHA256 24b3dbf42d46f8ddb425b4156b0211288c30dd9d85a4bee34a3e3664b60a9f2e SHA512 6ba94d2b1ec6574f4e252e9829575ce1eab6f437e425bf98c94276359edfa41f8e014a9ddb5f06057a882ecdb63effab714cae9ce1089c28faa28b3e34ff0628 WHIRLPOOL 91605af7489e60b3217f5dec91bb9b6c574086158cad1929bd059ed092c709e2a406fd2dcc187872db38de28f22a4abddd119d01c392e92060d84b7a067003fa
|
||||
DIST abi-compliance-checker-1.99.15.tar.gz 255370 SHA256 ce898cbeed77a2e6d52de4c0b16dcb313940994840da39432859e10eda2c8493 SHA512 66753ce5b3eefb8c3d2d474d5f3bcc001be629a11f30343d26c29b93d3dc72ebc44bd6a36d72981e39ef63ad12e9dc53c48a3cce1c599720479e23d5219adb1d WHIRLPOOL 7b21aa90f2e212a6a210d4751ee20f9270fd739e494d70c449282968c5bc4a28db0062574bd5ff5699a60e922935bf08969bfa8313ea2a228c83e25e87f0c3ce
|
||||
DIST abi-compliance-checker-1.99.19.tar.gz 229243 SHA256 e9a5849fdab6a74f5ea99c6b94e39d900ba37d67b204f46f0f47357ac9c96661 SHA512 d88938d808cc7a7e3702a115393068d828645d00e5a02f18c737abb1422896cdf6eec605b91e85a6a7ee181199c30788cb7003e23d76e662b30f4be1b3f211f0 WHIRLPOOL b02bd6df89f30745eeaaf9945642f70e37ad875dd6fb610263c7c777d37f3634db5701f08910696ddb58a3fdfb963ea8d02f9dd99dedf9d2ae8c72f9ff54ceee
|
||||
DIST abi-compliance-checker-1.99.9.tar.gz 272227 SHA256 52b0daca89fcda73cde126497c8015ca823417074ba02fcff68b7acf2f45e516 SHA512 bf3530463a93ed453c9479fa2907e8e68d34949e71bb552fabc43b37f7fa562a49339adc86de09596a13ccd5586bfc5fcb5df1d03ffa04020d9ac3622025b2be WHIRLPOOL 0d62b5c4b14e814231cfa06ffdcfd7fa44fecd2d154bf57b0abb13f2540f755b3de3179fd9d3c34720329f674285877b3b4e43dc904b9b1ae1c7b3c88467094e
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="A tool for checking backward compatibility of a C/C++ library"
|
||||
HOMEPAGE="http://ispras.linuxbase.org/index.php/ABI_compliance_checker"
|
||||
SRC_URI="https://github.com/lvc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-util/abi-dumper
|
||||
dev-util/ctags"
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${D}"/usr || die
|
||||
perl Makefile.pl --install --prefix="${EPREFIX}"/usr --destdir="${D}" || die
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST abi-dumper-0.99.15.tar.gz 40265 SHA256 37d79ad151ac0bfbd25c1280b31f9521b72bc874129cd9cb182dc1fb488a39e0 SHA512 695462c8972e7f5abcf3415652ef6bb52d9770ae5fc21aceb44b0eaadc087f23d6c1cd92d6e29961141cfa863b0bad7944cee826df2aa8c83f3be7e42d098e61 WHIRLPOOL 387a8bac36d447207483621d332abb2cee683725f9c4766439cf1e27a44e8914f1abab6b9e6cc4839c2dd2a3ba75bdb65b8dd54ecdd9902888d47f1152a9d6ba
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Dump ABI of an ELF object containing DWARF debug info"
|
||||
HOMEPAGE="https://github.com/lvc/abi-dumper"
|
||||
SRC_URI="https://github.com/lvc/abi-dumper/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-libs/elfutils
|
||||
dev-util/vtable-dumper"
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr
|
||||
perl Makefile.pl -install -prefix "${EPREFIX}/usr" -destdir "${D}" || die
|
||||
einstalldocs
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>floppym@gentoo.org</email>
|
||||
<name>Mike Gilbert</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST vtable-dumper-1.1.tar.gz 15739 SHA256 f0a57a7b82a0a56845cea9ab56ad449e63f5f01c6a0c9f1467efa4ef60dd4a93 SHA512 a10edd9ba07da362624a12b0c4127f8e48f73337d06ad0ed1f50675e4c30322eaa86972187329d949a7a5ac30373124cf539b2ca51dc07384300381154c594df WHIRLPOOL add69d5e36f90f0bb0fc028be38233eea06a6e425047a5b4accfdfc5e6537d8fc7e96316e897ed2d86efff4ef33ced88ec92614ae4420bff9c677b4a6666c782
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>floppym@gentoo.org</email>
|
||||
<name>Mike Gilbert</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="A tool to list content of virtual tables in a shared library"
|
||||
HOMEPAGE="https://github.com/lvc/vtable-dumper"
|
||||
SRC_URI="https://github.com/lvc/vtable-dumper/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="dev-libs/elfutils:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
emake prefix="${ED%/}/usr" install
|
||||
einstalldocs
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST angband-4.0.4.tar.gz 19888293 SHA256 93f95444304d5178d23569dbd3dbe1eb29747201d353c676206f26b5bec4667c SHA512 73dbf0782f042dbc5ee9fe42430041f447a58ec14076280d2d6a44ec2b338dd4a7c220dc36f1b214380852283fb0d6e56fb338c2da95911b450714fb7f71e680 WHIRLPOOL aafa1fb9f0a54f8a39cb194e86fc4df43f0d773da58703b401cda0856ef2f99db7f351f444a3e0405b140a6130dd2da6fb318fde0e66f143ad38c51b7b91fa73
|
||||
DIST angband-4.0.5.tar.gz 19886562 SHA256 0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852 SHA512 9ad46430d7e3c4b7676042b28107a2a5b9b2ed967dd1f45b91ca37583fa2d5e9ba25d963a6510ee091b8fdb3a704a60002d851d7898a6298567f804dce36a88b WHIRLPOOL f725bc940332b90081583f2eccc4890ce1a7a7426bd9f5ae69272beaaa79741797b46ffd283ec2969d14167c6c50d1ff738a573dade045bda79d0c7f51053e5a
|
||||
|
@ -0,0 +1,117 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils gnome2-utils versionator games
|
||||
|
||||
MAJOR_PV=$(get_version_component_range 1-2)
|
||||
|
||||
DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien"
|
||||
HOMEPAGE="http://rephial.org/"
|
||||
SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="ncurses sdl +sound X"
|
||||
|
||||
RDEPEND="X? ( x11-libs/libX11 )
|
||||
!ncurses? ( !X? ( !sdl? ( sys-libs/ncurses:0=[unicode] ) ) )
|
||||
ncurses? ( sys-libs/ncurses:0=[unicode] )
|
||||
sdl? ( media-libs/libsdl[video,X]
|
||||
media-libs/sdl-ttf
|
||||
media-libs/sdl-image
|
||||
sound? ( media-libs/sdl-mixer[mp3]
|
||||
media-libs/libsdl[sound] ) )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/docutils
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
|
||||
sed -i -e '/libpath/s#datarootdir#datadir#' configure.ac || die
|
||||
sed -i -e "/^.SILENT/d" mk/buildsys.mk.in || die
|
||||
sed -i -e '/^DOC =/s/=.*/=/' doc/Makefile || die
|
||||
|
||||
if use !sound ; then
|
||||
sed -i -e 's/sounds//' lib/Makefile || die
|
||||
fi
|
||||
|
||||
# Game constant files are now system config files in Angband, but
|
||||
# users will be hidden from applying updates by default
|
||||
{
|
||||
echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/customize/\""
|
||||
echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/gamedata/\""
|
||||
} > "${T}"/99${PN} || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use sdl; then
|
||||
myconf="$(use_enable sound sdl-mixer)"
|
||||
else
|
||||
myconf="--disable-sdl-mixer"
|
||||
fi
|
||||
|
||||
ac_cv_path_NCURSES_CONFIG="pkg-config ncursesw" \
|
||||
egamesconf \
|
||||
--bindir="${GAMES_BINDIR}" \
|
||||
--with-private-dirs \
|
||||
$(use_enable X x11) \
|
||||
$(use_enable sdl) \
|
||||
$(use_enable ncurses curses) \
|
||||
$(use !sdl && use !ncurses && use !X && \
|
||||
echo --enable-curses) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DOCS="changes.txt faq.txt readme.txt thanks.txt" \
|
||||
default
|
||||
|
||||
dohtml doc/manual.html
|
||||
doenvd "${T}"/99${PN}
|
||||
|
||||
if use X || use sdl ; then
|
||||
if use X; then
|
||||
make_desktop_entry "angband -mx11" "Angband (X11)" "${PN}"
|
||||
fi
|
||||
|
||||
if use sdl; then
|
||||
make_desktop_entry "angband -msdl" "Angband (SDL)" "${PN}"
|
||||
fi
|
||||
|
||||
local s
|
||||
for s in 16 32 128 256 512
|
||||
do
|
||||
newicon -s ${s} lib/icons/att-${s}.png "${PN}.png"
|
||||
done
|
||||
newicon -s scalable lib/icons/att.svg "${PN}.svg"
|
||||
fi
|
||||
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
if use X || use sdl ; then
|
||||
gnome2_icon_savelist
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "Angband now uses private savefiles instead of system-wide ones."
|
||||
elog "This version of Angband is not compatible with the save files"
|
||||
elog "of previous versions."
|
||||
echo
|
||||
|
||||
games_pkg_postinst
|
||||
if use X || use sdl ; then
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
@ -1 +1 @@
|
||||
Sun, 08 May 2016 16:38:49 +0000
|
||||
Sun, 08 May 2016 20:39:39 +0000
|
||||
|
@ -1 +1 @@
|
||||
Sun, 08 May 2016 16:38:49 +0000
|
||||
Sun, 08 May 2016 20:39:39 +0000
|
||||
|
@ -0,0 +1,11 @@
|
||||
DEFINED_PHASES=unpack
|
||||
DEPEND=dev-libs/openssl sys-apps/util-linux sys-apps/help2man >=sys-boot/gnu-efi-3.0u app-crypt/sbsigntool virtual/pkgconfig dev-perl/File-Slurp >=dev-vcs/git-1.8.2.1
|
||||
DESCRIPTION=Tools for manipulating UEFI secure boot platforms
|
||||
EAPI=4
|
||||
HOMEPAGE=https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=dev-libs/openssl sys-apps/util-linux
|
||||
SLOT=0
|
||||
_eclasses_=eutils 792f83d5ec9536cb5ccef375469d8bde git-r3 ef66dfc3db09f327af21cf32f140fb2b multilib 23ae8c186171e6476af098d2a50d0ee0 toolchain-funcs d513d423d449877e49d99af3f7af7acb
|
||||
_md5_=d839371e64473f4ddd4cfc0299d8d61d
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=configure install
|
||||
DEPEND=dev-qt/qtcore:4 dev-qt/qtgui:4 sys-libs/zlib aspell? ( app-text/aspell ) hunspell? ( app-text/hunspell ) hunspell? ( virtual/pkgconfig )
|
||||
DESCRIPTION=Small, lightweight Qt text editor
|
||||
EAPI=5
|
||||
HOMEPAGE=http://tea.ourproject.org/ http://semiletov.org/tea/
|
||||
IUSE=aspell hunspell linguas_de linguas_fr linguas_ru
|
||||
KEYWORDS=~amd64 ~ia64 ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=dev-qt/qtcore:4 dev-qt/qtgui:4 sys-libs/zlib aspell? ( app-text/aspell ) hunspell? ( app-text/hunspell )
|
||||
SLOT=0
|
||||
SRC_URI=http://tea.ourproject.org/dloads/tea-41.1.1.tar.bz2
|
||||
_eclasses_=eutils 792f83d5ec9536cb5ccef375469d8bde l10n fead41efb1053760e5d950560780d46b multilib 23ae8c186171e6476af098d2a50d0ee0 qmake-utils 0a242e7177789b0028b4045f336dd4db toolchain-funcs d513d423d449877e49d99af3f7af7acb
|
||||
_md5_=f23d356ebd22b95b9ef8ae5b5aa04287
|
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue