Gentoo Archives: gentoo-dev

From: Alastair Tse <liquidx@g.o>
To: gentoo-dev@g.o
Subject: [gentoo-dev] new rpm.eclass
Date: Sat, 21 Jun 2003 14:30:40
Message-Id: 1056205815.8266.20.camel@mcvaio.liquidx.net
Hi All,

There are a number of packages that require us extracting directly from
RPMs or Source RPMs. As a result, a number of ebuilds depend on
rpm2targz (a slackware creation) for extraction and have their own
src_unpack routine.

To automate the process a little better, I've written an rpm.eclass
which is a slot in replacement for src_unpack(). It automatically
extracts rpm packages and for source rpms, it also extracts inner
tarballs. Internally, it still uses rpm2targz but is a little smarter
about cleaning up after itself and handles multiple sources properly.

This is now in portage. For an example of how it can used, look at
app-misc/jot or x11-themes/redhat-artwork.

Cheers,
-- 
Alastair 'liquidx' Tse
 >> Gentoo Developer 
 >> http://www.liquidx.net/ | http://cvs.gentoo.org/~liquidx/
 >> GPG Key : http://cvs.gentoo.org/~liquidx/liquidx_gentoo_org.asc
 >> FingerPrint : 579A 9B0E 43E8 0E40 EE93  BB1C 38CE 1C7B 3907 14F6

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] new rpm.eclass Georgi Georgiev <chutz@×××.net>