Gentoo Archives: gentoo-commits

From: Torsten Veller <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/perl-overlay:master commit in: dev-lang/perl/
Date: Fri, 11 May 2012 15:27:54
Message-Id: 1336750041.f21ba686cb097a729e5ff20529d5662fe5aeb07a.tove@gentoo
1 commit: f21ba686cb097a729e5ff20529d5662fe5aeb07a
2 Author: Torsten Veller <tove <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 11 15:27:21 2012 +0000
4 Commit: Torsten Veller <tove <AT> gentoo <DOT> org>
5 CommitDate: Fri May 11 15:27:21 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=f21ba686
7
8 [bump] dev-lang/perl-5.16.0_rc0
9
10 ---
11 dev-lang/perl/perl-5.16.0_rc0.ebuild | 116 ++++++++++++++++++++++++++++++++++
12 1 files changed, 116 insertions(+), 0 deletions(-)
13
14 diff --git a/dev-lang/perl/perl-5.16.0_rc0.ebuild b/dev-lang/perl/perl-5.16.0_rc0.ebuild
15 new file mode 100644
16 index 0000000..985c844
17 --- /dev/null
18 +++ b/dev-lang/perl/perl-5.16.0_rc0.ebuild
19 @@ -0,0 +1,116 @@
20 +# Copyright 1999-2012 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.14.2.ebuild,v 1.4 2012/03/03 12:29:38 grobian Exp $
23 +
24 +EAPI=4
25 +
26 +inherit eutils alternatives flag-o-matic toolchain-funcs multilib
27 +
28 +PATCH_VER=1
29 +
30 +PERL_OLDVERSEN=""
31 +MODULE_AUTHOR=RJBS
32 +
33 +SHORT_PV="${PV%.*}"
34 +MY_P="perl-${PV/_rc/-RC}"
35 +MY_PV="${PV%_rc*}"
36 +
37 +DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
38 +
39 +#SRC_URI="
40 +# mirror://cpan/src/${MY_P}.tar.bz2
41 +# mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
42 +SRC_URI="
43 + mirror://cpan/src/${MY_P}.tar.gz
44 + mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.gz
45 + mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2
46 + http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2"
47 +HOMEPAGE="http://www.perl.org/"
48 +
49 +LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="berkdb debug doc gdbm ithreads"
53 +
54 +RDEPEND="
55 + berkdb? ( sys-libs/db )
56 + gdbm? ( >=sys-libs/gdbm-1.8.3 )
57 + app-arch/bzip2
58 + sys-libs/zlib
59 +"
60 +DEPEND="${RDEPEND}
61 + !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
62 +"
63 +PDEPEND=">=app-admin/perl-cleaner-2.5"
64 +
65 +S="${WORKDIR}/${MY_P}"
66 +
67 +dual_scripts() {
68 + src_remove_dual perl-core/Archive-Tar 1.820.0 ptar ptardiff ptargrep
69 + src_remove_dual perl-core/Digest-SHA 5.710.0 shasum
70 + src_remove_dual perl-core/CPAN 1.980.0 cpan
71 + src_remove_dual perl-core/CPANPLUS 0.912.100 cpanp cpan2dist
72 + src_remove_dual_file perl-core/CPANPLUS 0.912.100 /usr/bin/cpanp-run-perl
73 + src_remove_dual perl-core/Encode 2.440.0 enc2xs piconv
74 + src_remove_dual perl-core/ExtUtils-MakeMaker 6.630.200_rc instmodsh
75 + src_remove_dual perl-core/ExtUtils-ParseXS 3.160.0 xsubpp
76 + src_remove_dual perl-core/JSON-PP 2.272.0 json_pp
77 + src_remove_dual perl-core/Module-Build 0.390.100 config_data
78 + src_remove_dual perl-core/Module-CoreList 2.660.0 corelist
79 + src_remove_dual perl-core/PodParser 1.510.0 pod2usage podchecker podselect
80 + src_remove_dual perl-core/Test-Harness 3.230.0 prove
81 + src_remove_dual perl-core/podlators 2.4.0 pod2man pod2text
82 + src_remove_dual_man perl-core/podlators 2.4.0 /usr/share/man/man1/perlpodstyle.1
83 +}
84 +
85 +# eblit-include [--skip] <function> [version]
86 +eblit-include() {
87 + local skipable=false
88 + [[ $1 == "--skip" ]] && skipable=true && shift
89 + [[ $1 == pkg_* ]] && skipable=true
90 +
91 + local e v func=$1 ver=$2
92 + [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
93 + for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
94 + e="${FILESDIR}/eblits/${func}${v}.eblit"
95 + if [[ -e ${e} ]] ; then
96 + source "${e}"
97 + return 0
98 + fi
99 + done
100 + ${skipable} && return 0
101 + die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/"
102 +}
103 +
104 +# eblit-run-maybe <function>
105 +# run the specified function if it is defined
106 +eblit-run-maybe() {
107 + [[ $(type -t "$@") == "function" ]] && "$@"
108 +}
109 +
110 +# eblit-run <function> [version]
111 +# aka: src_unpack() { eblit-run src_unpack ; }
112 +eblit-run() {
113 + eblit-include --skip common "${*:2}"
114 + eblit-include "$@"
115 + eblit-run-maybe eblit-$1-pre
116 + eblit-${PN}-$1
117 + eblit-run-maybe eblit-$1-post
118 +}
119 +
120 +#src_unpack() { eblit-run src_unpack v50140021 ; }
121 +src_prepare() { eblit-run src_prepare v50140021 ; }
122 +src_configure() { eblit-run src_configure v50140021 ; }
123 +#src_compile() { eblit-run src_compile v50140021 ; }
124 +src_test() { eblit-run src_test v50140021 ; }
125 +src_install() { eblit-run src_install v50140021 ; }
126 +
127 +# FILESDIR might not be available during binpkg install
128 +# FIXME: version passing
129 +for x in setup {pre,post}{inst,rm} ; do
130 + e="${FILESDIR}/eblits/pkg_${x}-v50140021.eblit"
131 + if [[ -e ${e} ]] ; then
132 + . "${e}"
133 + eval "pkg_${x}() { eblit-run pkg_${x} v50140021 ; }"
134 + fi
135 +done