Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23910 - Install perl-module for swish-e-2.2.2 when perl is in USE
Summary: Install perl-module for swish-e-2.2.2 when perl is in USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-03 07:28 UTC by Rigo
Modified: 2003-07-20 07:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
swish-e-2.2.2-r1.ebuild (swish-e-2.2.2-r1.ebuild,918 bytes, text/plain)
2003-07-03 07:30 UTC, Rigo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rigo 2003-07-03 07:28:48 UTC
Hi, /me found this ebuild a bit boring, so I decided to do something about it ;)

Added functionality: install SWISHE.pm when perl is in USE.

Hope you like it,

Rogi


<DIFF>
+use perl && inherit perl-module
+
 S=${WORKDIR}/${P}
-DESCRIPTION="Simple Web Indexing System for Humans - Ehanced"
+DESCRIPTION="Simple Web Indexing System for Humans - Enhanced"
 SRC_URI="http://www.swish-e.org/Download/${P}.tar.gz"
 HOMEPAGE="http://www.swish-e.org"
+IUSE="perl"
 KEYWORDS="~x86"
 SLOT="0"
 LICENSE="GPL-2"
@@ -15,15 +18,19 @@
        dev-perl/libwww-perl"
  
 src_compile() {
-
-       econf || die
-
-       emake || die
+       econf || die "configure failed"
+       emake || die "emake failed"
+       # closing stdin causes e-swish build system use a
+       # non-interactive mode <mkennedy@gentoo.org>
+       use perl && cd perl \
+                       && exec <&- \
+                       && perl-module_src_compile
  
 }
  
 src_install () {
-       dobin  src/swish-e
-
+       dobin src/swish-e
        dodoc INSTALL README
+       use perl && cd perl \
+               && perl-module_src_install
 }
</DIFF>
Comment 1 Rigo 2003-07-03 07:30:35 UTC
Created attachment 14140 [details]
swish-e-2.2.2-r1.ebuild

non-interactive tip comes from IPC-ShareLite-0.08.ebuild
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2003-07-20 07:14:02 UTC
thanks rigo:) all done