From 631d3930af0d27fb64d6790be487e9cbddccb17d Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 25 Aug 2007 16:52:42 +0000 Subject: 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 --- INSTALL | 1 + Makefile | 11 +++++++++++ macports/Portfile | 23 ----------------------- macports/Portfile.in | 23 +++++++++++++++++++++++ 4 files changed, 35 insertions(+), 23 deletions(-) delete mode 100644 macports/Portfile create mode 100644 macports/Portfile.in diff --git a/INSTALL b/INSTALL index bff5304e0..ce54e23ed 100644 --- a/INSTALL +++ b/INSTALL @@ -128,6 +128,7 @@ but are documented here for packagers and developers: * `tarball`: Creates a source tarball for distribution. * `deb`: Creates debian packages in `..` directory. +* `macport`: Creates MacPorts Portfile in `macports` directory. * `osx-pkg-prep`: Prepares for building a MacOS X package. * `osx-pkg`: Builds a MacOS X package (must be run as root, and on OS X). You should make `osx-pkg-prep` first (not as root). diff --git a/Makefile b/Makefile index 43741e890..d00a40170 100644 --- a/Makefile +++ b/Makefile @@ -236,6 +236,17 @@ uninstall-all: uninstall-program uninstall-lib-doc install: install-program uninstall: uninstall-program +# MacPort +.PHONY: macport +macport_dest:=macports +portfile:=$(macport_dest)/Portfile +portfile_template:=$(portfile).in +cleanup_files+=$(portfile) +macport : $(portfile) +$(portfile) : $(portfile_template) $(tarball_name) + sed -e 's/@VERSION@/$(VERSION)/' $(portfile_template) | \ + sed -e 's/@TARBALLMD5SUM@/$(shell md5sum $(tarball_name))/' > $(portfile) + # OSX packages: make osx-pkg-prep, then (as root) make osx-pkg .PHONY: osx-pkg osx-pkg-prep osx_dest:=osx-pkg-tmp diff --git a/macports/Portfile b/macports/Portfile deleted file mode 100644 index 23a07f536..000000000 --- a/macports/Portfile +++ /dev/null @@ -1,23 +0,0 @@ -# ID$ - -PortSystem 1.0 -name pandoc -version @VERSION@ -categories textproc -maintainers jgm@berkeley.edu -description General markup converter -long_description \ - Pandoc is a command-line tool for converting from one markup format \ - to another. It can read markdown and (subsets of) reStructuredText, \ - HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, \ - LaTeX, ConTeXt, DocBook, RTF, groff man pages, and S5 HTML slide shows. - -homepage http://sophos.berkeley.edu/pandoc/ -platforms darwin -master_sites http://pandoc.googlecode.com/files/ -checksums md5 @TARBALLMD5SUM@ -depends_lib port:ghc - -configure {} -build.cmd PREFIX=${prefix} make - diff --git a/macports/Portfile.in b/macports/Portfile.in new file mode 100644 index 000000000..23a07f536 --- /dev/null +++ b/macports/Portfile.in @@ -0,0 +1,23 @@ +# ID$ + +PortSystem 1.0 +name pandoc +version @VERSION@ +categories textproc +maintainers jgm@berkeley.edu +description General markup converter +long_description \ + Pandoc is a command-line tool for converting from one markup format \ + to another. It can read markdown and (subsets of) reStructuredText, \ + HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, \ + LaTeX, ConTeXt, DocBook, RTF, groff man pages, and S5 HTML slide shows. + +homepage http://sophos.berkeley.edu/pandoc/ +platforms darwin +master_sites http://pandoc.googlecode.com/files/ +checksums md5 @TARBALLMD5SUM@ +depends_lib port:ghc + +configure {} +build.cmd PREFIX=${prefix} make + -- cgit v1.2.3