This commit is contained in:
Mario Fetka 2011-12-12 00:11:07 +01:00
parent a4e6e96ffc
commit e5c074bd52
15 changed files with 6 additions and 3079 deletions

View File

@ -1,10 +0,0 @@
# ChangeLog for dev-java/icedtea-bin
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*icedtea-bin-6.1.8.2 (25 Nov 2011)
25 Nov 2011; Mario Fetka <mario.fetka@gmail.com> +icedtea-bin-6.1.8.2.ebuild,
+files/icedtea6-bin.env, +files/icedtea-bin-6.env, +metadata.xml:
cleanup

View File

@ -1,10 +0,0 @@
AUX icedtea-bin-6.env 1061 RMD160 5bd0123642cab8b0f0b1855871d53228ea4390c0 SHA1 da103ac9feb13b13f9b6b6ecfe26d78a2a56f995 SHA256 864276f6354d7518ff9850a7d979a0b617a9f43b29c96d13ae47d4bb7c51bac1
AUX icedtea6-bin.env 947 RMD160 4471323b9da6467bc66ffbddd76667278f544e8a SHA1 0c44c177527005981a5c530ff0bad23b2db3a783 SHA256 348288368273d3aba84f038f4d6efeb558cf53256c04449c5ec8620dcdd94ca4
DIST icedtea-bin-core-6.1.8.2-armv5tel.tar.bz2 35478898 RMD160 86fc91a24812434dfb27068ad7150947aabdc703 SHA1 20fdfb665aa486c7b98fd270401eacc9647be82e SHA256 8f5a96e5e9471c21cf76c27c466cbe964227a2e341083f3891ed3ce6412f7b29
DIST icedtea-bin-doc-6.1.8.2.tar.bz2 11525550 RMD160 ba87437c743c15876be920118fda4c1af65b02ad SHA1 f085d89b8b8183a2416c947343af27d9deb226fe SHA256 cbf216a6eb54be9f6f3755c9669b911d099ffd74e68cdd537ed0717af5cce58c
DIST icedtea-bin-examples-6.1.8.2-armv5tel.tar.bz2 2456212 RMD160 98eabeaa81085b8e8a895ed89ba12e64eb3a7e42 SHA1 9d74840ba1e40b3e472e26f0231efeae71fbf87f SHA256 bbef14fcda5c3b94b45a97bd3be436898714ddecd5d4992b5292cb191cb67cff
DIST icedtea-bin-nsplugin-6.1.8.2-armv5tel.tar.bz2 73537 RMD160 6661f3b730ecfb72171ccd39ff9347f1d9dbb410 SHA1 f970512401ca9466dd544c3daf915daf6596dc80 SHA256 2c7f877091b92b4aa735f474dd56a0ab7ed6134cc5285ae63bbeeb6bbeb20ab1
DIST icedtea-bin-src-6.1.8.2.tar.bz2 26825540 RMD160 09cf16c61e79e34854d6e613e4b2c36b94039b7f SHA1 f870e4ee86567a2dff896862fd73431f8c6b1f29 SHA256 dc30d93c1214580f1ccfe35d4fd0a2caf8ca399fb53c532351d0f703ba49ba3e
EBUILD icedtea-bin-6.1.8.2.ebuild 2413 RMD160 a8b8db0e978d63858076e999cfdd74f7de753276 SHA1 02965bf4795f619df4af6b2ee88618c2e0f5b725 SHA256 f76967e33b9034284bb243e499a9216c6a1a03fe632608c1078aa9485c9fa4e5
MISC ChangeLog 316 RMD160 ab081fe1d3f4161af5526604c74f82c1c0424c74 SHA1 c7a48fc799a12acb29a54466024f14e61f4ee7d3 SHA256 6d3428153fc17538bff27ae7157904a312e268b31f0d87bfc38d4fef31bb27fb
MISC metadata.xml 159 RMD160 7da5c733c224383ffe350605bc36721a3ff2536f SHA1 99c2655c7bbee2cbc8c79edb2d00d481d62faf95 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb

View File

@ -1,18 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/files/icedtea-bin-6.env,v 1.1 2011/11/07 22:09:46 caster Exp $
VERSION="IcedTea-bin @PV@"
JAVA_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/icedtea-bin-@PV@"
JDK_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/icedtea-bin-@PV@"
JAVAC=${JAVA_HOME}/bin/javac
PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
MANPATH="@GENTOO_PORTAGE_EPREFIX@/opt/icedtea-bin-@PV@/man"
PROVIDES_TYPE="JDK JRE"
PROVIDES_VERSION="1.6"
# Taken from sun.boot.class.path property
BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
GENERATION="2"
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"

View File

@ -1,18 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea6-bin/files/icedtea6-bin.env,v 1.1 2008/12/24 22:22:37 caster Exp $
VERSION="IcedTea6-bin @PV@"
JAVA_HOME=/opt/@P@
JDK_HOME=/opt/@P@
JAVAC=${JAVA_HOME}/bin/javac
PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
MANPATH="/opt/@P@/man"
PROVIDES_TYPE="JDK JRE"
PROVIDES_VERSION="1.6"
# Taken from sun.boot.class.path property
BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
GENERATION="2"
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"

View File

