git.iko.soy/typeable/pandoc
on master help sign in
Added macport target to Makefile; Portfile is now built from

a template. git-svn-id: https://pandoc.googlecode.com/svn/trunk@886 788f1e2b-df1e-0410-8736-df70ead52e1b

commit631d3930af0d27fb64d6790be487e9cbddccb17d authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 25 Aug 2007, 16:52 (19 years ago) parentcedc181
3 files changed+12
INSTALL+1 Makefile+11 macports/Portfile → macports/Portfile.in
INSTALL+1
@@ -128,6 +128,7 @@ but are documented here for packagers and developers:
128128
129129* `tarball`: Creates a source tarball for distribution.
130130* `deb`: Creates debian packages in `..` directory.
131+* `macport`: Creates MacPorts Portfile in `macports` directory.
131132* `osx-pkg-prep`: Prepares for building a MacOS X package.
132133* `osx-pkg`: Builds a MacOS X package (must be run as root, and on OS X).
133134 You should make `osx-pkg-prep` first (not as root).
Makefile+11
@@ -236,6 +236,17 @@ uninstall-all: uninstall-program uninstall-lib-doc
236236install: install-program
237237uninstall: uninstall-program
238238
239+# MacPort
240+.PHONY: macport
241+macport_dest:=macports
242+portfile:=$(macport_dest)/Portfile
243+portfile_template:=$(portfile).in
244+cleanup_files+=$(portfile)
245+macport : $(portfile)
246+$(portfile) : $(portfile_template) $(tarball_name)
247+ sed -e 's/@VERSION@/$(VERSION)/' $(portfile_template) | \
248+ sed -e 's/@TARBALLMD5SUM@/$(shell md5sum $(tarball_name))/' > $(portfile)
249+
239250# OSX packages: make osx-pkg-prep, then (as root) make osx-pkg
240251.PHONY: osx-pkg osx-pkg-prep
241252osx_dest:=osx-pkg-tmp
macports/Portfile → macports/Portfile.inrenamed

The content is the same.