parent
922bbcf85d
commit
74f283d518
@ -1,2 +1,2 @@
|
||||
DIST Parse-Evtx-1.0.8.zip 56100 RMD160 77efd57dac627a105a1f00a96c8ac8e23d97ef24 SHA1 9ea1380400225c50dca61f0766484a3c181a4393 SHA256 bd846048685ca6f70eec01de7bb2f2a8df1d934d34b5c4af6cd5b55485407146
|
||||
DIST Parse-Evtx-1.1.0.zip 70268 RMD160 55f3a4610343976bf1938ed6d72dcccb7db24ed9 SHA1 405f6a6f0098373ae015bf3cc917ca0bacc9be35 SHA256 24de63b28699433998904785cd28b92972c86e558cabe03851f89203de4ef6e1
|
||||
DIST Parse-Evtx-1.1.1.zip 71351 RMD160 839d0935ca5caab8b33807c2abfdca6288d7f9ae SHA1 79d34a0d2e27f370fb8dca9359ff012c8abeaf51 SHA256 a1909810bedc709e2fa87f6603e52c62e60086bf1ce064bd839fc5873abf8512
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/evtxtools/evtxtools-1.0.8.ebuild,v 1.1 2011/10/30 16:03:47 maksbotan Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/evtxtools/evtxtools-1.1.1.ebuild,v 1.1 2012/02/24 19:46:35 maksbotan Exp $
|
||||
|
||||
EAPI=3
|
||||
|
@ -1,2 +1 @@
|
||||
DIST nut-16.9.tar.gz 1267995 RMD160 c0f0556f325f4e94ca386fbfd4142af888c489dc SHA1 6ccc77784519bda5cfbdcfcad70ba58652a31366 SHA256 901dd52a7e488af03837c9c7a17cd1eddbaa54f485a097a165c2ff01a9c22f97
|
||||
DIST nut-17.4.tar.gz 1315621 RMD160 d8333e4448cc71b1b4bfb85e6ba1b36d7a2a4b4e SHA1 31e090a01ee182ce24c1703eb79b544f6da1f4ad SHA256 d6b9b12c2b318173a03e9211c3724ba5091516934dc3bd6727a2de21292f9153
|
||||
|
@ -1,50 +0,0 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 1b8b705..dc2a08b 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -3,16 +3,14 @@ FOODDIR := \"/usr/local/lib/nut\"
|
||||
EXECUTABLE := nut
|
||||
LIBS := -lm
|
||||
|
||||
-CFLAGS := -Wall -O3 -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
|
||||
-
|
||||
-CXXFLAGS := $(CFLAGS)
|
||||
+CFLAGS += -Wall -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
|
||||
|
||||
SOURCE := $(wildcard *.c) $(wildcard *.cc)
|
||||
OBJS := $(patsubst %.c,%.o,$(patsubst %.cc,%.o,$(SOURCE)))
|
||||
CPPFLAGS +=
|
||||
|
||||
nut: $(OBJS)
|
||||
- $(CC) -s -o $(EXECUTABLE) $(OBJS) $(LIBS)
|
||||
+ $(CC) $(LDFLAGS) -o $(EXECUTABLE) $(OBJS) $(LIBS)
|
||||
|
||||
|
||||
deps:
|
||||
diff --git a/fltk/Makefile b/fltk/Makefile
|
||||
index 6e5f9d7..29cf098 100644
|
||||
--- a/fltk/Makefile
|
||||
+++ b/fltk/Makefile
|
||||
@@ -1,18 +1,17 @@
|
||||
NUTDIR := \".nutdb\"
|
||||
FOODDIR := \"/usr/local/lib/nut\"
|
||||
EXECUTABLE := Nut
|
||||
-LIBS := `fltk-config --ldstaticflags`
|
||||
+LIBS := `fltk-config --ldflags`
|
||||
|
||||
-CFLAGS := `fltk-config --optim --cflags` -O3 -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
|
||||
-
|
||||
-CXXFLAGS := $(CFLAGS)
|
||||
+CXXFLAGS += `fltk-config --optim --cxxflags` -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
|
||||
+CFLAGS += `fltk-config --optim --cflags` -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
|
||||
|
||||
SOURCE := $(wildcard *.c) $(wildcard *.cc)
|
||||
OBJS := $(patsubst %.c,%.o,$(patsubst %.cc,%.o,$(SOURCE)))
|
||||
CPPFLAGS :=
|
||||
|
||||
nut: $(OBJS)
|
||||
- $(CXX) -s -o $(EXECUTABLE) $(OBJS) $(LIBS)
|
||||
+ $(CXX) $(LDFLAGS) -o $(EXECUTABLE) $(OBJS) $(LIBS)
|
||||
|
||||
|
||||
deps:
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/nut/nut-16.9.ebuild,v 1.5 2012/02/05 13:40:06 ranger Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Record what you eat and analyze your nutrient levels"
|
||||
HOMEPAGE="http://nut.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ppc x86"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="X? ( x11-libs/fltk:1 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-16.5-build-fixes.patch
|
||||
|
||||
tc-export CC CXX
|
||||
|
||||
sed \
|
||||
-e "s:/usr/local/lib:/usr/share:g" \
|
||||
-i Makefile fltk/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die
|
||||
# need fltk-1.3
|
||||
if use X; then
|
||||
cd fltk
|
||||
emake || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/nut
|
||||
doins raw.data/* || die
|
||||
dobin nut || die
|
||||
if use X; then
|
||||
dobin fltk/Nut || die
|
||||
fi
|
||||
doman nut.1 || die
|
||||
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST calcurse-2.7.tar.gz 532418 RMD160 d87889a9d17f000d78517e0a7edd587147313d44 SHA1 6554923a1699732faab836cebd96bab31a107743 SHA256 9a73fe080c2cfc74186b0ac8455e9f2ba2176ead9f3fd5a73f9553f607bd9d9f
|
||||
DIST calcurse-2.9.2.tar.gz 517071 RMD160 919f71d0b01ea97e2f6a4ca48756d3c4d03cf327 SHA1 ab59b3275a9b7eb9184797f9e998e64783b03ceb SHA256 e116c52fb82a051b38950bdbdb3f9df99fce2713c64d3eda1de236bacba28a55
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/calcurse/calcurse-2.7.ebuild,v 1.3 2010/05/18 17:44:18 ken69267 Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="a text-based personal organizer"
|
||||
HOMEPAGE="http://culot.org/calcurse/index.html"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="linguas_en linguas_fr linguas_de linguas_es linguas_nl"
|
||||
|
||||
DEPEND="sys-libs/ncurses"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
rm po/LINGUAS
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local ALL_LINGUAS=""
|
||||
|
||||
use linguas_en && ALL_LINGUAS="${ALL_LINGUAS} en"
|
||||
use linguas_fr && ALL_LINGUAS="${ALL_LINGUAS} fr"
|
||||
use linguas_de && ALL_LINGUAS="${ALL_LINGUAS} de"
|
||||
use linguas_es && ALL_LINGUAS="${ALL_LINGUAS} es"
|
||||
use linguas_nl && ALL_LINGUAS="${ALL_LINGUAS} nl"
|
||||
|
||||
ALL_LINGUAS="${ALL_LINGUAS}" econf || die "econf failed"
|
||||
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc AUTHORS ChangeLog NEWS README TODO
|
||||
dohtml doc/*.{html,css}
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST calligra-2.3.86.tar.bz2 123497239 RMD160 1d9049da3491b2567fa3686d84ac580825bffc25 SHA1 719c7ed8293d27576ef178af621af89cddc5fab5 SHA256 3e8471e36ac492e00e80d65ad38446ce7c40eb03eece7b91adc492f3cdb78440
|
||||
DIST calligra-2.3.87.tar.bz2 123191120 RMD160 b10cbd7c553e34c014ad14f5e4272061ec3ad93d SHA1 d398e78c553c4d512c57236a92732765aa82abc5 SHA256 3bdda4c35eb467f7599eef3d4fd4712be157846dc16a873cd9d3afc1b99839ab
|
||||
|
@ -1,197 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/calligra/calligra-2.3.86.ebuild,v 1.2 2012/01/22 22:26:53 dilfridge Exp $
|
||||
|
||||
# note: files that need to be checked for dependencies etc:
|
||||
# CMakeLists.txt, kexi/CMakeLists.txt kexi/migration/CMakeLists.txt
|
||||
# krita/CMakeLists.txt
|
||||
|
||||
EAPI=4
|
||||
|
||||
KDE_SCM=git
|
||||
KDE_MINIMAL=4.6.4
|
||||
OPENGL_REQUIRED=optional
|
||||
|
||||
KDE_HANDBOOK=optional
|
||||
|
||||
KDE_LINGUAS_LIVE_OVERRIDE=true
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="KDE Office Suite"
|
||||
HOMEPAGE="http://www.calligra-suite.org/"
|
||||
[[ ${PV} == 9999 ]] || SRC_URI="mirror://kde/unstable/${P}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
[[ ${PV} == 9999 ]] || KEYWORDS="~amd64 ~x86"
|
||||
IUSE="attica +crypt +eigen +exif fftw +fontconfig freetds +gif glew +glib +gsf
|
||||
gsl +iconv +jpeg jpeg2k +kdcraw kdepim +lcms marble mysql +mso +okular openctl openexr
|
||||
+pdf postgres +semantic-desktop +ssl sybase test tiff +threads +truetype
|
||||
+wmf word-perfect xbase +xml +xslt"
|
||||
|
||||
# please do not sort here, order is same as in CMakeLists.txt
|
||||
CAL_FTS="kexi words flow plan stage tables krita karbon braindump"
|
||||
for cal_ft in ${CAL_FTS}; do
|
||||
IUSE+=" calligra_features_${cal_ft}"
|
||||
done
|
||||
unset cal_ft
|
||||
|
||||
REQUIRED_USE="
|
||||
calligra_features_kexi? ( calligra_features_tables )
|
||||
calligra_features_krita? ( eigen exif lcms )
|
||||
calligra_features_plan? ( kdepim )
|
||||
calligra_features_tables? ( eigen )
|
||||
test? ( calligra_features_karbon )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!app-office/karbon
|
||||
!app-office/koffice-data
|
||||
!app-office/koffice-l10n
|
||||
!app-office/koffice-libs
|
||||
!app-office/koffice-meta
|
||||
!app-office/krita
|
||||
!app-office/kplato
|
||||
!app-office/kpresenter
|
||||
!app-office/kspread
|
||||
!app-office/kword
|
||||
dev-lang/perl
|
||||
dev-libs/boost
|
||||
dev-libs/libxml2
|
||||
$(add_kdebase_dep knewstuff)
|
||||
media-libs/libpng
|
||||
sys-libs/zlib
|
||||
attica? ( dev-libs/libattica )
|
||||
crypt? ( app-crypt/qca:2 )
|
||||
eigen? ( dev-cpp/eigen:2 )
|
||||
exif? ( media-gfx/exiv2 )
|
||||
fftw? ( sci-libs/fftw:3.0 )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
freetds? ( dev-db/freetds )
|
||||
gif? ( media-libs/giflib )
|
||||
glew? ( media-libs/glew )
|
||||
glib? ( dev-libs/glib:2 )
|
||||
gsf? ( gnome-extra/libgsf )
|
||||
gsl? ( sci-libs/gsl )
|
||||
iconv? ( virtual/libiconv )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
kdcraw? ( $(add_kdebase_dep libkdcraw) )
|
||||
kdepim? ( $(add_kdebase_dep kdepimlibs) )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
marble? ( $(add_kdebase_dep marble) )
|
||||
mysql? ( virtual/mysql )
|
||||
okular? ( $(add_kdebase_dep okular) )
|
||||
openctl? ( >=media-libs/opengtl-0.9.15 )
|
||||
openexr? ( media-libs/openexr )
|
||||
pdf? (
|
||||
app-text/poppler
|
||||
media-gfx/pstoedit
|
||||
)
|
||||
postgres? (
|
||||
dev-db/postgresql-base
|
||||
=dev-libs/libpqxx-3*
|
||||
)
|
||||
semantic-desktop? ( dev-libs/soprano )
|
||||
ssl? ( dev-libs/openssl )
|
||||
sybase? ( dev-db/freetds )
|
||||
tiff? ( media-libs/tiff )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
word-perfect? (
|
||||
app-text/libwpd
|
||||
app-text/libwps
|
||||
app-text/libwpg
|
||||
)
|
||||
xbase? ( dev-db/xbase )
|
||||
xslt? ( dev-libs/libxslt )
|
||||
calligra_features_kexi? (
|
||||
>=dev-db/sqlite-3.7.9:3[extensions]
|
||||
dev-libs/icu
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
RESTRICT=test
|
||||
# bug 394273
|
||||
|
||||
src_configure() {
|
||||
local cal_ft
|
||||
|
||||
# first write out things we want to hard-enable
|
||||
local mycmakeargs=(
|
||||
"-DWITH_Boost=ON"
|
||||
"-DWITH_LibXml2=ON"
|
||||
"-DWITH_PNG=ON"
|
||||
"-DWITH_ZLIB=ON"
|
||||
"-DGHNS=ON"
|
||||
"-DWITH_X11=ON"
|
||||
"-DWITH_Qt4=ON"
|
||||
"-DQT3SUPPORT=ON" # kde4-base.eclass pulls this in anyway
|
||||
)
|
||||
|
||||
# default disablers
|
||||
mycmakeargs+=(
|
||||
"-DBUILD_mobile=OFF" # we dont suppor mobile gui, maybe arm could
|
||||
"-DWITH_LCMS=OFF" # we use lcms:2
|
||||
"-DCREATIVEONLY=OFF"
|
||||
"-DWITH_TINY=OFF"
|
||||
"-DWITH_CreateResources=OFF" # NOT PACKAGED: http://create.freedesktop.org/
|
||||
"-DWITH_DCMTK=OFF" # NOT PACKAGED: http://www.dcmtk.org/dcmtk.php.en
|
||||
"-DWITH_Spnav=OFF" # NOT PACKAGED: http://spacenav.sourceforge.net/
|
||||
)
|
||||
|
||||
# regular options
|
||||
mycmakeargs+=(
|
||||
$(cmake-utils_use_with attica LibAttica)
|
||||
$(cmake-utils_use_with crypt QCA2)
|
||||
$(cmake-utils_use_with eigen Eigen2)
|
||||
$(cmake-utils_use_with exif Exiv2)
|
||||
$(cmake-utils_use_with fftw FFTW3)
|
||||
$(cmake-utils_use_with fontconfig Fontconfig)
|
||||
$(cmake-utils_use_with freetds FreeTDS)
|
||||
$(cmake-utils_use_with gif GIF2)
|
||||
$(cmake-utils_use_with glew GLEW)
|
||||
$(cmake-utils_use_with glib GLIB2)
|
||||
$(cmake-utils_use_with glib GObject)
|
||||
$(cmake-utils_use_with gsf LIBGSF)
|
||||
$(cmake-utils_use_with gsl GSL)
|
||||
$(cmake-utils_use_with iconv Iconv)
|
||||
$(cmake-utils_use_with jpeg JPEG)
|
||||
$(cmake-utils_use_with jpeg2k OpenJPEG)
|
||||
$(cmake-utils_use_with kdcraw Kdcraw)
|
||||
$(cmake-utils_use_with kdepim KdepimLibs)
|
||||
$(cmake-utils_use_with lcms LCMS2)
|
||||
$(cmake-utils_use_with marble Marble)
|
||||
$(cmake-utils_use_with mysql MySQL)
|
||||
$(cmake-utils_use_with okular Okular)
|
||||
$(cmake-utils_use_with openctl OpenCTL)
|
||||
$(cmake-utils_use_with openexr OpenEXR)
|
||||
$(cmake-utils_use_with opengl OpenGL)
|
||||
$(cmake-utils_use_with pdf Poppler)
|
||||
$(cmake-utils_use_with pdf Pstoedit)
|
||||
$(cmake-utils_use_with postgres PostgreSQL)
|
||||
$(cmake-utils_use_with semantic-desktop Soprano)
|
||||
$(cmake-utils_use semantic-desktop NEPOMUK)
|
||||
$(cmake-utils_use_with ssl OpenSSL)
|
||||
$(cmake-utils_use_with sybase FreeTDS)
|
||||
$(cmake-utils_use_with tiff TIFF)
|
||||
$(cmake-utils_use_with threads Threads)
|
||||
$(cmake-utils_use_with truetype Freetype)
|
||||
$(cmake-utils_use_with word-perfect WPD)
|
||||
$(cmake-utils_use_with word-perfect WPG)
|
||||
$(cmake-utils_use_with xbase XBase)
|
||||
$(cmake-utils_use_with xslt LibXslt)
|
||||
$(cmake-utils_use_build wmf libkowmf)
|
||||
$(cmake-utils_use_build mso libmsooxml)
|
||||
)
|
||||
|
||||
# applications
|
||||
for cal_ft in ${CAL_FTS}; do
|
||||
mycmakeargs+=( $(cmake-utils_use_build calligra_features_${cal_ft} ${cal_ft}) )
|
||||
done
|
||||
mycmakeargs+=( $(cmake-utils_use_build test cstester) )
|
||||
|
||||
# filters
|
||||
|
||||
kde4-base_src_configure
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
From b4c55f40811cdb7ae990eeeca26757ad85ba42c8 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas K. Huettel (dilfridge) <mail@akhuettel.de>
|
||||
Date: Fri, 24 Feb 2012 22:24:14 +0100
|
||||
Subject: [PATCH] Only build koabstraction if words, tables and stage are really built (not just can be built)
|
||||
|
||||
---
|
||||
CMakeLists.txt | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 8701780..5d8434e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -600,9 +600,9 @@ if(SHOULD_BUILD_ACTIVE)
|
||||
endif(SHOULD_BUILD_ACTIVE)
|
||||
|
||||
|
||||
-if(NOT SHOULD_BUILD_TABLES OR NOT SHOULD_BUILD_WORDS OR NOT SHOULD_BUILD_STAGE)
|
||||
+if(NOT SHOULD_BUILD_TABLES OR NOT BUILD_tables OR NOT SHOULD_BUILD_WORDS OR NOT BUILD_words OR NOT SHOULD_BUILD_STAGE OR NOT BUILD_stage)
|
||||
set(SHOULD_BUILD_KOABSTRACTION FALSE)
|
||||
-endif(NOT SHOULD_BUILD_TABLES OR NOT SHOULD_BUILD_WORDS OR NOT SHOULD_BUILD_STAGE)
|
||||
+endif(NOT SHOULD_BUILD_TABLES OR NOT BUILD_tables OR NOT SHOULD_BUILD_WORDS OR NOT BUILD_words OR NOT SHOULD_BUILD_STAGE OR NOT BUILD_stage)
|
||||
|
||||
if(SHOULD_BUILD_KOABSTRACTION)
|
||||
# koabstraction depends on kotext & flake
|
||||
--
|
||||
1.7.3.4
|
||||
|
@ -1,2 +1,4 @@
|
||||
DIST gtranslator-1.9.13.tar.bz2 4655865 RMD160 aa98aff79d5f7148310776fa4d699547e1241ab0 SHA1 b8a7927452b8a5c02c491fc1191ea0e7a60a42ce SHA256 c0b371b81630cf2e4efb6968c20f7580c62c34d9161c852a5d008622cd91408e
|
||||
DIST gtranslator-2.90.7.tar.bz2 5194082 RMD160 92a3a09d2c907374b61597911b2fec3f1b55642d SHA1 0981ae52bb83ad02039857b6fa938230cbb7e65a SHA256 55845ad665f5e55265dd017d1c96e41a72c4c5691eb218ba9db6985b66afa556
|
||||
DIST gtranslator-2.90.8.tar.xz 4559228 RMD160 cb98ea670a0768ba74c99c2154dc041202be3b84 SHA1 93bdf839b83f7d429232c18ab4d4cd1e53641654 SHA256 89f6be55d901d62e09065ed92f471eb569834eaa7babc8a48b2255c26a105037
|
||||
DIST introspection.m4.bz2 1181 RMD160 3648afa820c2ee7e240083076e1452285d043084 SHA1 e5188cc387d0d17feb77684feff7ff163779912f SHA256 69a2a57b12179159420825d1d44c74108014b0864c4d63500265639cfa9151ae
|
||||
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/gtranslator/gtranslator-2.90.8.ebuild,v 1.1 2012/02/24 23:57:57 tetromino Exp $
|
||||
|
||||
EAPI="4"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_DEPEND="gnome? 2"
|
||||
|
||||
inherit gnome2 multilib python
|
||||
|
||||
DESCRIPTION="An enhanced gettext po file editor for GNOME"
|
||||
HOMEPAGE="http://gtranslator.sourceforge.net/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc gnome spell"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/glib-2.28.0:2
|
||||
>=x11-libs/gtk+-3.0.3:3
|
||||
>=x11-libs/gtksourceview-3.0.0:3.0
|
||||
>=dev-libs/gdl-2.91.91:3
|
||||
>=dev-libs/libxml2-2.4.12:2
|
||||
>=dev-libs/json-glib-0.12.0
|
||||
>=dev-libs/libpeas-1.0.0[gtk]
|
||||
gnome-extra/libgda:5
|
||||
>=app-text/iso-codes-0.35
|
||||
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
|
||||
gnome? (
|
||||
gnome-extra/gnome-utils
|
||||
x11-libs/gtk+:3[introspection] )
|
||||
spell? ( app-text/gtkspell:3 )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
gnome? (
|
||||
>=dev-libs/libpeas-1.0.0[gtk,python]
|
||||
|| ( dev-python/pygobject:2[introspection] dev-python/pygobject:3 )
|
||||
gnome-extra/gucharmap:2.90[introspection] )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=app-text/scrollkeeper-0.1.4
|
||||
>=dev-util/intltool-0.40
|
||||
>=sys-devel/gettext-0.17
|
||||
dev-util/pkgconfig
|
||||
app-text/gnome-doc-utils
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
doc? ( >=dev-util/gtk-doc-1 )"
|
||||
# eautoreconf requires gnome-base/gnome-common
|
||||
|
||||
pkg_setup() {
|
||||
DOCS="AUTHORS ChangeLog HACKING INSTALL NEWS README THANKS"
|
||||
G2CONF="${G2CONF}
|
||||
--disable-static
|
||||
$(use_with gnome dictionary)
|
||||
$(use_enable gnome introspection)
|
||||
$(use_with spell gtkspell3)"
|
||||
|
||||
if use gnome; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
gnome2_src_prepare
|
||||
|
||||
if use gnome; then
|
||||
python_clean_py-compile_files
|
||||
else
|
||||
# don't install charmap plugin, it requires gnome-extra/gucharmap
|
||||
sed -e 's:\scharmap\s: :g' -i plugins/Makefile.* ||
|
||||
die "sed plugins/Makefile.* failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
if use gnome; then
|
||||
python_need_rebuild
|
||||
python_mod_optimize /usr/$(get_libdir)/gtranslator/plugins
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_pkg_postrm
|
||||
use gnome && python_mod_cleanup /usr/$(get_libdir)/gtranslator/plugins
|
||||
}
|
@ -0,0 +1,202 @@
|
||||
Author: Ralph Sennhaser <sera@gentoo.org>
|
||||
|
||||
The idea is to apply the pax markings before using a freshly built jdk. Be it
|
||||
for running tests or building additonal vms or after bootstrap to build the
|
||||
final jdk.
|
||||
|
||||
There are currently two types of pax markings with the userspace utilities
|
||||
chpax and paxctl. Both types of pax marking are base on modifing the ELFs. A
|
||||
third type based on xattrs is in development.
|
||||
|
||||
The embedded test_gamma.patch is taken from icedtea 2.0 itself.
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 129edf2..158b149 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -279,6 +279,10 @@ else
|
||||
ICEDTEA_PATCHES += patches/nss-not-enabled-config.patch
|
||||
endif
|
||||
|
||||
+if WITH_PAX
|
||||
+ICEDTEA_PATCHES += patches/test_gamma.patch
|
||||
+endif
|
||||
+
|
||||
ICEDTEA_PATCHES += $(DISTRIBUTION_PATCHES)
|
||||
|
||||
# Bootstrapping patches
|
||||
@@ -300,7 +304,6 @@ ICEDTEA_BOOT_PATCHES = \
|
||||
patches/boot/jar.patch \
|
||||
patches/boot/symbols.patch \
|
||||
patches/boot/tobin.patch \
|
||||
- patches/boot/test_gamma.patch \
|
||||
patches/boot/tools.jar.patch \
|
||||
patches/boot/jopt.patch \
|
||||
patches/boot/jaxp-dependency.patch \
|
||||
@@ -320,6 +323,10 @@ ICEDTEA_BOOT_PATCHES = \
|
||||
patches/boot/ecj-autoboxing.patch \
|
||||
patches/boot/xsltproc.patch
|
||||
|
||||
+if !WITH_PAX
|
||||
+ICEDTEA_BOOT_PATCHES += patches/boot/test_gamma.patch
|
||||
+endif
|
||||
+
|
||||
if CP39408_JAVAH
|
||||
ICEDTEA_BOOT_PATCHES += patches/boot/pr39408.patch
|
||||
endif
|
||||
@@ -1612,6 +1619,7 @@ stamps/icedtea.stamp: stamps/bootstrap-directory-symlink-stage2.stamp \
|
||||
$(ICEDTEA_ENV) \
|
||||
-C openjdk/ \
|
||||
$(ICEDTEA_BUILD_TARGET)
|
||||
+ $(abs_top_builddir)/pax-mark-vm $(BUILD_OUTPUT_DIR)/j2sdk-image
|
||||
mkdir -p $(BUILD_OUTPUT_DIR)/j2sdk-image/jre/lib/$(INSTALL_ARCH_DIR)
|
||||
mkdir -p $(BUILD_OUTPUT_DIR)/j2re-image/lib/$(INSTALL_ARCH_DIR)
|
||||
mkdir -p $(BUILD_OUTPUT_DIR)/j2sdk-image/jre/lib/ext
|
||||
@@ -1765,6 +1773,7 @@ stamps/icedtea-boot.stamp: stamps/bootstrap-directory-symlink-stage1.stamp \
|
||||
$(ICEDTEA_ENV_BOOT) \
|
||||
-C openjdk-boot \
|
||||
$(ICEDTEA_BUILD_TARGET)
|
||||
+ $(abs_top_builddir)/pax-mark-vm $(BOOT_BUILD_OUTPUT_DIR)/j2sdk-image
|
||||
@echo "Bootstrapped IcedTea is served:" \
|
||||
$(BOOT_BUILD_OUTPUT_DIR)
|
||||
mkdir -p stamps
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index 5310d71..f08f1a9 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -2181,3 +2181,49 @@ rmdir tmp.$$
|
||||
AM_CONDITIONAL([NO_BYTECODE7], test x"${it_cv_bytecode7}" = "xyes")
|
||||
AC_PROVIDE([$0])dnl
|
||||
])
|
||||
+
|
||||
+AC_DEFUN_ONCE([IT_WITH_PAX],
|
||||
+[
|
||||
+ AC_MSG_CHECKING([for pax utility to use])
|
||||
+ AC_ARG_WITH([pax],
|
||||
+ [AS_HELP_STRING(--with-pax=COMMAND,the command used for pax marking)],
|
||||
+ [
|
||||
+ PAX_COMMAND=${withval}
|
||||
+ if test "x${PAX_COMMAND}" = "xno"; then
|
||||
+ PAX_COMMAND="not specified"
|
||||
+ fi
|
||||
+ ],
|
||||
+ [
|
||||
+ PAX_COMMAND="not specified"
|
||||
+ ])
|
||||
+ case "x${PAX_COMMAND}" in
|
||||
+ xchpax)
|
||||
+ case "${host_cpu}" in
|
||||
+ i?86)
|
||||
+ PAX_COMMAND_ARGS="-msp"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ PAX_COMMAND_ARGS="-m"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+ xpaxctl)
|
||||
+ case "${host_cpu}" in
|
||||
+ i?86)
|
||||
+ PAX_COMMAND_ARGS="-msp"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ PAX_COMMAND_ARGS="-m"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+ *)
|
||||
+ PAX_COMMAND="not specified"
|
||||
+ PAX_COMMAND_ARGS="not specified"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ AM_CONDITIONAL(WITH_PAX, test "x${PAX_COMMAND}" != "xnot specified")
|
||||
+ AC_MSG_RESULT(${PAX_COMMAND})
|
||||
+ AC_SUBST(PAX_COMMAND)
|
||||
+ AC_SUBST(PAX_COMMAND_ARGS)
|
||||
+])
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index e0b866b..7c665ef 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -146,6 +146,9 @@ IT_WITH_PROJECT
|
||||
IT_ENABLE_HG
|
||||
IT_WITH_TZDATA_DIR
|
||||
|
||||
+IT_WITH_PAX
|
||||
+AC_CONFIG_FILES([pax-mark-vm], [chmod +x pax-mark-vm])
|
||||
+
|
||||
AC_PATH_TOOL([HG],[hg])
|
||||
if test "x${enable_hg}" = "xyes"; then
|
||||
if test "x${HG}" = x; then
|
||||
diff --git a/patches/test_gamma.patch b/patches/test_gamma.patch
|
||||
new file mode 100644
|
||||
index 0000000..7e8d3d6
|
||||
--- /dev/null
|
||||
+++ b/patches/test_gamma.patch
|
||||
@@ -0,0 +1,47 @@
|
||||
+diff -Nru ../openjdk.orig/openjdk/hotspot/make/linux/Makefile openjdk/hotspot/make/linux/Makefile
|
||||
+--- ../openjdk.orig/openjdk/hotspot/make/linux/Makefile 2009-10-30 17:37:07.000000000 +0000
|
||||
++++ openjdk/hotspot/make/linux/Makefile 2009-10-30 17:45:40.000000000 +0000
|
||||
+@@ -287,42 +287,36 @@
|
||||
+
|
||||
+ $(TARGETS_C2): $(SUBDIRS_C2)
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS)
|
||||
+- cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && ./test_gamma
|
||||
+ ifdef INSTALL
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS) install
|
||||
+ endif
|
||||
+
|
||||
+ $(TARGETS_TIERED): $(SUBDIRS_TIERED)
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS)
|
||||
+- cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && ./test_gamma
|
||||
+ ifdef INSTALL
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS) install
|
||||
+ endif
|
||||
+
|
||||
+ $(TARGETS_C1): $(SUBDIRS_C1)
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_compiler1/$(patsubst %1,%,$@) && $(MAKE) $(MFLAGS)
|
||||
+- cd $(OSNAME)_$(BUILDARCH)_compiler1/$(patsubst %1,%,$@) && ./test_gamma
|
||||
+ ifdef INSTALL
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_compiler1/$(patsubst %1,%,$@) && $(MAKE) $(MFLAGS) install
|
||||
+ endif
|
||||
+
|
||||
+ $(TARGETS_CORE): $(SUBDIRS_CORE)
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_core/$(patsubst %core,%,$@) && $(MAKE) $(MFLAGS)
|
||||
+- cd $(OSNAME)_$(BUILDARCH)_core/$(patsubst %core,%,$@) && ./test_gamma
|
||||
+ ifdef INSTALL
|
||||
+ cd $(OSNAME)_$(BUILDARCH)_core/$(patsubst %core,%,$@) && $(MAKE) $(MFLAGS) install
|
||||
+ endif
|
||||
+
|
||||
+ $(TARGETS_ZERO): $(SUBDIRS_ZERO)
|
||||
+ cd $(OSNAME)_$(VARIANTARCH)_zero/$(patsubst %zero,%,$@) && $(MAKE) $(MFLAGS)
|
||||
+- cd $(OSNAME)_$(VARIANTARCH)_zero/$(patsubst %zero,%,$@) && ./test_gamma
|
||||
+ ifdef INSTALL
|
||||
+ cd $(OSNAME)_$(VARIANTARCH)_zero/$(patsubst %zero,%,$@) && $(MAKE) $(MFLAGS) install
|
||||
+ endif
|
||||
+
|
||||
+ $(TARGETS_SHARK): $(SUBDIRS_SHARK)
|
||||
+ cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS)
|
||||
+- cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && ./test_gamma
|
||||
+ ifdef INSTALL
|
||||
+ cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS) install
|
||||
+ endif
|
||||
+
|
||||
diff --git a/pax-mark-vm.in b/pax-mark-vm.in
|
||||
new file mode 100644
|
||||
index 0000000..118bb61
|
||||
--- /dev/null
|
||||
+++ b/pax-mark-vm.in
|
||||
@@ -0,0 +1,13 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+# Taken from Gentoo's pax-utils.eclass
|
||||
+list_paxables() {
|
||||
+ file "$@" 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//'
|
||||
+}
|
||||
+
|
||||
+if test "@PAX_COMMAND@" != "not specified"; then
|
||||
+ for paxable in `list_paxables "${1}"/bin/* "${1}"/jre/bin/*`; do
|
||||
+ echo "PaX mark @PAX_COMMAND_ARGS@ ${paxable}"
|
||||
+ @PAX_COMMAND@ @PAX_COMMAND_ARGS@ "${paxable}"
|
||||
+ done
|
||||
+fi
|
@ -0,0 +1,344 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-6.1.10.6.ebuild,v 1.1 2012/02/24 18:43:48 sera Exp $
|
||||
# Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
|
||||
|
||||
# *********************************************************
|
||||
# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-7.* AS WELL *
|
||||
# *********************************************************
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
|
||||
|
||||
ICEDTEA_PKG=${PN}$(replace_version_separator 1 -)
|
||||
OPENJDK_BUILD="22"
|
||||
OPENJDK_DATE="28_feb_2011"
|
||||
OPENJDK_TARBALL="openjdk-6-src-b${OPENJDK_BUILD}-${OPENJDK_DATE}.tar.gz"
|
||||
JAXP_TARBALL="jaxp144_01.zip"
|
||||
JAXWS_TARBALL="jdk6-jaxws-b20.zip"
|
||||
JAF_TARBALL="jdk6-jaf-b20.zip"
|
||||
HOTSPOT_TARBALL="f0f676c5a2c6.tar.gz"
|
||||
CACAO_TARBALL="c7bf150bfa46.tar.gz" # 17 Mar 2011
|
||||
|
||||
DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="
|
||||
http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz
|
||||
http://download.java.net/openjdk/jdk6/promoted/b${OPENJDK_BUILD}/${OPENJDK_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/${JAXWS_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/${JAF_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/${JAXP_TARBALL}
|
||||
hs20? ( http://hg.openjdk.java.net/hsx/hsx20/master/archive/${HOTSPOT_TARBALL} )
|
||||
!amd64? ( !sparc? ( !x86? (
|
||||
http://icedtea.classpath.org/download/drops/cacao/${CACAO_TARBALL}
|
||||
) ) )"
|
||||
|
||||
LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
|
||||
SLOT="6"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE="+X +alsa cjk +cups debug doc examples +hs20 javascript +jbootstrap +nsplugin
|
||||
+nss pax_kernel pulseaudio +source systemtap test +webstart"
|
||||
|
||||
# Ideally the following were optional at build time.
|
||||
ALSA_COMMON_DEP="
|
||||
>=media-libs/alsa-lib-1.0"
|
||||
CUPS_COMMON_DEP="
|
||||
>=net-print/cups-1.2.12"
|
||||
X_COMMON_DEP="
|
||||
dev-libs/glib
|
||||
>=media-libs/freetype-2.3.5
|
||||
>=x11-libs/gtk+-2.8:2
|
||||
>=x11-libs/libX11-1.1.3
|
||||
>=x11-libs/libXext-1.1.1
|
||||
>=x11-libs/libXi-1.1.3
|
||||
>=x11-libs/libXrender-0.9.4
|
||||
>=x11-libs/libXtst-1.0.3"
|
||||
X_DEPEND="
|
||||
>=x11-libs/libXau-1.0.3
|
||||
>=x11-libs/libXdmcp-1.0.2
|
||||
>=x11-libs/libXinerama-1.0.2
|
||||
>=x11-libs/libXp-1.0.0
|
||||
x11-proto/inputproto
|
||||
>=x11-proto/xextproto-7.1.1
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto"
|
||||
|
||||
COMMON_DEP="
|
||||
>=media-libs/giflib-4.1.6
|
||||
>=media-libs/libpng-1.2
|
||||
>=sys-libs/zlib-1.2.3
|
||||
virtual/jpeg
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nss? ( >=dev-libs/nss-3.12.5-r1 )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
|
||||
systemtap? ( >=dev-util/systemtap-1 )"
|
||||
|
||||
# media-fonts/lklug needs ppc ppc64 keywords
|
||||
RDEPEND="${COMMON_DEP}
|
||||
!dev-java/icedtea6
|
||||
X? (
|
||||
${X_COMMON_DEP}
|
||||
media-fonts/dejavu
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
!ppc? ( !ppc64? ( media-fonts/lklug ) )
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
)
|
||||
alsa? ( ${ALSA_COMMON_DEP} )
|
||||
cups? ( ${CUPS_COMMON_DEP} )"
|
||||
|
||||
# Only ant-core-1.7.1-r2 and later properly respect environment variables.
|
||||
# xalan/xerces: automatic code generation (also needed for Ant 1.8.0 to work properly)
|
||||
# ca-certificates, perl and openssl are used for the cacerts keystore generation
|
||||
# xext headers have two variants depending on version - bug #288855
|
||||
# !eclipse-ecj-3.7 - bug #392587
|
||||
# autoconf - as long as we use eautoreconf, version restrictions for bug #294918
|
||||
DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
|
||||
|| (
|
||||
>=dev-java/gcj-jdk-4.3
|
||||
dev-java/icedtea-bin:6
|
||||
dev-java/icedtea:6
|
||||
)
|
||||
app-arch/cpio
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-misc/ca-certificates
|
||||
>=dev-java/ant-core-1.7.1-r2
|
||||
dev-java/ant-nodeps
|
||||
>=dev-java/xalan-2.7.0:0
|
||||
>=dev-java/xerces-2.9.1:2
|
||||
dev-lang/perl
|
||||
dev-libs/openssl
|
||||
dev-util/pkgconfig
|
||||
sys-apps/lsb-release
|
||||
|| ( >=sys-devel/autoconf-2.65:2.5 <sys-devel/autoconf-2.64:2.5 )
|
||||
${X_DEPEND}
|
||||
jbootstrap? (
|
||||
|| ( <dev-java/eclipse-ecj-3.7 dev-java/ecj-gcj )
|
||||
)
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:6 )
|
||||
nsplugin? ( dev-java/icedtea-web:6[nsplugin] )"
|
||||
|
||||
S="${WORKDIR}"/${ICEDTEA_PKG}
|
||||
|
||||
# a bit of hack so the VM switching is triggered without causing dependency troubles
|
||||
JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.5"
|
||||
JAVA_PKG_WANT_SOURCE="1.5"
|
||||
JAVA_PKG_WANT_TARGET="1.5"
|
||||
|
||||
pkg_setup() {
|
||||
# quite a hack since java-config does not provide a way for a package
|
||||
# to limit supported VM's for building and their preferred order
|
||||
if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
|
||||
einfo "Honoring user-set JAVA_PKG_FORCE_VM"
|
||||
elif has_version "<=dev-java/icedtea-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea6"
|
||||
elif has_version ">dev-java/icedtea-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-6"
|
||||
elif has_version "<dev-java/icedtea-bin-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea6-bin"
|
||||
elif has_version ">=dev-java/icedtea-bin-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-bin-6"
|
||||
elif has_version dev-java/gcj-jdk; then
|
||||
JAVA_PKG_FORCE_VM="gcj-jdk"
|
||||
else
|
||||
die "Unable to find a supported VM for building"
|
||||
fi
|
||||
|
||||
einfo "Forced vm ${JAVA_PKG_FORCE_VM}"
|
||||
java-vm-2_pkg_setup
|
||||
java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${ICEDTEA_PKG}.tar.gz
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# icedtea doesn't like some locales. #330433 #389717
|
||||
export LANG="C" LC_ALL="C"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-${SLOT}_pax_kernel_support.patch #389751
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config bootstrap
|
||||
local vm=$(java-pkg_get-current-vm)
|
||||
|
||||
# IcedTea6 can't be built using IcedTea7; its class files are too new
|
||||
if has "${vm}" icedtea6 icedtea-6 icedtea6-bin icedtea-bin-6; then
|
||||
use jbootstrap && bootstrap=yes
|
||||
elif has "${vm}" gcj-jdk; then
|
||||
# gcj-jdk ensures ecj is present.
|
||||
use jbootstrap || einfo "bootstrap forced on for ${vm}, ignoring use jbootstrap"
|
||||
bootstrap=yes
|
||||
else
|
||||
eerror "IcedTea${SLOT} must be built with either a JDK based on GNU Classpath or an existing build of IcedTea${SLOT}."
|
||||
die "Install a GNU Classpath JDK (gcj-jdk)"
|
||||
fi
|
||||
|
||||
if [[ ${bootstrap} ]]; then
|
||||
config="${config} --enable-bootstrap"
|
||||
|
||||
# icedtea-6 javac wrapper requires to always have ecj if bootstrapping #392337
|
||||
local ecj_jar="$(readlink "${EPREFIX}"/usr/share/eclipse-ecj/ecj.jar)"
|
||||
# Don't use eclipse-ecj-3.7 #392587
|
||||
local ecj_all=( "${EPREFIX}"/usr/share/{eclipse-ecj,ecj-gcj}-* )
|
||||
ecj_all=( "${ecj_all[@]/*eclipse-ecj-3.7*/}" )
|
||||
if ! has "${ecj_jar%/lib/ecj.jar}" "${ecj_all[@]}"; then
|
||||
ecj_jar="${ecj_jar%/lib/ecj.jar}"
|
||||
ewarn "${ecj_jar##*/} set as system ecj, can't use for bootstrap"
|
||||
ewarn "Found usable: ${ecj_all[@]##*/}"
|
||||
ewarn "using ${ecj_all##*/} instead"
|
||||
ecj_jar="${ecj_all}"/lib/ecj.jar
|
||||
fi
|
||||
config="${config} --with-ecj-jar=${ecj_jar}"
|
||||
else
|
||||
config="${config} --disable-bootstrap"
|
||||
fi
|
||||
|
||||
# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
|
||||
# Otherwise use CACAO
|
||||
if ! has "${ARCH}" amd64 sparc x86; then
|
||||
config="${config} --enable-cacao --with-cacao-src-zip=${DISTDIR}/${CACAO_TARBALL}"
|
||||
fi
|
||||
|
||||
# OpenJDK-specific parallelism support. Bug #389791, #337827
|
||||
# Implementation modified from waf-utils.eclass
|
||||
# Note that "-j" is converted to "-j1" as the system doesn't support --load-average
|
||||
local procs=$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
|
||||
config="${config} --with-parallel-jobs=${procs}";
|
||||
einfo "Configuring using --with-parallel-jobs=${procs}"
|
||||
|
||||
if use javascript ; then
|
||||
config="${config} --with-rhino=$(java-pkg_getjar rhino:1.6 js.jar)"
|
||||
else
|
||||
config="${config} --without-rhino"
|
||||
fi
|
||||
|
||||
if use hs20 ; then
|
||||
config="${config} --with-hotspot-build=hs20 --with-hotspot-src-zip=${DISTDIR}/${HOTSPOT_TARBALL}"
|
||||
fi
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
|
||||
econf ${config} \
|
||||
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
|
||||
--with-jaxp-drop-zip="${DISTDIR}/${JAXP_TARBALL}" \
|
||||
--with-jaxws-drop-zip="${DISTDIR}/${JAXWS_TARBALL}" \
|
||||
--with-jaf-drop-zip="${DISTDIR}/${JAF_TARBALL}" \
|
||||
--with-jdk-home="$(java-config -O)" \
|
||||
--with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \
|
||||
$(use_enable !debug optimizations) \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable nss) \
|
||||
$(use_enable pulseaudio pulse-java) \
|
||||
$(use_enable systemtap) \
|
||||
$(use_with pax_kernel pax paxctl)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Would use GENTOO_VM otherwise.
|
||||
export ANT_RESPECT_JAVA_HOME=TRUE
|
||||
|
||||
# ant -diagnostics in Ant 1.8.0 fails without xerces-2 and xalan
|
||||
# Load the least that's needed to avoid possible classpath collisions.
|
||||
export ANT_TASKS="xerces-2 xalan ant-nodeps"
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Use Xvfb for tests
|
||||
unset DISPLAY
|
||||
|
||||
Xemake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
local ddest="${ED}/${dest}"
|
||||
dodir "${dest}"
|
||||
|
||||
dodoc README NEWS AUTHORS THANKYOU
|
||||
dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
|
||||
|
||||
cd openjdk.build/j2sdk-image || die
|
||||
|
||||
# Ensures HeadlessGraphicsEnvironment is used.
|
||||
if ! use X; then
|
||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||
fi
|
||||
|
||||
#402507
|
||||
mkdir jre/.systemPrefs || die
|
||||
touch jre/.systemPrefs/.system.lock || die
|
||||
touch jre/.systemPrefs/.systemRootModFile || die
|
||||
|
||||
# doins can't handle symlinks.
|
||||
cp -vRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README
|
||||
|
||||
if use doc; then
|
||||
# java-pkg_dohtml needed for package-list #302654
|
||||
java-pkg_dohtml -r ../docs/* || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodir "${dest}/share";
|
||||
cp -vRP demo sample "${ddest}/share/" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Fix the permissions.
|
||||
find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
|
||||
|
||||
# Needs to be done before generating cacerts
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# We need to generate keystore - bug #273306
|
||||
einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
|
||||
mkdir "${T}/certgen" && cd "${T}/certgen" || die
|
||||
cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
|
||||
for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
|
||||
openssl x509 -text -in "${c}" >> all.crt || die
|
||||
done
|
||||
./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
|
||||
cp -vRP cacerts "${ddest}/jre/lib/security/" || die
|
||||
chmod 644 "${ddest}/jre/lib/security/cacerts" || die
|
||||
|
||||
# Bug 390663
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
||||
eprefixify "${T}"/fontconfig.Gentoo.properties
|
||||
insinto "${dest}"/jre/lib
|
||||
doins "${T}"/fontconfig.Gentoo.properties
|
||||
|
||||
set_java_env "${FILESDIR}/icedtea.env"
|
||||
if ! use X || ! use alsa || ! use cups; then
|
||||
java-vm_revdep-mask "${dest}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<=dev-java/icedtea-6.1.10.4:${SLOT}"; then
|
||||
# portage would preserve the symlink otherwise, related to bug #384397
|
||||
rm -f "${EROOT}/usr/lib/jvm/icedtea6"
|
||||
elog "To unify the layout and simplify scripts, the identifier of Icedtea-6*"
|
||||
elog "has changed from 'icedtea6' to 'icedtea-6' starting from version 6.1.10.4-r1"
|
||||
elog "If you had icedtea6 as system VM, the change should be automatic, however"
|
||||
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
||||
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
||||
fi
|
||||
}
|
@ -0,0 +1,345 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-7.2.0.1.ebuild,v 1.1 2012/02/24 18:43:48 sera Exp $
|
||||
# Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
|
||||
|
||||
# *********************************************************
|
||||
# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-6.* AS WELL *
|
||||
# *********************************************************
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
|
||||
|
||||
ICEDTEA_PKG=icedtea-$(get_version_component_range 2-)
|
||||
OPENJDK_TARBALL="4b063ca7483f.tar.gz"
|
||||
CORBA_TARBALL="d37539e7e838.tar.gz"
|
||||
HOTSPOT_TARBALL="9dfaed4a95e2.tar.gz"
|
||||
JAXP_TARBALL="ae891cd6ba73.tar.gz"
|
||||
JAXWS_TARBALL="1107cfa36f53.tar.gz"
|
||||
JDK_TARBALL="891fb0050add.tar.gz"
|
||||
LANGTOOLS_TARBALL="f0faea84413f.tar.gz"
|
||||
|
||||
DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="
|
||||
http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.0/archive/${OPENJDK_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.0/corba/archive/${CORBA_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.0/jaxp/archive/${JAXP_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.0/jaxws/archive/${JAXWS_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.0/jdk/archive/${JDK_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.0/hotspot/archive/${HOTSPOT_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.0/langtools/archive/${LANGTOOLS_TARBALL}"
|
||||
|
||||
LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
|
||||
SLOT="7"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="+X +alsa cjk +cups debug doc examples javascript +jbootstrap +nsplugin
|
||||
+nss pax_kernel pulseaudio +source systemtap test +webstart"
|
||||
|
||||
# Ideally the following were optional at build time.
|
||||
ALSA_COMMON_DEP="
|
||||
>=media-libs/alsa-lib-1.0"
|
||||
CUPS_COMMON_DEP="
|
||||
>=net-print/cups-1.2.12"
|
||||
X_COMMON_DEP="
|
||||
>=dev-libs/atk-1.30.0
|
||||
>=dev-libs/glib-2.26
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.3.5
|
||||
>=x11-libs/cairo-1.8.8
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-2.8:2
|
||||
>=x11-libs/libX11-1.1.3
|
||||
>=x11-libs/libXext-1.1.1
|
||||
>=x11-libs/libXi-1.1.3
|
||||
>=x11-libs/libXrender-0.9.4
|
||||
>=x11-libs/libXtst-1.0.3
|
||||
>=x11-libs/pango-1.24.5"
|
||||
X_DEPEND="
|
||||
>=x11-libs/libXau-1.0.3
|
||||
>=x11-libs/libXdmcp-1.0.2
|
||||
>=x11-libs/libXinerama-1.0.2
|
||||
>=x11-libs/libXp-1.0.0
|
||||
x11-proto/inputproto
|
||||
>=x11-proto/xextproto-7.1.1
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto"
|
||||
|
||||
COMMON_DEP="
|
||||
>=media-libs/giflib-4.1.6
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libpng-1.2
|
||||
>=sys-libs/zlib-1.2.3
|
||||
virtual/jpeg
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nss? ( >=dev-libs/nss-3.12.5-r1 )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
|
||||
systemtap? ( >=dev-util/systemtap-1 )"
|
||||
|
||||
# cups is needed for X. #390945 #390975
|
||||
RDEPEND="${COMMON_DEP}
|
||||
!dev-java/icedtea:0
|
||||
X? (
|
||||
${CUPS_COMMON_DEP}
|
||||
${X_COMMON_DEP}
|
||||
media-fonts/dejavu
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
media-fonts/lklug
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
)
|
||||
alsa? ( ${ALSA_COMMON_DEP} )
|
||||
cups? ( ${CUPS_COMMON_DEP} )"
|
||||
|
||||
# Only ant-core-1.8.1 has fixed ant -diagnostics when xerces+xalan are not present.
|
||||
# ca-certificates, perl and openssl are used for the cacerts keystore generation
|
||||
# xext headers have two variants depending on version - bug #288855
|
||||
# autoconf - as long as we use eautoreconf, version restrictions for bug #294918
|
||||
DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
|
||||
|| (
|
||||
>=dev-java/gcj-jdk-4.3
|
||||
dev-java/icedtea-bin:7
|
||||
dev-java/icedtea-bin:6
|
||||
dev-java/icedtea:7
|
||||
dev-java/icedtea:6
|
||||
)
|
||||
app-arch/cpio
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-misc/ca-certificates
|
||||
>=dev-java/ant-core-1.8.1
|
||||
dev-java/ant-nodeps
|
||||
dev-lang/perl
|
||||
>=dev-libs/libxslt-1.1.26
|
||||
dev-libs/openssl
|
||||
dev-util/pkgconfig
|
||||
sys-apps/attr
|
||||
sys-apps/lsb-release
|
||||
|| ( >=sys-devel/autoconf-2.65:2.5 <sys-devel/autoconf-2.64:2.5 )
|
||||
${X_DEPEND}
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:7 )
|
||||
nsplugin? ( dev-java/icedtea-web:7[nsplugin] )"
|
||||
|
||||
S="${WORKDIR}"/${ICEDTEA_PKG}
|
||||
|
||||
# a bit of hack so the VM switching is triggered without causing dependency troubles
|
||||
JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.5"
|
||||
JAVA_PKG_WANT_SOURCE="1.5"
|
||||
JAVA_PKG_WANT_TARGET="1.5"
|
||||
|
||||
pkg_setup() {
|
||||
# quite a hack since java-config does not provide a way for a package
|
||||
# to limit supported VM's for building and their preferred order
|
||||
if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
|
||||
einfo "Honoring user-set JAVA_PKG_FORCE_VM"
|
||||
elif has_version "<=dev-java/icedtea-7.2.0:7"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea7"
|
||||
elif has_version ">dev-java/icedtea-7.2.0:7"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-7"
|
||||
elif has_version "dev-java/icedtea-bin:7"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-bin-7"
|
||||
elif has_version "<=dev-java/icedtea-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea6"
|
||||
elif has_version ">dev-java/icedtea-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-6"
|
||||
elif has_version "<dev-java/icedtea-bin-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea6-bin"
|
||||
elif has_version ">=dev-java/icedtea-bin-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-bin-6"
|
||||
elif has_version dev-java/gcj-jdk; then
|
||||
JAVA_PKG_FORCE_VM="gcj-jdk"
|
||||
else
|
||||
die "Unable to find a supported VM for building"
|
||||
fi
|
||||
|
||||
einfo "Forced vm ${JAVA_PKG_FORCE_VM}"
|
||||
java-vm-2_pkg_setup
|
||||
java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${ICEDTEA_PKG}.tar.gz
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# For bootstrap builds as the sandbox control file might not yet exist.
|
||||
addpredict /proc/self/coredump_filter
|
||||
|
||||
# icedtea doesn't like some locales. #330433 #389717
|
||||
export LANG="C" LC_ALL="C"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-7.2.0_pax_kernel_support.patch #389751
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config bootstrap
|
||||
local vm=$(java-pkg_get-current-vm)
|
||||
|
||||
# Whether to bootstrap
|
||||
if has "${vm}" icedtea7 icedtea-7 icedtea-bin-7; then
|
||||
use jbootstrap && bootstrap=yes
|
||||
elif has "${vm}" icedtea6 icedtea-6 icedtea6-bin icedtea-bin-6; then
|
||||
if use jbootstrap; then
|
||||
einfo "We can't currently bootstrap with a IcedTea6 JVM :("
|
||||
einfo "bootstrap forced off, ignoring use jbootstrap"
|
||||
fi
|
||||
elif has "${vm}" gcj-jdk; then
|
||||
# gcj-jdk ensures ecj is present.
|
||||
use jbootstrap || einfo "bootstrap forced on for ${vm}, ignoring use jbootstrap"
|
||||
bootstrap=yes
|
||||
local ecj_jar="$(readlink "${EPREFIX}"/usr/share/eclipse-ecj/ecj.jar)"
|
||||
config="${config} --with-ecj-jar=${ecj_jar}"
|
||||
else
|
||||
eerror "IcedTea must be built with either a JDK based on GNU Classpath or an existing build of IcedTea."
|
||||
die "Install a GNU Classpath JDK (gcj-jdk)"
|
||||
fi
|
||||
|
||||
if [[ ${bootstrap} ]]; then
|
||||
config="${config} --enable-bootstrap"
|
||||
else
|
||||
config="${config} --disable-bootstrap"
|
||||
fi
|
||||
|
||||
# OpenJDK-specific parallelism support. Bug #389791, #337827
|
||||
# Implementation modified from waf-utils.eclass
|
||||
# Note that "-j" is converted to "-j1" as the system doesn't support --load-average
|
||||
local procs=$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
|
||||
config="${config} --with-parallel-jobs=${procs}";
|
||||
einfo "Configuring using --with-parallel-jobs=${procs}"
|
||||
|
||||
if use javascript ; then
|
||||
config="${config} --with-rhino=$(java-pkg_getjar rhino:1.6 js.jar)"
|
||||
else
|
||||
config="${config} --without-rhino"
|
||||
fi
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
|
||||
econf ${config} \
|
||||
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
|
||||
--with-corba-src-zip="${DISTDIR}/${CORBA_TARBALL}" \
|
||||
--with-jaxp-src-zip="${DISTDIR}/${JAXP_TARBALL}" \
|
||||
--with-jaxws-src-zip="${DISTDIR}/${JAXWS_TARBALL}" \
|
||||
--with-jdk-src-zip="${DISTDIR}/${JDK_TARBALL}" \
|
||||
--with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_TARBALL}" \
|
||||
--with-langtools-src-zip="${DISTDIR}/${LANGTOOLS_TARBALL}" \
|
||||
--with-jdk-home="$(java-config -O)" \
|
||||
--with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \
|
||||
$(use_enable !debug optimizations) \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable nss) \
|
||||
$(use_enable pulseaudio pulse-java) \
|
||||
$(use_enable systemtap) \
|
||||
$(use_with pax_kernel pax paxctl)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Would use GENTOO_VM otherwise.
|
||||
export ANT_RESPECT_JAVA_HOME=TRUE
|
||||
|
||||
# Load the least that's needed to avoid possible classpath collisions.
|
||||
export ANT_TASKS="ant-nodeps"
|
||||
|
||||
emake -j 1
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Use Xvfb for tests
|
||||
unset DISPLAY
|
||||
|
||||
Xemake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
local ddest="${ED}/${dest}"
|
||||
dodir "${dest}"
|
||||
|
||||
dodoc README NEWS AUTHORS
|
||||
dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
|
||||
|
||||
cd openjdk.build/j2sdk-image || die
|
||||
|
||||
# Ensures HeadlessGraphicsEnvironment is used.
|
||||
if ! use X; then
|
||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||
fi
|
||||
|
||||
# Don't hide classes
|
||||
rm lib/ct.sym || die
|
||||
|
||||
#402507
|
||||
mkdir jre/.systemPrefs || die
|
||||
touch jre/.systemPrefs/.system.lock || die
|
||||
touch jre/.systemPrefs/.systemRootModFile || die
|
||||
|
||||
# doins can't handle symlinks.
|
||||
cp -vRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README
|
||||
|
||||
if use doc; then
|
||||
# java-pkg_dohtml needed for package-list #302654
|
||||
java-pkg_dohtml -r ../docs/* || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodir "${dest}/share";
|
||||
cp -vRP demo sample "${ddest}/share/" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Fix the permissions.
|
||||
find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
|
||||
|
||||
# Needs to be done before generating cacerts
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# We need to generate keystore - bug #273306
|
||||
einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
|
||||
mkdir "${T}/certgen" && cd "${T}/certgen" || die
|
||||
cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
|
||||
for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
|
||||
openssl x509 -text -in "${c}" >> all.crt || die
|
||||
done
|
||||
./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
|
||||
cp -vRP cacerts "${ddest}/jre/lib/security/" || die
|
||||
chmod 644 "${ddest}/jre/lib/security/cacerts" || die
|
||||
|
||||
# OpenJDK7 should be able to use fontconfig instead, but wont hurt to
|
||||
# install it anyway. Bug 390663
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
||||
eprefixify "${T}"/fontconfig.Gentoo.properties
|
||||
insinto "${dest}"/jre/lib
|
||||
doins "${T}"/fontconfig.Gentoo.properties
|
||||
|
||||
set_java_env "${FILESDIR}/icedtea.env"
|
||||
if ! use X || ! use alsa || ! use cups; then
|
||||
java-vm_revdep-mask "${dest}"
|
||||
fi
|
||||
java-vm_sandbox-predict /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<=dev-java/icedtea-7.2.0:7"; then
|
||||
# portage would preserve the symlink otherwise, related to bug #384397
|
||||
rm -f "${EROOT}/usr/lib/jvm/icedtea7"
|
||||
elog "To unify the layout and simplify scripts, the identifier of Icedtea-7*"
|
||||
elog "has changed from 'icedtea7' to 'icedtea-7' starting from version 7.2.0-r1"
|
||||
elog "If you had icedtea7 as system VM, the change should be automatic, however"
|
||||
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
||||
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
||||
fi
|
||||
}
|
@ -0,0 +1,349 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-7.2.1.ebuild,v 1.1 2012/02/24 18:43:48 sera Exp $
|
||||
# Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
|
||||
|
||||
# *********************************************************
|
||||
# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-6.* AS WELL *
|
||||
# *********************************************************
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
|
||||
|
||||
ICEDTEA_VER=$(get_version_component_range 2-)
|
||||
ICEDTEA_PKG=icedtea-${ICEDTEA_VER}
|
||||
OPENJDK_TARBALL="22cc03983e20.tar.gz"
|
||||
CORBA_TARBALL="5617f6c5cc94.tar.gz"
|
||||
HOTSPOT_TARBALL="0e651e004747.tar.gz"
|
||||
JAXP_TARBALL="1cf75c0e2c96.tar.gz"
|
||||
JAXWS_TARBALL="7edfbfe974f2.tar.gz"
|
||||
JDK_TARBALL="50f6f276a06c.tar.gz"
|
||||
LANGTOOLS_TARBALL="b534c4c6cd9b.tar.gz"
|
||||
|
||||
DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="
|
||||
http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/archive/${OPENJDK_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/corba/archive/${CORBA_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/jaxp/archive/${JAXP_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/jaxws/archive/${JAXWS_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/jdk/archive/${JDK_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/hotspot/archive/${HOTSPOT_TARBALL}
|
||||
http://icedtea.classpath.org/hg/release/icedtea7-forest-${ICEDTEA_VER}/langtools/archive/${LANGTOOLS_TARBALL}"
|
||||
|
||||
LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
|
||||
SLOT="7"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="+X +alsa cjk +cups debug doc examples javascript +jbootstrap +nsplugin
|
||||
+nss pax_kernel pulseaudio +source systemtap test +webstart"
|
||||
|
||||
# Ideally the following were optional at build time.
|
||||
ALSA_COMMON_DEP="
|
||||
>=media-libs/alsa-lib-1.0"
|
||||
CUPS_COMMON_DEP="
|
||||
>=net-print/cups-1.2.12"
|
||||
X_COMMON_DEP="
|
||||
>=dev-libs/atk-1.30.0
|
||||
>=dev-libs/glib-2.26
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.3.5
|
||||
>=x11-libs/cairo-1.8.8
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-2.8:2
|
||||
>=x11-libs/libX11-1.1.3
|
||||
>=x11-libs/libXext-1.1.1
|
||||
>=x11-libs/libXi-1.1.3
|
||||
>=x11-libs/libXrender-0.9.4
|
||||
>=x11-libs/libXtst-1.0.3
|
||||
>=x11-libs/pango-1.24.5"
|
||||
X_DEPEND="
|
||||
>=x11-libs/libXau-1.0.3
|
||||
>=x11-libs/libXdmcp-1.0.2
|
||||
>=x11-libs/libXinerama-1.0.2
|
||||
>=x11-libs/libXp-1.0.0
|
||||
x11-proto/inputproto
|
||||
>=x11-proto/xextproto-7.1.1
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto"
|
||||
|
||||
COMMON_DEP="
|
||||
>=media-libs/giflib-4.1.6
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libpng-1.2
|
||||
>=sys-libs/zlib-1.2.3
|
||||
virtual/jpeg
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nss? ( >=dev-libs/nss-3.12.5-r1 )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
|
||||
systemtap? ( >=dev-util/systemtap-1 )"
|
||||
|
||||
# cups is needed for X. #390945 #390975
|
||||
RDEPEND="${COMMON_DEP}
|
||||
!dev-java/icedtea:0
|
||||
X? (
|
||||
${CUPS_COMMON_DEP}
|
||||
${X_COMMON_DEP}
|
||||
media-fonts/dejavu
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
media-fonts/lklug
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
)
|
||||
alsa? ( ${ALSA_COMMON_DEP} )
|
||||
cups? ( ${CUPS_COMMON_DEP} )"
|
||||
|
||||
# Only ant-core-1.8.1 has fixed ant -diagnostics when xerces+xalan are not present.
|
||||
# ca-certificates, perl and openssl are used for the cacerts keystore generation
|
||||
# xext headers have two variants depending on version - bug #288855
|
||||
# autoconf - as long as we use eautoreconf, version restrictions for bug #294918
|
||||
DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
|
||||
|| (
|
||||
>=dev-java/gcj-jdk-4.3
|
||||
dev-java/icedtea-bin:7
|
||||
dev-java/icedtea-bin:6
|
||||
dev-java/icedtea:7
|
||||
dev-java/icedtea:6
|
||||
)
|
||||
app-arch/cpio
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-misc/ca-certificates
|
||||
>=dev-java/ant-core-1.8.1
|
||||
dev-java/ant-nodeps
|
||||
dev-lang/perl
|
||||
>=dev-libs/libxslt-1.1.26
|
||||
dev-libs/openssl
|
||||
dev-util/pkgconfig
|
||||
sys-apps/attr
|
||||
sys-apps/lsb-release
|
||||
|| ( >=sys-devel/autoconf-2.65:2.5 <sys-devel/autoconf-2.64:2.5 )
|
||||
${X_DEPEND}
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:7 )
|
||||
nsplugin? ( dev-java/icedtea-web:7[nsplugin] )"
|
||||
|
||||
S="${WORKDIR}"/${ICEDTEA_PKG}
|
||||
|
||||
# a bit of hack so the VM switching is triggered without causing dependency troubles
|
||||
JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.5"
|
||||
JAVA_PKG_WANT_SOURCE="1.5"
|
||||
JAVA_PKG_WANT_TARGET="1.5"
|
||||
|
||||
pkg_setup() {
|
||||
# quite a hack since java-config does not provide a way for a package
|
||||
# to limit supported VM's for building and their preferred order
|
||||
if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
|
||||
einfo "Honoring user-set JAVA_PKG_FORCE_VM"
|
||||
elif has_version "<=dev-java/icedtea-7.2.0:7"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea7"
|
||||
elif has_version ">dev-java/icedtea-7.2.0:7"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-7"
|
||||
elif has_version "dev-java/icedtea-bin:7"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-bin-7"
|
||||
elif has_version "<=dev-java/icedtea-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea6"
|
||||
elif has_version ">dev-java/icedtea-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-6"
|
||||
elif has_version "<dev-java/icedtea-bin-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea6-bin"
|
||||
elif has_version ">=dev-java/icedtea-bin-6.1.10.4:6"; then
|
||||
JAVA_PKG_FORCE_VM="icedtea-bin-6"
|
||||
elif has_version dev-java/gcj-jdk; then
|
||||
JAVA_PKG_FORCE_VM="gcj-jdk"
|
||||
else
|
||||
die "Unable to find a supported VM for building"
|
||||
fi
|
||||
|
||||
einfo "Forced vm ${JAVA_PKG_FORCE_VM}"
|
||||
java-vm-2_pkg_setup
|
||||
java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${ICEDTEA_PKG}.tar.gz
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# For bootstrap builds as the sandbox control file might not yet exist.
|
||||
addpredict /proc/self/coredump_filter
|
||||
|
||||
# icedtea doesn't like some locales. #330433 #389717
|
||||
export LANG="C" LC_ALL="C"
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-7.2.0_pax_kernel_support.patch #389751
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config bootstrap
|
||||
local vm=$(java-pkg_get-current-vm)
|
||||
|
||||
# Whether to bootstrap
|
||||
if has "${vm}" icedtea7 icedtea-7 icedtea-bin-7; then
|
||||
if use jbootstrap; then
|
||||
einfo "We can't currently bootstrap with a IcedTea7 JVM :("
|
||||
einfo "bootstrap forced off, ignoring use jbootstrap"
|
||||
fi
|
||||
elif has "${vm}" icedtea6 icedtea-6 icedtea6-bin icedtea-bin-6; then
|
||||
if use jbootstrap; then
|
||||
einfo "We can't currently bootstrap with a IcedTea6 JVM :("
|
||||
einfo "bootstrap forced off, ignoring use jbootstrap"
|
||||
fi
|
||||
elif has "${vm}" gcj-jdk; then
|
||||
# gcj-jdk ensures ecj is present.
|
||||
use jbootstrap || einfo "bootstrap forced on for ${vm}, ignoring use jbootstrap"
|
||||
bootstrap=yes
|
||||
local ecj_jar="$(readlink "${EPREFIX}"/usr/share/eclipse-ecj/ecj.jar)"
|
||||
config="${config} --with-ecj-jar=${ecj_jar}"
|
||||
else
|
||||
eerror "IcedTea must be built with either a JDK based on GNU Classpath or an existing build of IcedTea."
|
||||
die "Install a GNU Classpath JDK (gcj-jdk)"
|
||||
fi
|
||||
|
||||
if [[ ${bootstrap} ]]; then
|
||||
config="${config} --enable-bootstrap"
|
||||
else
|
||||
config="${config} --disable-bootstrap"
|
||||
fi
|
||||
|
||||
# OpenJDK-specific parallelism support. Bug #389791, #337827
|
||||
# Implementation modified from waf-utils.eclass
|
||||
# Note that "-j" is converted to "-j1" as the system doesn't support --load-average
|
||||
local procs=$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
|
||||
config="${config} --with-parallel-jobs=${procs}";
|
||||
einfo "Configuring using --with-parallel-jobs=${procs}"
|
||||
|
||||
if use javascript ; then
|
||||
config="${config} --with-rhino=$(java-pkg_getjar rhino:1.6 js.jar)"
|
||||
else
|
||||
config="${config} --without-rhino"
|
||||
fi
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
|
||||
econf ${config} \
|
||||
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
|
||||
--with-corba-src-zip="${DISTDIR}/${CORBA_TARBALL}" \
|
||||
--with-jaxp-src-zip="${DISTDIR}/${JAXP_TARBALL}" \
|
||||
--with-jaxws-src-zip="${DISTDIR}/${JAXWS_TARBALL}" \
|
||||
--with-jdk-src-zip="${DISTDIR}/${JDK_TARBALL}" \
|
||||
--with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_TARBALL}" \
|
||||
--with-langtools-src-zip="${DISTDIR}/${LANGTOOLS_TARBALL}" \
|
||||
--with-jdk-home="$(java-config -O)" \
|
||||
--with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \
|
||||
$(use_enable !debug optimizations) \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable nss) \
|
||||
$(use_enable pulseaudio pulse-java) \
|
||||
$(use_enable systemtap) \
|
||||
$(use_with pax_kernel pax paxctl)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Would use GENTOO_VM otherwise.
|
||||
export ANT_RESPECT_JAVA_HOME=TRUE
|
||||
|
||||
# Load the least that's needed to avoid possible classpath collisions.
|
||||
export ANT_TASKS="ant-nodeps"
|
||||
|
||||
emake -j 1
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Use Xvfb for tests
|
||||
unset DISPLAY
|
||||
|
||||
Xemake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
local ddest="${ED}/${dest}"
|
||||
dodir "${dest}"
|
||||
|
||||
dodoc README NEWS AUTHORS
|
||||
dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
|
||||
|
||||
cd openjdk.build/j2sdk-image || die
|
||||
|
||||
# Ensures HeadlessGraphicsEnvironment is used.
|
||||
if ! use X; then
|
||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||
fi
|
||||
|
||||
# Don't hide classes
|
||||
rm lib/ct.sym || die
|
||||
|
||||
#402507
|
||||
mkdir jre/.systemPrefs || die
|
||||
touch jre/.systemPrefs/.system.lock || die
|
||||
touch jre/.systemPrefs/.systemRootModFile || die
|
||||
|
||||
# doins can't handle symlinks.
|
||||
cp -vRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README
|
||||
|
||||
if use doc; then
|
||||
# java-pkg_dohtml needed for package-list #302654
|
||||
java-pkg_dohtml -r ../docs/* || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodir "${dest}/share";
|
||||
cp -vRP demo sample "${ddest}/share/" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Fix the permissions.
|
||||
find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
|
||||
|
||||
# Needs to be done before generating cacerts
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# We need to generate keystore - bug #273306
|
||||
einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
|
||||
mkdir "${T}/certgen" && cd "${T}/certgen" || die
|
||||
cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
|
||||
for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
|
||||
openssl x509 -text -in "${c}" >> all.crt || die
|
||||
done
|
||||
./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
|
||||
cp -vRP cacerts "${ddest}/jre/lib/security/" || die
|
||||
chmod 644 "${ddest}/jre/lib/security/cacerts" || die
|
||||
|
||||
# OpenJDK7 should be able to use fontconfig instead, but wont hurt to
|
||||
# install it anyway. Bug 390663
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
||||
eprefixify "${T}"/fontconfig.Gentoo.properties
|
||||
insinto "${dest}"/jre/lib
|
||||
doins "${T}"/fontconfig.Gentoo.properties
|
||||
|
||||
set_java_env "${FILESDIR}/icedtea.env"
|
||||
if ! use X || ! use alsa || ! use cups; then
|
||||
java-vm_revdep-mask "${dest}"
|
||||
fi
|
||||
java-vm_sandbox-predict /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<=dev-java/icedtea-7.2.0:7"; then
|
||||
# portage would preserve the symlink otherwise, related to bug #384397
|
||||
rm -f "${EROOT}/usr/lib/jvm/icedtea7"
|
||||
elog "To unify the layout and simplify scripts, the identifier of Icedtea-7*"
|
||||
elog "has changed from 'icedtea7' to 'icedtea-7' starting from version 7.2.0-r1"
|
||||
elog "If you had icedtea7 as system VM, the change should be automatic, however"
|
||||
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
||||
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
||||
fi
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.9.8.ebuild,v 1.1 2012/02/24 17:57:39 phajdan.jr Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit eutils multilib pax-utils python toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="Google's open source JavaScript engine"
|
||||
HOMEPAGE="http://code.google.com/p/v8"
|
||||
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
pkg_pretend() {
|
||||
local gccver=$(gcc-fullversion)
|
||||
if [[ ${gccver} = 4.5.2 ]]; then
|
||||
eerror "The currently selected version of gcc is known to segfault when building this"
|
||||
eerror "version of V8. Please use at least gcc-4.5.3."
|
||||
die "gcc-${gccver} detected."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export AR CC CXX RANLIB
|
||||
export LINK="${CXX}"
|
||||
|
||||
# Use target arch detection logic from bug #354601.
|
||||
case ${CHOST} in
|
||||
i?86-*) myarch=ia32 ;;
|
||||
x86_64-*)
|
||||
if [[ $ABI = x86 ]] ; then
|
||||
myarch=ia32
|
||||
else
|
||||
myarch=x64
|
||||
fi ;;
|
||||
arm*-*) myarch=arm ;;
|
||||
*) die "Unrecognized CHOST: ${CHOST}"
|
||||
esac
|
||||
mytarget=${myarch}.release
|
||||
|
||||
soname_version="$(get_version_component_range 1-3)"
|
||||
|
||||
local snapshot=on
|
||||
host-is-pax && snapshot=off
|
||||
|
||||
# TODO: Add console=readline option once implemented upstream
|
||||
# http://code.google.com/p/v8/issues/detail?id=1781
|
||||
|
||||
emake V=1 \
|
||||
library=shared \
|
||||
werror=no \
|
||||
soname_version=${soname_version} \
|
||||
snapshot=${snapshot} \
|
||||
${mytarget} || die
|
||||
|
||||
pax-mark m out/${mytarget}/{cctest,d8,shell} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local arg testjobs
|
||||
for arg in ${MAKEOPTS}; do
|
||||
case ${arg} in
|
||||
-j*) testjobs=${arg#-j} ;;
|
||||
--jobs=*) testjobs=${arg#--jobs=} ;;
|
||||
esac
|
||||
done
|
||||
|
||||
tools/test-wrapper-gypbuild.py \
|
||||
-j${testjobs:-1} \
|
||||
--arch-and-mode=${mytarget} \
|
||||
--no-presubmit \
|
||||
--progress=dots || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr
|
||||
doins -r include || die
|
||||
|
||||
dobin out/${mytarget}/d8 || die
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname).${soname_version} \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname).${soname_version} || die
|
||||
fi
|
||||
|
||||
dolib out/${mytarget}/lib.target/libv8$(get_libname).${soname_version} || die
|
||||
dosym libv8$(get_libname).${soname_version} /usr/$(get_libdir)/libv8$(get_libname) || die
|
||||
|
||||
dodoc AUTHORS ChangeLog || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserved_libs=()
|
||||
local baselib candidate
|
||||
|
||||
eshopts_push -s nullglob
|
||||
|
||||
for candidate in "${EROOT}usr/$(get_libdir)"/libv8-*$(get_libname) \
|
||||
"${EROOT}usr/$(get_libdir)"/libv8$(get_libname).*; do
|
||||
baselib=${candidate##*/}
|
||||
if [[ ! -e "${ED}usr/$(get_libdir)/${baselib}" ]]; then
|
||||
preserved_libs+=( "${EPREFIX}/usr/$(get_libdir)/${baselib}" )
|
||||
fi
|
||||
done
|
||||
|
||||
eshopts_pop
|
||||
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib_notify "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST liblognorm-0.3.1.tar.gz 321516 RMD160 bf4ac1a7a3721ea44defa9c1ae536632faff2475 SHA1 6ca9a87964aeb1b602cbec8b2ef7172965c9155a SHA256 e48820023061d578d578583eedcaab1cf832077b10ed3f51fbefb3b638f5b0bb
|
||||
DIST liblognorm-0.3.2.tar.gz 326149 RMD160 6f1cd3f99d68d634309daa18a9694c3877d27d88 SHA1 8ff7c1c34dcb2703b9724abc5d4079f9e7e29e93 SHA256 aa7952f8a5256c68d1c77f26dd9ee504ff5f3da8e24f4817c50c9ddde0f3c4d3
|
||||
DIST liblognorm-0.3.3.tar.gz 322203 RMD160 21e104bf86820597b5a74b97ed86dea3c69469df SHA1 46146b7b5219f2bafce2d5fe6c996c2961546136 SHA256 03e1a43003ea8d6709c4b567a49f386c9c59f748e14366d8d5226d1e05a9019d
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/liblognorm/liblognorm-0.3.2.ebuild,v 1.1 2011/11/26 19:37:34 maksbotan Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit autotools-utils
|
||||
|
||||
DESCRIPTION="Fast samples-based log normalization library"
|
||||
HOMEPAGE="http://www.liblognorm.com"
|
||||
SRC_URI="http://www.liblognorm.com/files/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~amd64-linux ~x86"
|
||||
IUSE="debug static-libs"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/libestr
|
||||
dev-libs/libee"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug)
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST Net-SSLeay-1.36.tar.gz 145651 RMD160 f9bab073ea25b7574d49b411324024ecd3750377 SHA1 e8cfb6355a596471518356a29bfe53ab2011c685 SHA256 e262897263c5aa9096e39f7813c7cb7d4d05508ca406b173878c4ecddb2c53ce
|
||||
DIST Net-SSLeay-1.42.tar.gz 146035 RMD160 c2f2f66b7f9e65daa474fae688e12e44a0591e70 SHA1 4bb2ac0b99a700155e4731fe335641590c4129fc SHA256 b6ca7719cd8568e60204f39027c1c68d19fa690b1f3fd380ed14031a1a70fd9d
|
||||
DIST Net-SSLeay-1.45.tar.gz 195746 RMD160 1ca388eda57c1321625059fde57b9bbeafd89ed6 SHA1 c665a0fddddd350e65baa7bb7c9183361c35f75f SHA256 2ae58095b85b485f147b78e315341bdbad9316fa6f06d3c30b4a9aad720381f5
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-SSLeay/Net-SSLeay-1.450.0.ebuild,v 1.1 2012/02/25 08:01:55 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=MIKEM
|
||||
MODULE_VERSION=1.45
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Net::SSLeay module for perl"
|
||||
|
||||
LICENSE="openssl"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/openssl"
|
||||
DEPEND="${RDEPEND}"
|
||||
# test? ( dev-perl/Test-Exception
|
||||
# dev-perl/Test-Warn
|
||||
# dev-perl/Test-NoWarnings )"
|
||||
|
||||
#SRC_TEST=do
|
||||
|
||||
export OPTIMIZE="$CFLAGS"
|
||||
export OPENSSL_PREFIX=${EPREFIX}/usr
|
@ -1 +1,2 @@
|
||||
DIST ORLite-1.52.tar.gz 62919 RMD160 0bbb85bb4233318666b620dea3de8105a0003fa0 SHA1 e6b94bbe9c818acc6885dd737d2886aa75e64fa9 SHA256 614fd8cc84ece33e12f80ff3a8955e177cbc32f6312773439e28a85fce68f2e2
|
||||
DIST ORLite-1.91.tar.gz 65966 RMD160 68d4acfc3abe0dbf190e4dd61641aefab81b2998 SHA1 5f2a252d0b11343b47551c3ff6d7f559515320d7 SHA256 9f856f0a917e58f0921f9f907595e1c09191107d850c0897c6f303f2383c6e5c
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/ORLite/ORLite-1.910.0.ebuild,v 1.1 2012/02/25 07:59:21 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=ADAMK
|
||||
MODULE_VERSION=1.91
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Extremely light weight SQLite-specific ORM"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=virtual/perl-File-Path-2.08
|
||||
>=virtual/perl-File-Temp-0.20
|
||||
>=dev-perl/Params-Util-1
|
||||
>=dev-perl/DBI-1.607
|
||||
>=dev-perl/DBD-SQLite-1.27
|
||||
>=dev-perl/File-Remove-1.40
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
test? (
|
||||
>=dev-perl/Test-Script-1.06
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
"
|
||||
|
||||
SRC_TEST=do
|
@ -1 +1,2 @@
|
||||
DIST PPIx-Regexp-0.025.tar.gz 145833 RMD160 004e815388112b6f6e75010eedc9610db05a3034 SHA1 547773159b2b22f4f725c718aa0b92918778f4bc SHA256 d820757fde05f9786703cfba97a24f3c4d8a8c498261173ddd7a1e90229d92f1
|
||||
DIST PPIx-Regexp-0.026.tar.gz 146293 RMD160 8ed3eafbefd5c19f5c17fb283102934dbd991e6d SHA1 0e3f94e81eb5821ba20cf5dda6338f7bfaa1aadb SHA256 9869b8aab675704973d293115f9a10943a5a9c352c3b6c4feeaa70596a69488a
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/PPIx-Regexp/PPIx-Regexp-0.26.0.ebuild,v 1.1 2012/02/25 07:44:43 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=WYANT
|
||||
MODULE_VERSION=0.026
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Represent a regular expression of some sort"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-perl/List-MoreUtils
|
||||
dev-perl/PPI
|
||||
virtual/perl-Scalar-List-Utils"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-Module-Build"
|
||||
|
||||
SRC_TEST=do
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue