1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Michael Cummings wrote: |
5 |
> Christian Hartmann wrote: |
6 |
>>> Sure.. why not. - Wouldn't that be something for eutils btw? |
7 |
>>> |
8 |
> Oh great swami, you are right. Here's what I'd like to push into the |
9 |
> tree today (yeah, already written, but thought I'd swing it through here |
10 |
> real fast): |
11 |
> |
12 |
Not sure what happened to my last version of this, but it was broken |
13 |
anyway so here's a better working one: |
14 |
|
15 |
$ diff -Naup ~/perl-module.eclass perl-module.eclass |
16 |
- --- /home/mcummings/perl-module.eclass 2006-09-01 11:07:54.000000000 |
17 |
-0400 |
18 |
+++ perl-module.eclass 2006-09-01 11:09:22.000000000 -0400 |
19 |
@@ -8,8 +8,9 @@ |
20 |
# The perl-module eclass is designed to allow easier installation of perl |
21 |
# modules, and their incorporation into the Gentoo Linux system. |
22 |
|
23 |
+inherit base |
24 |
|
25 |
- -EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm |
26 |
pkg_postrm src_compile src_install src_test |
27 |
+EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm |
28 |
pkg_postrm src_compile src_install src_test src_unpack |
29 |
|
30 |
# 2005.04.28 mcummings |
31 |
# Mounting problems with src_test functions has forced me to make the |
32 |
@@ -95,6 +96,15 @@ POD_DIR="" |
33 |
BUILDER_VER="" |
34 |
pm_echovar="" |
35 |
|
36 |
+perl-module_src_unpack() { |
37 |
+ if [[ -n ${PATCHES} ]]; then |
38 |
+ base_src_unpack unpack |
39 |
+ base_src_unpack autopatch |
40 |
+ else |
41 |
+ base_src_unpack unpack |
42 |
+ fi |
43 |
+} |
44 |
+ |
45 |
perl-module_src_prep() { |
46 |
|
47 |
perlinfo |
48 |
|
49 |
- -- |
50 |
|
51 |
- -----o()o---------------------------------------------- |
52 |
Michael Cummings | #gentoo-dev, #gentoo-perl |
53 |
Gentoo Perl Dev | on irc.freenode.net |
54 |
Gentoo/SPARC |
55 |
Gentoo/AMD64 |
56 |
GPG: 0543 6FA3 5F82 3A76 3BF7 8323 AB5C ED4E 9E7F 4E2E |
57 |
- -----o()o---------------------------------------------- |
58 |
-----BEGIN PGP SIGNATURE----- |
59 |
Version: GnuPG v1.4.4 (GNU/Linux) |
60 |
|
61 |
iD8DBQFE+Fq6q1ztTp5/Ti4RAhgMAJ4pZvZPymZ/DT+vxQsLroWsE/sV/ACfceyH |
62 |
H3TAos9AdEC7ZgXjKaF2cpo= |
63 |
=0pdA |
64 |
-----END PGP SIGNATURE----- |
65 |
-- |
66 |
gentoo-perl@g.o mailing list |