[24711] branches/dp2mp-move/base/doc/exampleport/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 30 18:43:28 PDT 2007
Revision: 24711
http://trac.macosforge.org/projects/macports/changeset/24711
Author: jmpp at macports.org
Date: 2007-04-30 18:43:27 -0700 (Mon, 30 Apr 2007)
Log Message:
-----------
Updated example port, listing a currently maintained port and current 'best practices'.
Modified Paths:
--------------
branches/dp2mp-move/base/doc/exampleport/Portfile
Modified: branches/dp2mp-move/base/doc/exampleport/Portfile
===================================================================
--- branches/dp2mp-move/base/doc/exampleport/Portfile 2007-05-01 00:03:17 UTC (rev 24710)
+++ branches/dp2mp-move/base/doc/exampleport/Portfile 2007-05-01 01:43:27 UTC (rev 24711)
@@ -1,52 +1,60 @@
-# All ports must start with a RCS Id tag and a PortSystem declaration
-# Ensure that the RCS Id tag is commented out in your Portfile
-# RCS Id tag:
+# All ports must have the "svn:keywords : Id" and "svn:eol-style : native"
+# svn props set on them and start with a commented out $Id$ tag, which
+# the server will expand:
# $Id$
+# Following that comes the PortSystem declaration:
# PortSystem <version>
# where version is the version of the ports system your port relies upon.
# This can NOT be commented out.
PortSystem 1.0
# The name of the port
-name fetch
+name glib2
# Its version information
-version 4.6.2-RELEASE
+version 2.12.11
# Categories and identifying keywords
-categories net
+categories devel
# Email address(es) of the port's Maintainer(s)
-maintainers eric at opendarwin.org
+maintainers ryandesign at macports.org
# A short description of this port
-description "A utility for fetching files by URL"
+description Library with data structure functions and other constructs
# A long description, with more details
-long_description "fetch is a utility to fetch files by their URL, \
- fetch originally comes from FreeBSD."
+long_description Glib is a library which includes support routines for \
+ C, such as lists, trees, hashes, memory allocation, and \
+ many other things.
+# Homepage for the port:
+http://www.gtk.org/
+
# Master download sites for port's distribution file(s)
-master_sites http://www.opendarwin.org/~eric/
+master_sites ftp://ftp.gtk.org/pub/glib/2.12 \
+ gnome:sources/glib/2.12
# Name of the distribution file, minus extract suffix (see below)
-distname ${portname}-${portversion}
+distname glib-${version}
# (Optional) Explicitly set suffix (default: .tar.gz)
#extract.suffix .tar.bz2
# (Optional) Use bzip2 instead of gzip for uncompressing distribution file
-#use_bzip2 yes
+use_bzip2 yes
# List of checksums for files to be fetched
# <file name> <checksum type> <checksum>
-# Currently the only supported checksum type is md5
-checksums ${distname}${extract.suffix} md5 45627db03b6cf89b8dabae6d815dcd9b
+checksums ${distname}${extract.suffix} md5 077a9917b673a9a0bc63f351786dde24 \
+ ${distname}${extract.suffix} sha1 02d344295ddaeafeec6bc6824b71e12bbf1b0394 \
+ ${distname}${extract.suffix} rmd160 8680d27e630643e6653d88537907d06e3ba6e91a
# Any patches which should be applied after extracting this port. These
+
# should go in the files/ subdirectory of the port.
-#patchfiles patch-Makefiles patch-configure
+patchfiles patch-glib-2.0.pc.in patch-glib__gutils.c
# Dependencies are defined by three settings:
# depends_lib: installed at build time and at install time
@@ -64,10 +72,22 @@
# must be a complete regexp.
# portname must be the name of a valid port to build and install
# if the depspec is not matched.
-depends_lib lib:libfetch.3:libfetch
+# An alternative dependency depspec is the port:<portname> syntax,
+# used when you want to insure the given dependency is satisfied
+# exclusively by MacPorts.
+depends_build port:pkgconfig
+depends_lib port:gettext
# The type of configuration script this port uses.
-#configure.type gnu
+#configure.type gnu
+# A list of configuration time arguments you might want to pass to the configure script:
+configure.args --mandir=${prefix}/share/man
+
# The directory name of the subdirectory of work/ where this port extracts
-#worksrcdir fetch
+#worksrcdir glib
+
+# Alternative ways to build the port, packed as 'variants'
+variant puredarwin { depends_run bin:perl:perl5.8 }
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070430/12aebea5/attachment.html
More information about the macports-changes
mailing list