[45428] trunk/dports/aqua/Books/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Jan 15 16:24:32 PST 2009


On Jan 15, 2009, at 15:31, snc at macports.org wrote:

> Revision: 45428
>           http://trac.macports.org/changeset/45428
> Author:   snc at macports.org
> Date:     2009-01-15 13:31:50 -0800 (Thu, 15 Jan 2009)
> Log Message:
> -----------
> updated version/download per ticket #17363, add missing attrs
>
> Modified Paths:
> --------------
>     trunk/dports/aqua/Books/Portfile
>
> Modified: trunk/dports/aqua/Books/Portfile
> ===================================================================
> --- trunk/dports/aqua/Books/Portfile	2009-01-15 20:56:57 UTC (rev  
> 45427)
> +++ trunk/dports/aqua/Books/Portfile	2009-01-15 21:31:50 UTC (rev  
> 45428)
> @@ -1,10 +1,10 @@
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode:  
> nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
>  # $Id$
>
>  PortSystem		1.0
> -PortGroup		xcode 1.0
>
>  name			Books
> -version			2.2.0
> +version			3.2.2
>  categories		aqua
>  maintainers		nomaintainer
>  description		Books provides a virtual card catalog for your  
> personal library.
> @@ -17,18 +17,44 @@
>  					retrieval, and XML support for importing and exporting \
>  					collection information in HTML and XML.
>
> +platforms       darwin
>  homepage		http://books.aetherial.net/
> -master_sites	http://homepage.mac.com/cjkarr/Books/
> -distname		Source-${version}
> -extract.suffix	.tgz
> +master_sites	${homepage}downloads/
> +distname		${name}_${version}
> +extract.cmd     bzip2

Please use "use_bzip2 yes" instead of setting the extract.cmd.

> +extract.suffix  .tbz
>
> -checksums		md5 a7c75e8931dee9b5bc0733a71c3f307e \
> -				sha1 2a1460331f9037c2da9112cfd03b19d62ee30d46 \
> -				rmd160 0a8932fb148f389f878b1ea89211420f606d9875
> +platform darwin 6 {
> +pre-fetch {
> +return -code error "\n
> +    ${name} ${version} will not install on less than OS X 10.4 and  
> there isn't a
> +    a ${name} 2.x port contributed as yet to accomodate 10.3.9\n"
> +}
> +}
>
> +platform darwin 7 {
> +pre-fetch {
> +return -code error "\n
> +    ${name} ${version} will not install on less than OS X 10.4 and  
> there isn't a
> +    a ${name} 2.x port contributed as yet to accomodate 10.3.9\n"
> +}
> +}
> +
> +checksums		md5 4c832de22a99f8b30e10cd988a8dd36d \
> +				sha1 e086b62972a243465bd5d1d223c93b4ac0e44f83 \
> +				rmd160 4a0cf32a8d79daf92fbf80c6e92f5048fe9e82ef
> +
>  worksrcdir		${name}
>
> +prefix          /Applications/MacPorts

Please use ${applications_dir} instead of assuming /Applications/ 
MacPorts; this is a user-configurable location as of MacPorts 1.7.0.

>  universal_variant no
> +use_configure   no
> +build {}
> +destroot {
> +    set appPath ${destroot}/Applications/MacPorts
> +    xinstall -d ${appPath}
> +    file copy ${worksrcpath}.app ${appPath}
> +}
>
>  livecheck.check	regex
>  livecheck.url	http://books.aetherial.net/wordpress/



More information about the macports-dev mailing list