[82103] trunk/dports/archivers

Ryan Schmidt ryandesign at macports.org
Mon Aug 8 12:00:03 PDT 2011


On Aug 8, 2011, at 03:16, afb at macports.org wrote:

> Revision: 82103
>          http://trac.macports.org/changeset/82103
> Author:   afb at macports.org
> Date:     2011-08-08 01:16:05 -0700 (Mon, 08 Aug 2011)
> Log Message:
> -----------
> rpm2cpio: add script version of rpm extractor
> 
> Added Paths:
> -----------
>    trunk/dports/archivers/rpm2cpio/
>    trunk/dports/archivers/rpm2cpio/Portfile
> 
> Added: trunk/dports/archivers/rpm2cpio/Portfile
> ===================================================================
> --- trunk/dports/archivers/rpm2cpio/Portfile	                        (rev 0)
> +++ trunk/dports/archivers/rpm2cpio/Portfile	2011-08-08 08:16:05 UTC (rev 82103)
> @@ -0,0 +1,43 @@
> +# $Id: Portfile 81169 2011-07-26 09:08:51Z afb at macports.org $
> +
> +PortSystem 1.0
> +
> +name			rpm2cpio
> +version			5.2.1
> +platforms		darwin freebsd linux
> +categories		archivers
> +maintainers		mac.com:n3npq afb
> +description		Extract cpio archive from rpm package
> +long_description	rpm2cpio converts the .rpm file specified as a \
> +			single argument to a cpio archive on standard out.
> +conflicts		rpm rpm45 rpm50 rpm51 rpm52
> +
> +homepage		http://rpm5.org
> +master_sites		${homepage}/files/rpm/rpm-5.2/

Use ${branch} variable here.

https://trac.macports.org/wiki/PortfileRecipes#branch


> +distname		rpm-${version}
> +dist_subdir		rpm52
> +checksums		md5 71f825ede4a2ddc191132ae017c9a6e4 \
> +			sha1 77f2d1b24301ed3743d8bbc57e57710c0eff7bc8 \
> +			rmd160 a66017c6b8a7e0a1de6be945e3823a7ab2051c75
> +worksrcdir		rpm-${version}

Setting worksrcdir unnecessary; implied by setting distname.


> +depends_run		bin:gunzip:gzip \
> +			bin:bunzip2:bzip2 \
> +			bin:unlzma:xz \
> +			bin:unxz:xz
> +
> +use_configure		no
> +supported_archs		noarch
> +
> +build {}
> +
> +destroot {
> +	xinstall ${workpath}/${worksrcdir}/scripts/rpm2cpio \
> +	         ${destroot}${prefix}/bin/rpm2cpio
> +}

${workpath}/${worksrcdir} more simply expressed as ${worksrcpath}.





More information about the macports-dev mailing list