@ -1,95 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea6-bin/icedtea6-bin-1.4.1.ebuild,v 1.1 2009/04/19 18:15:33 caster Exp $
EAPI="2"
inherit java-vm-2
dist_arm="http://ftp.disconnected-by-peer.at/armv5/"
DESCRIPTION="A Gentoo-made binary build of the icedtea6 JDK"
SRC_URI="arm? ( ${dist_arm}/${PN}-core-${PVR}-armv5tel.tar.bz2 )
doc? ( ${dist_arm}/${PN}-doc-${PVR}.tar.bz2 )
examples? (
arm? ( ${dist_arm}/${PN}-examples-${PVR}-armv5tel.tar.bz2 )
)
nsplugin? (
arm? ( ${dist_arm}/${PN}-nsplugin-${PVR}-armv5tel.tar.bz2 )
)
source? ( ${dist_arm}/${PN}-src-${PVR}.tar.bz2 )"
HOMEPAGE="http://icedtea.classpath.org"
IUSE="X alsa doc examples nsplugin source"
RESTRICT="strip"
LICENSE="GPL-2-with-linking-exception"
SLOT="6"
KEYWORDS="~arm"
S="${WORKDIR}/${PF}"
RDEPEND="
>=sys-libs/glibc-2.8_p20080602-r1
>=media-libs/giflib-4.1.6-r1
media-libs/jpeg:62
media-libs/libpng:1.2
>=sys-libs/zlib-1.2.3-r1
alsa? ( >=media-libs/alsa-lib-1.0.17a )
X? (
>=media-libs/freetype-2.3.8:2
>=media-libs/fontconfig-2.6.0-r2:1.0
>=x11-libs/libXext-1.0.4
>=x11-libs/libXi-1.2.1
>=x11-libs/libXtst-1.0.3
>=x11-libs/libX11-1.1.5
)
nsplugin? (
>=dev-libs/atk-1.24.0
>=dev-libs/glib-2.18.4-r1:2
>=dev-libs/nspr-4.7.3
>=x11-libs/cairo-1.8.6-r1
>=x11-libs/gtk+-2.14.7-r2:2
>=x11-libs/pango-1.22.4
)"
DEPEND=""
QA_EXECSTACK_arm="opt/${P}/jre/lib/arm/server/libjvm.so"
src_install() {
local dest="/opt/${P}"
local ddest="${D}/${dest}"
dodir "${dest}" || die
local arch=${ARCH}
# doins can't handle symlinks.
cp -pRP bin include jre lib man "${ddest}" || die "failed to copy"
dodoc ../doc/{ASSEMBLY_EXCEPTION,THIRD_PARTY_README} || die
if use doc ; then
dohtml -r ../doc/html/* || die "Failed to install documentation"
fi
if use examples; then
cp -pRP share/{demo,sample} "${ddest}" || die
fi
if use source ; then
cp src.zip "${ddest}" || die
fi
if use nsplugin ; then
install_mozilla_plugin "${dest}/jre/lib/${arch}/IcedTeaPlugin.so";
fi
set_java_env
java-vm_revdep-mask
}
pkg_postinst() {
if use nsplugin; then
elog "The icedtea6-bin browser plugin can be enabled using eselect java-nsplugin"
elog "Note that the plugin works only in browsers based on xulrunner-1.9"
elog "such as Firefox 3 or Epiphany 2.24 and not in older versions!"
fi
}

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>java</herd>
</pkgmetadata>

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +0,0 @@
AUX qemu-arm-fstack-protector.diff 200 RMD160 a096d412b1729a7c678b379797b74372f0b7d1c3 SHA1 71ab39c1a084eea410e2bbf00c622121905ecb38 SHA256 392250a842c8a9bcf9d7c24cdacab354785253f881803130faf0ad68ad882f76
DIST perl-5.10.1-9.tar.bz2 7388 RMD160 3758c2c78e22ed55fb90db283cfd9e5998535903 SHA1 edd1150deee51079be514f8ae8a3b14b1912c0ef SHA256 bd84671e6686288c098c26c0a61d1b8471ab38d8c16fb87571011398770cef44
DIST perl-5.10.1.tar.bz2 11608061 RMD160 840b3a5ac3d7f517770ce789676ebd9154d9ee5a SHA1 98b762b5cd4fb76dd354dfa5ba0d21bc2acacaf2 SHA256 9385f2c8c2ca8b1dc4a7c31903f1f8dc8f2ba867dc2a9e5c93012ed6b564e826
DIST perl-5.12.2-2.tar.bz2 4806 RMD160 f8594dfc53b7a591d50d481dd475d661d448ec91 SHA1 f09d6acca8a0fbfade6f9e3aff2ce455ccbfca58 SHA256 72043b4cd6dd92a28005ee0f7a148043f16b0d39534d9823fda73a91c576c777
DIST perl-5.12.2.tar.bz2 12348985 RMD160 c41fa3ef2c982172f73d5ddfd695cde747a92e95 SHA1 75dbbdfa5bf8d4fc813503253e2b58486fa5a4eb SHA256 3b9a75fe4ae7a9a2a17be8c8c64754ef6fd706ca528170737b03e3db7d8eae0e
EBUILD perl-5.10.1.ebuild 17898 RMD160 eb9711d4950731199b786c11e5054c99d91a63d7 SHA1 23578c6e0e3d5d97d8e5a3db951fade4aba3a3bd SHA256 79d6b722009596ded66d3b52f8e1898e93548169c1e104da6bc68e949c0ce880
EBUILD perl-5.12.2-r2.ebuild 19243 RMD160 5732e36ea2a208a573d53fd734907b4745826f67 SHA1 18b4bdb100554884e25702dc892048de0aadf1f4 SHA256 941f8a5360ab65d78622059ed5fa773d245966e1d49e55cfaa5c8f1a05f477d8
MISC ChangeLog 64261 RMD160 6333132813b55113919f53095cfcda765c93b702 SHA1 938d6fb4194cc4ff2ae27a5456300b2e359ad08e SHA256 f9f04b3062db5c9697db91d7cf1575c28c6c817839649c0aae2b7dd4c184fef4
MISC metadata.xml 451 RMD160 8424230d79d13df7462c454050058b3526a78e92 SHA1 1ae85db5c1c1fc6413ca324ebc93b6894831b437 SHA256 49e06011c113616fa1f618cf58d42c2d6abbce5f71936f109b6ae3a5dfff587c

View File

@ -1,11 +0,0 @@
--- a/Configure
+++ b/Configure
@@ -5147,7 +5147,7 @@
# thing. (NWC)
case "$gccversion" in
?*) set stack-protector -fstack-protector
- eval $checkccflag
+ # eval $checkccflag
;;
esac
;;

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>perl</herd>
<maintainer>
<email>perl@gentoo.org</email>
<description>Primary Maintainer</description>
</maintainer>
<use>
<flag name='ithreads'>Enable Perl threads, has some compatibility problems</flag>
<flag name='perlsuid'>Enable Perl SUID install. Has some risks associated.</flag>
</use>
</pkgmetadata>

View File

@ -1,604 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.10.1.ebuild,v 1.15 2009/12/09 18:05:51 armin76 Exp $
EAPI=2
inherit eutils alternatives flag-o-matic toolchain-funcs multilib
PATCH_VER=9
PERL_OLDVERSEN="5.10.0"
SHORT_PV="${PV%.*}"
MY_P="perl-${PV/_rc/-RC}"
MY_PV="${PV%_rc*}"
DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
S="${WORKDIR}/${MY_P}"
SRC_URI="mirror://cpan/src/${MY_P}.tar.bz2
mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
http://dev.gentoo.org/~tove/files/${MY_P}-${PATCH_VER}.tar.bz2"
HOMEPAGE="http://www.perl.org/"
LICENSE="|| ( Artistic GPL-2 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~s390 ~sh ~sparc ~x86"
#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
IUSE="berkdb build debug doc gdbm ithreads"
COMMON_DEPEND="berkdb? ( sys-libs/db )
gdbm? ( >=sys-libs/gdbm-1.8.3 )
>=sys-devel/libperl-5.10.1
!!<sys-devel/libperl-5.10.1
app-arch/bzip2
sys-libs/zlib"
DEPEND="${COMMON_DEPEND}
elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
RDEPEND="${COMMON_DEPEND}"
PDEPEND=">=app-admin/perl-cleaner-2_pre090920"
dual_scripts() {
src_remove_dual_scripts perl-core/Archive-Tar 1.52 ptar ptardiff
src_remove_dual_scripts perl-core/Digest-SHA 5.47 shasum
src_remove_dual_scripts perl-core/CPAN 1.9402 cpan
src_remove_dual_scripts perl-core/CPANPLUS 0.88 cpanp cpan2dist cpanp-run-perl
src_remove_dual_scripts perl-core/Encode 2.35 enc2xs piconv
src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.55_02 instmodsh
src_remove_dual_scripts perl-core/Module-Build 0.34_02 config_data
src_remove_dual_scripts perl-core/Module-CoreList 2.18 corelist
src_remove_dual_scripts perl-core/PodParser 1.37 pod2usage podchecker podselect
src_remove_dual_scripts perl-core/Test-Harness 3.17 prove
src_remove_dual_scripts perl-core/podlators 2.2.2 pod2man pod2text
}
pkg_setup() {
LIBPERL="libperl$(get_libname ${MY_PV})"
if use ithreads ; then
ewarn "THREADS WARNING:"
ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
ewarn "interpreter-level threading enabled."
ewarn "Threading is not supported by all applications "
ewarn "that compile against perl. You use threading at "
ewarn "your own discretion. "
echo
epause 5
fi
if has_version dev-lang/perl ; then
# doesnot work
#if ! has_version dev-lang/perl[ithreads=,debug=] ; then
#if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
( use debug && ! has_version dev-lang/perl[debug] ) || \
( ! use debug && has_version dev-lang/perl[debug] ) ; then
ewarn "TOGGLED USE-FLAGS WARNING:"
ewarn "You changed one of the use-flags ithreads or debug."
ewarn "You must rebuild all perl-modules installed."
ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
epause
fi
fi
dual_scripts
}
src_prepare() {
EPATCH_SOURCE="${WORKDIR}/perl-patch" \
EPATCH_SUFFIX="diff" \
EPATCH_FORCE="yes" \
epatch
epatch "${FILESDIR}/qemu-arm-fstack-protector.diff"
# pod/perltoc.pod fails
ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV})
ln -s ${LIBPERL} libperl$(get_libname )
}
myconf() {
# the myconf array is declared in src_configure
myconf=( "${myconf[@]}" "$@" )
}
src_configure() {
declare -a myconf
# some arches and -O do not mix :)
use arm && replace-flags -O? -O1
use ppc && replace-flags -O? -O1
use ia64 && replace-flags -O? -O1
# Perl has problems compiling with -Os in your flags with glibc
use elibc_uclibc || replace-flags "-Os" "-O2"
# This flag makes compiling crash in interesting ways
filter-flags "-malign-double"
# Fixes bug #97645
use ppc && filter-flags "-mpowerpc-gpopt"
# Fixes bug #143895 on gcc-4.1.1
filter-flags "-fsched2-use-superblocks"
# this is needed because gcc 3.3-compiled kernels will hang
# the machine trying to run this test - check with `Kumba
# <rac@gentoo.org> 2003.06.26
use mips && myconf -Dd_u32align
use sparc && myconf -Ud_longdbl
export LC_ALL="C"
# 266337
export BUILD_BZIP2=0
export BZIP2_INCLUDE=/usr/include
export BZIP2_LIB=/usr/$(get_libdir)
cat <<-EOF > "${S}/ext/Compress-Raw-Zlib/config.in"
BUILD_ZLIB = False
INCLUDE = /usr/include
LIB = /usr/$(get_libdir)
OLD_ZLIB = False
GZIP_OS_CODE = AUTO_DETECT
EOF
case ${CHOST} in
*-freebsd*) osname="freebsd" ;;
*-dragonfly*) osname="dragonfly" ;;
*-netbsd*) osname="netbsd" ;;
*-openbsd*) osname="openbsd" ;;
*-darwin*) osname="darwin" ;;
*) osname="linux" ;;
esac
if use ithreads ; then
mythreading="-multi"
myconf -Dusethreads
myarch=${CHOST}
myarch="${myarch%%-*}-${osname}-thread"
else
myarch=${CHOST}
myarch="${myarch%%-*}-${osname}"
fi
if use debug ; then
myarch="${myarch}-debug"
fi
# allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
myndbm='U'
mygdbm='U'
mydb='U'
if use gdbm ; then
mygdbm='D'
myndbm='D'
fi
if use berkdb ; then
mydb='D'
has_version '=sys-libs/db-1*' && myndbm='D'
fi
myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
myconf -Ui_db -Ui_ndbm
fi
if use debug ; then
append-cflags "-g"
myconf -DDEBUGGING
fi
local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v} ${v}/${myarch}${mythreading}"; done )
[[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
[[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
if [[ $(get_libdir) != "lib" ]] ; then
# We need to use " and not ', as the written config.sh use ' ...
myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
fi
sh Configure \
-des \
-Duseshrplib \
-Darchname="${myarch}" \
-Dcc="$(tc-getCC)" \
-Doptimize="${CFLAGS}" \
-Dscriptdir=/usr/bin \
-Dprefix='/usr' \
-Dvendorprefix='/usr' \
-Dsiteprefix='/usr' \
-Dprivlib="/usr/$(get_libdir)/perl5/${MY_PV}" \
-Darchlib="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" \
-Dvendorlib="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}" \
-Dvendorarch="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}" \
-Dsitelib="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}" \
-Dsitearch="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}" \
-Dlibperl="${LIBPERL}" \
-Dlocincpth=' ' \
-Duselargefiles \
-Dd_semctl_semun \
-Dinc_version_list="$inclist" \
-Dcf_by='Gentoo' \
-Dmyhostname='localhost' \
-Dperladmin='root@localhost' \
-Dinstallusrbinperl='n' \
-Ud_csh \
-Uusenm \
"${myconf[@]}" || die "Unable to configure"
}
src_test() {
# use elibc_uclibc && export MAKEOPTS="${MAKEOPTS} -j1"
# TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
make test_harness || die "test failed"
}
src_install() {
export LC_ALL="C"
local i
local coredir="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}/CORE"
# Fix for "stupid" modules and programs
dodir /usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}
local installtarget=install
if use build ; then
installtarget=install.perl
fi
make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
rm -f "${D}"/usr/bin/perl
ln -s perl${MY_PV} "${D}"/usr/bin/perl
dolib.so "${D}"/${coredir}/${LIBPERL} || die
dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname) || die
rm -f "${D}"/${coredir}/${LIBPERL}
dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${SHORT_PV})
dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages"
# cp -f utils/h2ph utils/h2ph_patched
# epatch "${FILESDIR}"/${PN}-h2ph-ansi-header.patch
#
# LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
# -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
#asm/termios.h
#syscall.h
#syslimits.h
#syslog.h
#sys/ioctl.h
#sys/socket.h
#sys/time.h
#wait.h
#EOF
# vvv still needed?
# # This is to fix a missing c flag for backwards compat
# for i in $(find "${D}"/usr/$(get_libdir)/perl5 -iname "Config.pm" ) ; do
# sed -i \
# -e "s:ccflags=':ccflags='-DPERL5 :" \
# -e "s:cppflags=':cppflags='-DPERL5 :" \
# "${i}" || die "Sed failed"
# done
# A poor fix for the miniperl issues
dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
fperms 0755 /usr/bin/xsubpp
# This removes ${D} from Config.pm and .packlist
for i in $(find "${D}" -iname "Config.pm" -o -iname ".packlist" ) ; do
einfo "Removing ${D} from ${i}..."
sed -i -e "s:${D}::" "${i}" || die "Sed failed"
done
# Note: find out from psm why we would need/want this.
# ( use berkdb && has_version '=sys-libs/db-1*' ) ||
# find "${D}" -name "*NDBM*" | xargs rm -f
dodoc Changes* README AUTHORS || die
if use doc ; then
# HTML Documentation
# We expect errors, warnings, and such with the following.
dodir /usr/share/doc/${PF}/html
./perl installhtml \
--podroot='.' \
--podpath='lib:ext:pod:vms' \
--recurse \
--htmldir="${D}/usr/share/doc/${PF}/html" \
--libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
fi
dual_scripts
if use build ; then
src_remove_extra_files
fi
}
pkg_postinst() {
local INC DIR file
dual_scripts
INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
if [[ "${ROOT}" = "/" ]] ; then
ebegin "Removing old .ph files"
for DIR in ${INC} ; do
if [[ -d "${ROOT}/${DIR}" ]] ; then
for file in $(find "${ROOT}/${DIR}" -name "*.ph" -type f ) ; do
rm -f "${ROOT}/${file}"
einfo "<< ${file}"
done
fi
done
# Silently remove the now empty dirs
for DIR in ${INC} ; do
if [[ -d "${ROOT}/${DIR}" ]] ; then
find "${ROOT}/${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
fi
done
ebegin "Generating ConfigLocal.pm (ignore any error)"
enc2xs -C
ebegin "Converting C header files to the corresponding Perl format"
cd /usr/include
h2ph -Q *
h2ph -Q -r sys/* arpa/* netinet/* bits/* security/* asm/* gnu/* linux/*
fi
# This has been moved into a function because rumor has it that a future release
# of portage will allow us to check what version was just removed - which means
# we will be able to invoke this only as needed :)
# Tried doing this via -z, but $INC is too big...
if [[ "${INC}x" != "x" ]]; then
cleaner_msg
epause 5
fi
}
pkg_postrm(){
${IS_PERL} && dual_scripts
}
cleaner_msg() {
eerror "You have had multiple versions of perl. It is recommended"
eerror "that you run perl-cleaner now. perl-cleaner will"
eerror "assist with this transition. This script is capable"
eerror "of cleaning out old .ph files, rebuilding modules for "
eerror "your new version of perl, as well as re-emerging"
eerror "applications that compiled against your old libperl$(get_libname)"
eerror
eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
eerror "Part of the rebuilding of applications compiled against "
eerror "your old libperl involves temporarily unmerging"
eerror "them - interruptions could leave you with unmerged"
eerror "packages before they can be remerged."
eerror ""
eerror "If you have run perl-cleaner and a package still gives"
eerror "you trouble, and re-emerging it fails to correct"
eerror "the problem, please check http://bugs.gentoo.org/"
eerror "for more information or to report a bug."
eerror ""
}
src_remove_dual_scripts() {
local i pkg ver ff
pkg="$1"
ver="$2"
shift 2
if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
for i in "$@" ; do
ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
ff=${ff##*.1}
alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
done
elif has "${EBUILD_PHASE:-none}" "setup" ; then
for i in "$@" ; do
if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
has_version ${pkg} && ewarn "You must reinstall $pkg !"
break
fi
done
else
for i in "$@" ; do
mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || \
echo "/usr/share/man/man1/${i}.1 does not exist!"
done
fi
}
src_remove_extra_files() {
local prefix="./usr" # ./ is important
local bindir="${prefix}/bin"
local libdir="${prefix}/$(get_libdir)"
local perlroot="${libdir}/perl5" # perl installs per-arch dirs
local prV="${perlroot}/${MY_PV}"
local prVA="${prV}/${myarch}${mythreading}"
# I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
# Then, I added several files to get GNU autotools running
# FIXME: should this be in a separated file to be sourced?
local MINIMAL_PERL_INSTALL="
${bindir}/h2ph
${bindir}/perl
${bindir}/perl${MY_PV}
${bindir}/pod2man
${libdir}/${LIBPERL}
${libdir}/libperl$(get_libname)
${libdir}/libperl$(get_libname ${SHORT_PV})
${prV}/attributes.pm
${prV}/AutoLoader.pm
${prV}/autouse.pm
${prV}/base.pm
${prV}/bigint.pm
${prV}/bignum.pm
${prV}/bigrat.pm
${prV}/blib.pm
${prV}/bytes_heavy.pl
${prV}/bytes.pm
${prV}/Carp/Heavy.pm
${prV}/Carp.pm
${prV}/charnames.pm
${prV}/Class/Struct.pm
${prV}/constant.pm
${prV}/diagnostics.pm
${prV}/DirHandle.pm
${prV}/Exporter/Heavy.pm
${prV}/Exporter.pm
${prV}/ExtUtils/Command.pm
${prV}/ExtUtils/Constant.pm
${prV}/ExtUtils/Embed.pm
${prV}/ExtUtils/Installed.pm
${prV}/ExtUtils/Install.pm
${prV}/ExtUtils/Liblist.pm
${prV}/ExtUtils/MakeMaker.pm
${prV}/ExtUtils/Manifest.pm
${prV}/ExtUtils/Mkbootstrap.pm
${prV}/ExtUtils/Mksymlists.pm
${prV}/ExtUtils/MM_Any.pm
${prV}/ExtUtils/MM_MacOS.pm
${prV}/ExtUtils/MM.pm
${prV}/ExtUtils/MM_Unix.pm
${prV}/ExtUtils/MY.pm
${prV}/ExtUtils/Packlist.pm
${prV}/ExtUtils/testlib.pm
${prV}/ExtUtils/Miniperl.pm
${prV}/ExtUtils/Command/MM.pm
${prV}/ExtUtils/Constant/Base.pm
${prV}/ExtUtils/Constant/Utils.pm
${prV}/ExtUtils/Constant/XS.pm
${prV}/ExtUtils/Liblist/Kid.pm
${prV}/ExtUtils/MakeMaker/bytes.pm
${prV}/ExtUtils/MakeMaker/vmsish.pm
${prV}/fields.pm
${prV}/File/Basename.pm
${prV}/File/Compare.pm
${prV}/File/Copy.pm
${prV}/File/Find.pm
${prV}/FileHandle.pm
${prV}/File/Path.pm
${prV}/File/Spec.pm
${prV}/File/Spec/Unix.pm
${prV}/File/stat.pm
${prV}/filetest.pm
${prVA}/attrs.pm
${prVA}/auto/attrs
${prVA}/auto/Cwd/Cwd$(get_libname)
${prVA}/auto/Data/Dumper/Dumper$(get_libname)
${prVA}/auto/DynaLoader/dl_findfile.al
${prVA}/auto/Fcntl/Fcntl$(get_libname)
${prVA}/auto/File/Glob/Glob$(get_libname)
${prVA}/auto/IO/IO$(get_libname)
${prVA}/auto/POSIX/autosplit.ix
${prVA}/auto/POSIX/fstat.al
${prVA}/auto/POSIX/load_imports.al
${prVA}/auto/POSIX/POSIX.bs
${prVA}/auto/POSIX/POSIX$(get_libname)
${prVA}/auto/POSIX/stat.al
${prVA}/auto/POSIX/tmpfile.al
${prVA}/auto/re/re$(get_libname)
${prVA}/auto/Socket/Socket$(get_libname)
${prVA}/auto/Storable/autosplit.ix
${prVA}/auto/Storable/_retrieve.al
${prVA}/auto/Storable/retrieve.al
${prVA}/auto/Storable/Storable$(get_libname)
${prVA}/auto/Storable/_store.al
${prVA}/auto/Storable/store.al
${prVA}/B/Deparse.pm
${prVA}/B.pm
${prVA}/Config.pm
${prVA}/Config_heavy.pl
${prVA}/CORE/libperl$(get_libname)
${prVA}/Cwd.pm
${prVA}/Data/Dumper.pm
${prVA}/DynaLoader.pm
${prVA}/encoding.pm
${prVA}/Errno.pm
${prVA}/Fcntl.pm
${prVA}/File/Glob.pm
${prVA}/_h2ph_pre.ph
${prVA}/IO/File.pm
${prVA}/IO/Handle.pm
${prVA}/IO/Pipe.pm
${prVA}/IO.pm
${prVA}/IO/Seekable.pm
${prVA}/IO/Select.pm
${prVA}/IO/Socket.pm
${prVA}/lib.pm
${prVA}/NDBM_File.pm
${prVA}/ops.pm
${prVA}/POSIX.pm
${prVA}/re.pm
${prVA}/Socket.pm
${prVA}/Storable.pm
${prVA}/threads
${prVA}/threads.pm
${prVA}/XSLoader.pm
${prV}/Getopt/Long.pm
${prV}/Getopt/Std.pm
${prV}/if.pm
${prV}/integer.pm
${prV}/IO/Socket/INET.pm
${prV}/IO/Socket/UNIX.pm
${prV}/IPC/Open2.pm
${prV}/IPC/Open3.pm
${prV}/less.pm
${prV}/List/Util.pm
${prV}/locale.pm
${prV}/open.pm
${prV}/overload.pm
${prV}/Pod/InputObjects.pm
${prV}/Pod/Man.pm
${prV}/Pod/ParseLink.pm
${prV}/Pod/Parser.pm
${prV}/Pod/Select.pm
${prV}/Pod/Text.pm
${prV}/Pod/Usage.pm
${prV}/PerlIO.pm
${prV}/Scalar/Util.pm
${prV}/SelectSaver.pm
${prV}/sigtrap.pm
${prV}/sort.pm
${prV}/stat.pl
${prV}/strict.pm
${prV}/subs.pm
${prV}/Symbol.pm
${prV}/Text/ParseWords.pm
${prV}/Text/Tabs.pm
${prV}/Text/Wrap.pm
${prV}/Time/Local.pm
${prV}/unicore/Canonical.pl
${prV}/unicore/Exact.pl
${prV}/unicore/lib/gc_sc/Digit.pl
${prV}/unicore/lib/gc_sc/Word.pl
${prV}/unicore/PVA.pl
${prV}/unicore/To/Fold.pl
${prV}/unicore/To/Lower.pl
${prV}/unicore/To/Upper.pl
${prV}/utf8_heavy.pl
${prV}/utf8.pm
${prV}/vars.pm
${prV}/vmsish.pm
${prV}/warnings
${prV}/warnings.pm
${prV}/warnings/register.pm"
pushd "${D}" > /dev/null
# Remove cruft
einfo "Removing files that are not in the minimal install"
echo "${MINIMAL_PERL_INSTALL}"
for f in $(find . -type f ) ; do
has "${f}" ${MINIMAL_PERL_INSTALL} || rm -f "${f}"
done
# Remove empty directories
find . -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
popd > /dev/null
}

View File

@ -1,629 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.12.2-r1.ebuild,v 1.2 2010/09/24 11:15:12 tove Exp $
EAPI=3
inherit eutils alternatives flag-o-matic toolchain-funcs multilib
PATCH_VER=2
PERL_OLDVERSEN="5.12.1 5.12.0"
SHORT_PV="${PV%.*}"
MY_P="perl-${PV/_rc/-RC}"
MY_PV="${PV%_rc*}"
DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
SRC_URI="
mirror://cpan/src/${MY_P}.tar.bz2
mirror://cpan/authors/id/J/JE/JESSE/${MY_P}.tar.bz2
mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
http://dev.gentoo.org/~tove/files/${MY_P}-${PATCH_VER}.tar.bz2"
# mirror://cpan/src/${MY_P}.tar.bz2
# mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
HOMEPAGE="http://www.perl.org/"
LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="berkdb build debug doc gdbm ithreads"
COMMON_DEPEND="berkdb? ( sys-libs/db )
gdbm? ( >=sys-libs/gdbm-1.8.3 )
>=sys-devel/libperl-5.10.1
!!<sys-devel/libperl-5.10.1
app-arch/bzip2
sys-libs/zlib"
DEPEND="${COMMON_DEPEND}
elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs )"
RDEPEND="${COMMON_DEPEND}"
PDEPEND=">=app-admin/perl-cleaner-2.2"
S="${WORKDIR}/${MY_P}"
dual_scripts() {
src_remove_dual_scripts perl-core/Archive-Tar 1.54 ptar ptardiff
src_remove_dual_scripts perl-core/Digest-SHA 5.47 shasum
src_remove_dual_scripts perl-core/CPAN 1.9456 cpan
src_remove_dual_scripts perl-core/CPANPLUS 0.90 cpanp cpan2dist cpanp-run-perl
src_remove_dual_scripts perl-core/Encode 2.39 enc2xs piconv
src_remove_dual_scripts perl-core/ExtUtils-MakeMaker 6.56 instmodsh
src_remove_dual_scripts perl-core/Module-Build 0.3603 config_data
src_remove_dual_scripts perl-core/Module-CoreList 2.38 corelist
src_remove_dual_scripts perl-core/PodParser 1.37 pod2usage podchecker podselect
src_remove_dual_scripts perl-core/Test-Harness 3.17 prove
src_remove_dual_scripts perl-core/podlators 2.3.1 pod2man pod2text
}
pkg_setup() {
case ${CHOST} in
*-freebsd*) osname="freebsd" ;;
*-dragonfly*) osname="dragonfly" ;;
*-netbsd*) osname="netbsd" ;;
*-openbsd*) osname="openbsd" ;;
*-darwin*) osname="darwin" ;;
*) osname="linux" ;;
esac
if use ithreads ; then
mythreading="-multi"
myarch="${CHOST%%-*}-${osname}-thread"
else
myarch="${CHOST%%-*}-${osname}"
fi
if use debug ; then
myarch="${myarch}-debug"
fi
LIBPERL="libperl$(get_libname ${MY_PV} )"
PRIV_LIB="/usr/$(get_libdir)/perl5/${MY_PV}"
ARCH_LIB="/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}"
SITE_LIB="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}"
SITE_ARCH="/usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}"
VENDOR_LIB="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}"
VENDOR_ARCH="/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}"
if use ithreads ; then
echo ""
ewarn "THREADS WARNING:"
ewarn "PLEASE NOTE: You are compiling ${MY_P} with"
ewarn "interpreter-level threading enabled."
ewarn "Threading is not supported by all applications "
ewarn "that compile against perl. You use threading at "
ewarn "your own discretion. "
fi
if has_version "<dev-lang/perl-${SHORT_PV}" ; then
echo ""
ewarn "UPDATE THE PERL MODULES:"
ewarn "After updating dev-lang/perl you must reinstall"
ewarn "the installed perl modules."
ewarn "Use: perl-cleaner --all"
elif has_version dev-lang/perl ; then
# doesnot work
#if ! has_version dev-lang/perl[ithreads=,debug=] ; then
#if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then
if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \
( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \
( use debug && ! has_version dev-lang/perl[debug] ) || \
( ! use debug && has_version dev-lang/perl[debug] ) ; then
echo ""
ewarn "TOGGLED USE-FLAGS WARNING:"
ewarn "You changed one of the use-flags ithreads or debug."
ewarn "You must rebuild all perl-modules installed."
ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
fi
fi
dual_scripts
}
src_prepare_update_patchlevel_h() {
[[ -f ${WORKDIR}/perl-patch/series ]] || return 0
while read patch level ; do
sed -i -e "s/^\t,NULL$/ ,\"${patch//__/_}\"\n&/" "${S}"/patchlevel.h || die
done < "${WORKDIR}"/perl-patch/series
}
src_prepare() {
EPATCH_SOURCE="${WORKDIR}/perl-patch" \
EPATCH_SUFFIX="diff" \
EPATCH_FORCE="yes" \
epatch
epatch "${FILESDIR}/qemu-arm-fstack-protector.diff"
src_prepare_update_patchlevel_h
# pod/perltoc.pod fails
# lib/ExtUtils/t/Embed.t fails
ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV})
ln -s ${LIBPERL} libperl$(get_libname )
}
myconf() {
# the myconf array is declared in src_configure
myconf=( "${myconf[@]}" "$@" )
}
src_configure() {
declare -a myconf
export LC_ALL="C"
# some arches and -O do not mix :)
use ppc && replace-flags -O? -O1
# Perl has problems compiling with -Os in your flags with glibc
use elibc_uclibc || replace-flags "-Os" "-O2"
# This flag makes compiling crash in interesting ways
filter-flags "-malign-double"
# Fixes bug #97645
use ppc && filter-flags "-mpowerpc-gpopt"
# Fixes bug #143895 on gcc-4.1.1
filter-flags "-fsched2-use-superblocks"
# this is needed because gcc 3.3-compiled kernels will hang
# the machine trying to run this test - check with `Kumba
# <rac@gentoo.org> 2003.06.26
use mips && myconf -Dd_u32align
use sparc && myconf -Ud_longdbl
# 266337
export BUILD_BZIP2=0
export BZIP2_INCLUDE=/usr/include
export BZIP2_LIB=/usr/$(get_libdir)
cat <<-EOF > "${S}/cpan/Compress-Raw-Zlib/config.in"
BUILD_ZLIB = False
INCLUDE = /usr/include
LIB = /usr/$(get_libdir)
OLD_ZLIB = False
GZIP_OS_CODE = AUTO_DETECT
EOF
# allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1
myndbm='U'
mygdbm='U'
mydb='U'
if use gdbm ; then
mygdbm='D'
myndbm='D'
fi
if use berkdb ; then
mydb='D'
has_version '=sys-libs/db-1*' && myndbm='D'
fi
myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db"
if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then
ewarn "Perl will not be built with berkdb support, use gcc if you needed it..."
myconf -Ui_db -Ui_ndbm
fi
use ithreads && myconf -Dusethreads
if use debug ; then
append-cflags "-g"
myconf -DDEBUGGING
elif [[ ${CFLAGS} == *-g* ]] ; then
myconf -DDEBUGGING=-g
else
myconf -DDEBUGGING=none
fi
if [[ -n ${PERL_OLDVERSEN} ]] ; then
local inclist=$(for v in ${PERL_OLDVERSEN}; do echo -n "${v}/${myarch}${mythreading} ${v} "; done )
myconf -Dinc_version_list="$inclist"
fi
[[ -n "${ABI}" ]] && myconf "-Dusrinc=$(get_ml_incdir)"
[[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
if [[ $(get_libdir) != "lib" ]] ; then
# We need to use " and not ', as the written config.sh use ' ...
myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)"
fi
sh Configure \
-des \
-Duseshrplib \
-Darchname="${myarch}" \
-Dcc="$(tc-getCC)" \
-Doptimize="${CFLAGS}" \
-Dldflags="${LDFLAGS}" \
-Dprefix='/usr' \
-Dsiteprefix='/usr' \
-Dvendorprefix='/usr' \
-Dscriptdir='/usr/bin' \
-Dprivlib="${PRIV_LIB}" \
-Darchlib="${ARCH_LIB}" \
-Dsitelib="${SITE_LIB}" \
-Dsitearch="${SITE_ARCH}" \
-Dvendorlib="${VENDOR_LIB}" \
-Dvendorarch="${VENDOR_ARCH}" \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dsiteman1dir=/usr/share/man/man1 \
-Dsiteman3dir=/usr/share/man/man3 \
-Dvendorman1dir=/usr/share/man/man1 \
-Dvendorman3dir=/usr/share/man/man3 \
-Dman1ext='1' \
-Dman3ext='3pm' \
-Dlibperl="${LIBPERL}" \
-Dlocincpth=' ' \
-Duselargefiles \
-Dd_semctl_semun \
-Dcf_by='Gentoo' \
-Dmyhostname='localhost' \
-Dperladmin='root@localhost' \
-Dinstallusrbinperl='n' \
-Ud_csh \
-Uusenm \
"${myconf[@]}" || die "Unable to configure"
}
src_compile() {
# bug 331113
emake -j1 || die "emake failed"
}
src_test() {
if [[ ${EUID} == 0 ]] ; then
ewarn "Test fails with a sandbox error (#328793) if run as root. Skipping tests..."
return 0
fi
use elibc_uclibc && export MAKEOPTS+=" -j1"
TEST_JOBS=$(echo -j1 ${MAKEOPTS} | sed -r 's/.*(-j[[:space:]]*|--jobs=)([[:digit:]]+).*/\2/' ) \
make test_harness || die "test failed"
}
src_install() {
local i
local coredir="${ARCH_LIB}/CORE"
# # Fix for "stupid" modules and programs
# dodir ${SITE_ARCH} ${SITE_LIB}
local installtarget=install
if use build ; then
installtarget=install.perl
fi
make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
rm -f "${D}"/usr/bin/perl
ln -s perl${MY_PV} "${D}"/usr/bin/perl
dolib.so "${D}"/${coredir}/${LIBPERL} || die
dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname) || die
rm -f "${D}"/${coredir}/${LIBPERL}
dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${SHORT_PV})
dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages"
# # A poor fix for the miniperl issues
# dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
# fperms 0444 /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp
# dosed 's:./miniperl:/usr/bin/perl:' /usr/bin/xsubpp
# fperms 0755 /usr/bin/xsubpp
# This removes ${D} from Config.pm
for i in $(find "${D}" -iname "Config.pm" ) ; do
einfo "Removing ${D} from ${i}..."
sed -i -e "s:${D}::" "${i}" || die "Sed failed"
done
find "${D}" -type f -name .packlist -delete || die
# Note: find out from psm why we would need/want this.
# ( use berkdb && has_version '=sys-libs/db-1*' ) ||
# find "${D}" -name "*NDBM*" | xargs rm -f
dodoc Changes* README AUTHORS || die
if use doc ; then
# HTML Documentation
# We expect errors, warnings, and such with the following.
dodir /usr/share/doc/${PF}/html
LD_LIBRARY_PATH=. ./perl installhtml \
--podroot='.' \
--podpath='lib:ext:pod:vms' \
--recurse \
--htmldir="${D}/usr/share/doc/${PF}/html" \
--libpods='perlfunc:perlguts:perlvar:perlrun:perlop'
fi
dual_scripts
if use build ; then
src_remove_extra_files
fi
}
pkg_postinst() {
dual_scripts
if [[ "${ROOT}" = "/" ]] ; then
local INC DIR file
INC=$(perl -e 'for $line (@INC) { next if $line eq "."; next if $line =~ m/'${MY_PV}'|etc|local|perl$/; print "$line\n" }')
ebegin "Removing old .ph files"
for DIR in ${INC} ; do
if [[ -d "${DIR}" ]] ; then
for file in $(find "${DIR}" -name "*.ph" -type f ) ; do
rm -f "${file}"
einfo "<< ${file}"
done
fi
done
# Silently remove the now empty dirs
for DIR in ${INC} ; do
if [[ -d "${DIR}" ]] ; then
find "${DIR}" -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
fi
done
ebegin "Generating ConfigLocal.pm (ignore any error)"
enc2xs -C
ebegin "Converting C header files to the corresponding Perl format (ignore any error)"
pushd /usr/include >/dev/null
h2ph -Q -a -d ${ARCH_LIB} \
asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \
sys/socket.h sys/time.h wait.h sysexits.h
popd >/dev/null
# This has been moved into a function because rumor has it that a future release
# of portage will allow us to check what version was just removed - which means
# we will be able to invoke this only as needed :)
# Tried doing this via -z, but $INC is too big...
#if [[ "${INC}x" != "x" ]]; then
# cleaner_msg
#fi
fi
}
pkg_postrm(){
dual_scripts
}
cleaner_msg() {
eerror "You have had multiple versions of perl. It is recommended"
eerror "that you run perl-cleaner now. perl-cleaner will"
eerror "assist with this transition. This script is capable"
eerror "of cleaning out old .ph files, rebuilding modules for "
eerror "your new version of perl, as well as re-emerging"
eerror "applications that compiled against your old libperl$(get_libname)"
eerror
eerror "PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT."
eerror "Part of the rebuilding of applications compiled against "
eerror "your old libperl involves temporarily unmerging"
eerror "them - interruptions could leave you with unmerged"
eerror "packages before they can be remerged."
eerror ""
eerror "If you have run perl-cleaner and a package still gives"
eerror "you trouble, and re-emerging it fails to correct"
eerror "the problem, please check http://bugs.gentoo.org/"
eerror "for more information or to report a bug."
eerror ""
}
src_remove_dual_scripts() {
use build && return
local i pkg ver ff
pkg="$1"
ver="$2"
shift 2
if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ;then
for i in "$@" ; do
ff=`echo ${ROOT}/usr/share/man/man1/${i}-${ver}-${P}.1*`
ff=${ff##*.1}
alternatives_auto_makesym "/usr/bin/${i}" "/usr/bin/${i}-[0-9]*"
if [[ ${i} != cpanp-run-perl ]] ; then
alternatives_auto_makesym "/usr/share/man/man1/${i}.1${ff}" "/usr/share/man/man1/${i}-[0-9]*"
fi
done
elif has "${EBUILD_PHASE:-none}" "setup" ; then
for i in "$@" ; do
if [[ -f ${ROOT}/usr/bin/${i} && ! -h ${ROOT}/usr/bin/${i} ]] ; then
has_version ${pkg} && ewarn "You must reinstall $pkg !"
break
fi
done
else
for i in "$@" ; do
mv "${D}"/usr/bin/${i}{,-${ver}-${P}} || die
if [[ -f ${D}/usr/share/man/man1/${i}.1 ]] ; then
mv "${D}"/usr/share/man/man1/${i}{.1,-${ver}-${P}.1} || die
else
echo "/usr/share/man/man1/${i}.1 does not exist!"
fi
done
fi
}
src_remove_extra_files() {
local prefix="./usr" # ./ is important
local bindir="${prefix}/bin"
local libdir="${prefix}/$(get_libdir)"
# I made this list from the Mandr*, Debian and ex-Connectiva perl-base list
# Then, I added several files to get GNU autotools running
# FIXME: should this be in a separated file to be sourced?
local MINIMAL_PERL_INSTALL="
${bindir}/h2ph
${bindir}/perl
${bindir}/perl${MY_PV}
${bindir}/pod2man
${libdir}/${LIBPERL}
${libdir}/libperl$(get_libname)
${libdir}/libperl$(get_libname ${SHORT_PV})
.${PRIV_LIB}/AutoLoader.pm
.${PRIV_LIB}/autouse.pm
.${PRIV_LIB}/B/Deparse.pm
.${PRIV_LIB}/base.pm
.${PRIV_LIB}/bigint.pm
.${PRIV_LIB}/bignum.pm
.${PRIV_LIB}/bigrat.pm
.${PRIV_LIB}/blib.pm
.${PRIV_LIB}/bytes_heavy.pl
.${PRIV_LIB}/bytes.pm
.${PRIV_LIB}/Carp/Heavy.pm
.${PRIV_LIB}/Carp.pm
.${PRIV_LIB}/charnames.pm
.${PRIV_LIB}/Class/Struct.pm
.${PRIV_LIB}/constant.pm
.${PRIV_LIB}/diagnostics.pm
.${PRIV_LIB}/DirHandle.pm
.${PRIV_LIB}/Exporter/Heavy.pm
.${PRIV_LIB}/Exporter.pm
.${PRIV_LIB}/ExtUtils/Command.pm
.${PRIV_LIB}/ExtUtils/Constant.pm
.${PRIV_LIB}/ExtUtils/Embed.pm
.${PRIV_LIB}/ExtUtils/Installed.pm
.${PRIV_LIB}/ExtUtils/Install.pm
.${PRIV_LIB}/ExtUtils/Liblist.pm
.${PRIV_LIB}/ExtUtils/MakeMaker.pm
.${PRIV_LIB}/ExtUtils/Manifest.pm
.${PRIV_LIB}/ExtUtils/Mkbootstrap.pm
.${PRIV_LIB}/ExtUtils/Mksymlists.pm
.${PRIV_LIB}/ExtUtils/MM_Any.pm
.${PRIV_LIB}/ExtUtils/MM_MacOS.pm
.${PRIV_LIB}/ExtUtils/MM.pm
.${PRIV_LIB}/ExtUtils/MM_Unix.pm
.${PRIV_LIB}/ExtUtils/MY.pm
.${PRIV_LIB}/ExtUtils/Packlist.pm
.${PRIV_LIB}/ExtUtils/testlib.pm
.${PRIV_LIB}/ExtUtils/Miniperl.pm
.${PRIV_LIB}/ExtUtils/Command/MM.pm
.${PRIV_LIB}/ExtUtils/Constant/Base.pm
.${PRIV_LIB}/ExtUtils/Constant/Utils.pm
.${PRIV_LIB}/ExtUtils/Constant/XS.pm
.${PRIV_LIB}/ExtUtils/Liblist/Kid.pm
.${PRIV_LIB}/fields.pm
.${PRIV_LIB}/File/Basename.pm
.${PRIV_LIB}/File/Compare.pm
.${PRIV_LIB}/File/Copy.pm
.${PRIV_LIB}/File/Find.pm
.${PRIV_LIB}/FileHandle.pm
.${PRIV_LIB}/File/Path.pm
.${PRIV_LIB}/File/stat.pm
.${PRIV_LIB}/filetest.pm
.${PRIV_LIB}/Getopt/Long.pm
.${PRIV_LIB}/Getopt/Std.pm
.${PRIV_LIB}/if.pm
.${PRIV_LIB}/integer.pm
.${PRIV_LIB}/IPC/Open2.pm
.${PRIV_LIB}/IPC/Open3.pm
.${PRIV_LIB}/less.pm
.${PRIV_LIB}/locale.pm
.${PRIV_LIB}/open.pm
.${PRIV_LIB}/overload.pm
.${PRIV_LIB}/Pod/InputObjects.pm
.${PRIV_LIB}/Pod/Man.pm
.${PRIV_LIB}/Pod/ParseLink.pm
.${PRIV_LIB}/Pod/Parser.pm
.${PRIV_LIB}/Pod/Select.pm
.${PRIV_LIB}/Pod/Text.pm
.${PRIV_LIB}/Pod/Usage.pm
.${PRIV_LIB}/PerlIO.pm
.${PRIV_LIB}/SelectSaver.pm
.${PRIV_LIB}/sigtrap.pm
.${PRIV_LIB}/sort.pm
.${PRIV_LIB}/stat.pl
.${PRIV_LIB}/strict.pm
.${PRIV_LIB}/subs.pm
.${PRIV_LIB}/Symbol.pm
.${PRIV_LIB}/Text/ParseWords.pm
.${PRIV_LIB}/Text/Tabs.pm
.${PRIV_LIB}/Text/Wrap.pm
.${PRIV_LIB}/Time/Local.pm
.${PRIV_LIB}/unicore/Canonical.pl
.${PRIV_LIB}/unicore/Exact.pl
.${PRIV_LIB}/unicore/lib/gc_sc/Digit.pl
.${PRIV_LIB}/unicore/lib/gc_sc/Word.pl
.${PRIV_LIB}/unicore/PVA.pl
.${PRIV_LIB}/unicore/To/Fold.pl
.${PRIV_LIB}/unicore/To/Lower.pl
.${PRIV_LIB}/unicore/To/Upper.pl
.${PRIV_LIB}/utf8_heavy.pl
.${PRIV_LIB}/utf8.pm
.${PRIV_LIB}/vars.pm
.${PRIV_LIB}/vmsish.pm
.${PRIV_LIB}/warnings
.${PRIV_LIB}/warnings.pm
.${PRIV_LIB}/warnings/register.pm
.${PRIV_LIB}/XSLoader.pm
.${ARCH_LIB}/attributes.pm
.${ARCH_LIB}/auto/Cwd/Cwd$(get_libname)
.${ARCH_LIB}/auto/Data/Dumper/Dumper$(get_libname)
.${ARCH_LIB}/auto/DynaLoader/dl_findfile.al
.${ARCH_LIB}/auto/Fcntl/Fcntl$(get_libname)
.${ARCH_LIB}/auto/File/Glob/Glob$(get_libname)
.${ARCH_LIB}/auto/IO/IO$(get_libname)
.${ARCH_LIB}/auto/POSIX/autosplit.ix
.${ARCH_LIB}/auto/POSIX/fstat.al
.${ARCH_LIB}/auto/POSIX/load_imports.al
.${ARCH_LIB}/auto/POSIX/POSIX$(get_libname)
.${ARCH_LIB}/auto/POSIX/stat.al
.${ARCH_LIB}/auto/POSIX/tmpfile.al
.${ARCH_LIB}/auto/re/re$(get_libname)
.${ARCH_LIB}/auto/Socket/Socket$(get_libname)
.${ARCH_LIB}/auto/Storable/autosplit.ix
.${ARCH_LIB}/auto/Storable/_retrieve.al
.${ARCH_LIB}/auto/Storable/retrieve.al
.${ARCH_LIB}/auto/Storable/Storable$(get_libname)
.${ARCH_LIB}/auto/Storable/_store.al
.${ARCH_LIB}/auto/Storable/store.al
.${ARCH_LIB}/B.pm
.${ARCH_LIB}/Config.pm
.${ARCH_LIB}/Config_heavy.pl
.${ARCH_LIB}/CORE/libperl$(get_libname)
.${ARCH_LIB}/Cwd.pm
.${ARCH_LIB}/Data/Dumper.pm
.${ARCH_LIB}/DynaLoader.pm
.${ARCH_LIB}/encoding.pm
.${ARCH_LIB}/Errno.pm
.${ARCH_LIB}/Fcntl.pm
.${ARCH_LIB}/File/Glob.pm
.${ARCH_LIB}/File/Spec.pm
.${ARCH_LIB}/File/Spec/Unix.pm
.${ARCH_LIB}/_h2ph_pre.ph
.${ARCH_LIB}/IO/File.pm
.${ARCH_LIB}/IO/Handle.pm
.${ARCH_LIB}/IO/Pipe.pm
.${ARCH_LIB}/IO.pm
.${ARCH_LIB}/IO/Seekable.pm
.${ARCH_LIB}/IO/Select.pm
.${ARCH_LIB}/IO/Socket.pm
.${ARCH_LIB}/IO/Socket/INET.pm
.${ARCH_LIB}/IO/Socket/UNIX.pm
.${ARCH_LIB}/lib.pm
.${ARCH_LIB}/List/Util.pm
.${ARCH_LIB}/NDBM_File.pm
.${ARCH_LIB}/ops.pm
.${ARCH_LIB}/POSIX.pm
.${ARCH_LIB}/re.pm
.${ARCH_LIB}/Scalar/Util.pm
.${ARCH_LIB}/Socket.pm
.${ARCH_LIB}/Storable.pm
.${ARCH_LIB}/threads
.${ARCH_LIB}/threads.pm"
pushd "${D}" > /dev/null
# Remove cruft
einfo "Removing files that are not in the minimal install"
echo "${MINIMAL_PERL_INSTALL}"
for f in $(find . -type f ) ; do
has "${f}" ${MINIMAL_PERL_INSTALL} || rm -f "${f}"
done
# Remove empty directories
find . -depth -type d -print0 | xargs -0 -r rmdir &> /dev/null
popd > /dev/null
}

View File

@ -1,5 +1,5 @@
AUX micro_evtd-boot.initd 594 RMD160 226f2b4a285a34a1d6d8bd409b0ad4695874e861 SHA1 98dfd5e2ecff73279131973483d358291f9be507 SHA256 4aa12f573daa84c525810144dd5c41d1b0c7d3f4558d86b37ba07205cd058854
AUX micro_evtd-default.initd 532 RMD160 50a9cf1d4f2019ffb62e8d828bb79767ec98a5ae SHA1 a8cdc9d1ed87f4dbbad41c6aff8e353347134298 SHA256 23fd394c1c8cf6b79647be22c227b5d083076ffcc45b0a5a36c894270874aa7d
AUX micro_evtd-boot.initd 594 RMD160 e262f505030f551c45b1b86f74cdf8d753221493 SHA1 b257a51ae736d1946666219abe8ae43fbbffc08d SHA256 b619cc4a6d3712cf3e01003e781be8efa3d15dcde9116260ceb8ee7de59c791f
AUX micro_evtd-default.initd 532 RMD160 3ce534692fcf0994207fbd7fa008abc7c6c8bc00 SHA1 47bd76c7720ae6fa9d575a3c21735bd79cbdc00d SHA256 deeae8fea73809ef69ae19420230561aa90deddbd332e8a2b80586f87bc8aa1a
AUX strEventScript-size.patch 994 RMD160 e5900eb40180cae06a5c9272841f72a3d8a5b271 SHA1 27ea6106c51d1753081e9af979f3f615b5bb3a14 SHA256 72fc662b70265a0a9ce4f5f5ea16f43f3157b5aea2bca42e25f42859cd099180
DIST micro-evtd_3.3.3-6+lenny3.diff.gz 13764 RMD160 b8c9d78260dcef0591389eb42a988d3005982d09 SHA1 6b1c403e89703ca95cc22bdddfd9c1f0945f9dac SHA256 6f1dd9f4aca2e5d61f094e35379e3e775758efd459999ea3587958833f490913
DIST micro-evtd_3.3.3-7.diff.gz 15441 RMD160 838ad3330afa50f0b25f4d94cf15249b94241884 SHA1 8ee15d5d12fef4dd79780aaa7e7e15758ecffa31 SHA256 af4088bb074a5c77531d2686e00651b46e2978c1fa0e32433c62445fdaebca01

View File

@ -13,13 +13,13 @@ depend() {
start() {
# micro_evtd doesn't start properly from s-s-d, need to investigate
ebegin "Starting ${description}"
#start-stop-daemon --start --exec /usr/sbin/micro_evtd
/usr/sbin/micro_evtd
#start-stop-daemon --start --exec /usr/sbin/micro-evtd
/usr/sbin/micro-evtd
eend $?
}
stop() {
ebegin "Stopping ${description}"
start-stop-daemon --stop --exec /usr/sbin/micro_evtd
start-stop-daemon --stop --exec /usr/sbin/micro-evtd
eend $?
}

View File

@ -6,7 +6,7 @@
description="Linkstation/Kurobox/Terastation micro controller daemon"
depend() {
need micro_evtd-boot
need micro-evtd-boot
after *
}