[34003] trunk/dports/devel
ryandesign at macports.org
ryandesign at macports.org
Sat Feb 9 23:15:09 PST 2008
Revision: 34003
http://trac.macosforge.org/projects/macports/changeset/34003
Author: ryandesign at macports.org
Date: 2008-02-09 23:15:08 -0800 (Sat, 09 Feb 2008)
Log Message:
-----------
noweb: new port! See #14239.
Added Paths:
-----------
trunk/dports/devel/noweb/
trunk/dports/devel/noweb/Portfile
trunk/dports/devel/noweb/files/
trunk/dports/devel/noweb/files/patch-Makefile.diff
Added: trunk/dports/devel/noweb/Portfile
===================================================================
--- trunk/dports/devel/noweb/Portfile (rev 0)
+++ trunk/dports/devel/noweb/Portfile 2008-02-10 07:15:08 UTC (rev 34003)
@@ -0,0 +1,35 @@
+# $Id$
+
+PortSystem 1.0
+
+name noweb
+version 2.11b
+categories devel
+maintainers michael.grunewald at laposte.net
+description A Simple, Extensible Tool for Literate Programming
+long_description Literate programming is the art of preparing programs \
+ for human readers.\
+ noweb is designed to meet the needs of literate \
+ programmers while remaining as simple as possible. \
+ Its primary advantages are simplicity, extensibility, \
+ and language-independence---especially noticeable \
+ when compared with other literate-programming tools.
+homepage http://www.eecs.harvard.edu/nr/noweb/
+platforms darwin
+master_sites ${homepage}dist/
+extract.suffix .tgz
+checksums md5 1df580723497b2f2efde07646abf764c \
+ sha1 3b391c42f46dcb8a002b863fb2e483560a7da51d \
+ rmd160 01e4fbb636dfd0f6d117caa045cf105e49d25fca
+worksrcdir ${name}-${version}/src
+patchfiles patch-Makefile.diff
+
+depends_build port:icon
+depends_run port:icon
+
+use_configure no
+universal_variant no
+
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+}
Property changes on: trunk/dports/devel/noweb/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/devel/noweb/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/noweb/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/noweb/files/patch-Makefile.diff 2008-02-10 07:15:08 UTC (rev 34003)
@@ -0,0 +1,106 @@
+--- Makefile.orig 2008-02-09 10:54:51.000000000 +0100
++++ Makefile 2008-02-09 11:44:23.000000000 +0100
+@@ -6,9 +6,9 @@
+ CFLAGS=
+ # If you have Icon, you should use the Icon versions of the noweb pipeline.
+ # Set LIBSRC=icon
+-LIBSRC=awk
++LIBSRC=icon
+ # If you have no Icon compiler, but do have icont, make ICONC=icont
+-ICONC=iconc
++ICONC=icont
+ ICONT=icont
+
+ # BIN is where the commands (notangle, noweave, nountangle, noroots) land
+@@ -18,13 +18,15 @@
+ # MAN7EXT is the extension for the nowebstyle man page (usually 7)
+ # TEXINPUTS is the directory for TeX macro files
+ # ELISP is the directory for emacs lisp files, or /dev/null not to install
+-BIN=/usr/local/noweb
+-LIB=/usr/local/noweb/lib
+-MAN=/usr/local/noweb/man
++PREFIX?=@PREFIX@
++NOWEBPREFIX=${DESTDIR}${PREFIX}
++BIN=${NOWEBPREFIX}/bin
++LIB=${NOWEBPREFIX}/libexec/noweb
++MAN=${NOWEBPREFIX}/share/man
+ MANEXT=1
+ MAN7EXT=7
+-TEXINPUTS=/usr/local/tex/inputs
+-ELISP=/dev/null
++TEXINPUTS=${NOWEBPREFIX}/share/texmf/tex/generic/noweb
++ELISP=${NOWEBPREFIX}/share/emacs/site-lisp
+
+ # change WEAVE if you want a different version of noweave to be installed
+ WEAVE=noweave
+@@ -39,6 +41,7 @@
+ CAT7DIR=$(MAN)/cat$(MAN7EXT)
+ LIBNAME=$(LIB)
+ TEXNAME=$(TEXINPUTS)
++INSTALLDIR=install -d
+
+ all:
+ cd c; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" all
+@@ -58,7 +61,7 @@
+ -rmdir $(BIN) $(LIB) 2>/dev/null
+
+ install-shell:
+- -mkdir $(BIN) $(LIB) 2>/dev/null
++ -$(INSTALLDIR) $(BIN) $(LIB) 2>/dev/null
+ sed "s@|LIBDIR|@$(LIBNAME)@" shell/noweb > $(BIN)/noweb
+ chmod +x $(BIN)/noweb
+ sed "s@|LIBDIR|@$(LIBNAME)@" shell/notangle > $(BIN)/notangle
+@@ -98,7 +101,7 @@
+ rm $(LIB)/tmac.w
+
+ install-code: install-shell
+- -mkdir $(BIN) $(LIB) 2>/dev/null
++ -$(INSTALLDIR) $(BIN) $(LIB) 2>/dev/null
+ strip c/nt c/markup c/mnt c/finduses
+ cp c/nt c/markup c/mnt c/finduses $(LIB)
+ cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) install
+@@ -109,7 +112,7 @@
+ cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) uninstall
+ cd lib; make LIB=$(LIB) uninstall
+ install-man:
+- -mkdir $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null
++ -$(INSTALLDIR) $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 > $(MANDIR)/cpif.$(MANEXT)
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 > $(MANDIR)/nodefs.$(MANEXT)
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 > $(MANDIR)/noroots.$(MANEXT)
+@@ -142,7 +145,7 @@
+ rm -f $(MANDIR)/noweave.$(MANEXT)
+ rm -f $(MANDIR)/nountangle.$(MANEXT)
+ install-gzipped-man:
+- -mkdir $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null
++ -$(INSTALLDIR) $(MAN) $(MANDIR) $(MAN7DIR) 2>/dev/null
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 | gzip -9 > $(MANDIR)/cpif.$(MANEXT).gz
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.1 | gzip -9 > $(MANDIR)/nodefs.$(MANEXT).gz
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.1 | gzip -9 > $(MANDIR)/noroots.$(MANEXT).gz
+@@ -161,7 +164,7 @@
+ (cd $(MANDIR); ln notangle.$(MANEXT).gz nountangle.$(MANEXT).gz)
+ install-preformat-man:
+ -echo "Warning: install-preformat-man is obsolete, even on Slackware systems" 1>&2
+- -mkdir $(MAN) $(CATDIR) $(CAT7DIR) 2>/dev/null
++ -$(INSTALLDIR) $(MAN) $(CATDIR) $(CAT7DIR) 2>/dev/null
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.txt | gzip > $(CATDIR)/cpif.$(MANEXT).gz
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/nodefs.txt | gzip > $(CATDIR)/nodefs.$(MANEXT).gz
+ sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/noroots.txt | gzip > $(CATDIR)/noroots.$(MANEXT).gz
+@@ -179,7 +182,7 @@
+ rm -f $(CATDIR)/nountangle.$(MANEXT).gz
+ (cd $(CATDIR); ln notangle.$(MANEXT).gz nountangle.$(MANEXT).gz)
+ install-tex:
+- -mkdir $(TEXINPUTS) 2>/dev/null
++ -$(INSTALLDIR) $(TEXINPUTS) 2>/dev/null
+ cp tex/nwmac.tex tex/noweb.sty $(TEXINPUTS)
+ -texhash || echo "Program texhash not found or failed"
+
+@@ -187,7 +190,7 @@
+ rm -f $(TEXINPUTS)/nwmac.tex $(TEXINPUTS)/noweb.sty
+
+ install-elisp:
+- -mkdir $(ELISP) 2>/dev/null
++ -$(INSTALLDIR) $(ELISP) 2>/dev/null
+ cp elisp/noweb-mode.el $(ELISP)
+
+ uninstall-elisp:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080209/505d37b7/attachment-0001.html
More information about the macports-changes
mailing list