summaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-09 10:36:01 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-09 10:36:01 +0800
commit6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf (patch)
tree15c67a48fd13ed3498a99f58e4961b3ec7dfb6d0 /textproc
parent5a88e3a37e1d7ac46cb98066cd8c96340a76e1b9 (diff)
downloadmarcuscom-ports-6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf.tar
marcuscom-ports-6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf.tar.gz
marcuscom-ports-6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf.tar.bz2
marcuscom-ports-6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf.tar.lz
marcuscom-ports-6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf.tar.xz
marcuscom-ports-6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf.tar.zst
marcuscom-ports-6fbe0fe16ab5aa14fa7389317b9875b6c3a22ecf.zip
Correct a number of sed expressions such that they work on FreeBSD.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4431 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc')
-rw-r--r--textproc/gnome-doc-utils/Makefile1
-rw-r--r--textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make53
-rw-r--r--textproc/gnomedocutils/Makefile1
-rw-r--r--textproc/gnomedocutils/files/patch-gnome-doc-utils.make53
4 files changed, 108 insertions, 0 deletions
diff --git a/textproc/gnome-doc-utils/Makefile b/textproc/gnome-doc-utils/Makefile
index d149d54ef..91ddc49ec 100644
--- a/textproc/gnome-doc-utils/Makefile
+++ b/textproc/gnome-doc-utils/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomedocutils
PORTVERSION= 0.3.2
+PORTREVISION= 1
CATEGORIES= textproc gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-doc-utils/0.3
diff --git a/textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make b/textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make
new file mode 100644
index 000000000..b25e207fa
--- /dev/null
+++ b/textproc/gnome-doc-utils/files/patch-gnome-doc-utils.make
@@ -0,0 +1,53 @@
+--- gnome-doc-utils.make.orig Mon Aug 8 22:28:23 2005
++++ gnome-doc-utils.make Mon Aug 8 22:33:07 2005
+@@ -35,19 +35,19 @@
+ @rm -f $@.tmp; touch $@.tmp;
+ echo 'const gchar* documentation_credits[] = {' >> $@.tmp
+ for doc in $(DOC_H_DOCS); do \
+- xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`"; \
++ xmlpath="`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`:$(srcdir)/`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`"; \
+ if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
+ xsltproc --path "$$xmlpath" $(_credits) $$doc; \
+ done | sort | uniq \
+ | awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
+- | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
++ | sed -E -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/(.*)/\t"\1",/' >> $@.tmp
+ echo ' NULL' >> $@.tmp
+ echo '};' >> $@.tmp
+ echo >> $@.tmp
+ for doc in $(DOC_H_DOCS); do \
+- xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`"; \
++ xmlpath="`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`:$(srcdir)/`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`"; \
+ if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
+- docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
++ docid=`echo "$$doc" | sed -E -e 's/.*\/([^/]*)\.xml/\1/' \
+ | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
+ echo $$xmlpath; \
+ ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
+@@ -194,7 +194,7 @@
+ --stringparam db2omf.format $(3) \
+ --stringparam db2omf.dtd \
+ $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
+- | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
++ | sed -E -e 's/.*PUBLIC (\"[^\"]*\").*/\1/') \
+ --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
+ --stringparam db2omf.omf_dir "$(OMF_DIR)" \
+ --stringparam db2omf.help_dir "$(HELP_DIR)" \
+@@ -586,7 +586,7 @@
+ @for fig in $(_DOC_C_FIGURES) $(_DOC_LC_FIGURES); do \
+ if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$fig"; then \
+- figdir=`echo $$fig | sed -e 's/^\(.*\/\).*\|.*/\1/'`; \
++ figdir=`echo $$fig | sed -E -e 's/^(.*\/).*|.*/\1/'`; \
+ if ! test -d "$(distdir)/$$figdir"; then \
+ echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
+ $(mkinstalldirs) "$(distdir)/$$figdir"; \
+@@ -663,7 +663,7 @@
+ else \
+ figfile="$(srcdir)/C/$$fig"; \
+ fi; \
+- figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*\|.*/\1/'`; \
++ figdir="$$lc/"`echo $$fig | sed -E -e 's/^(.*\/).*|.*/\1/'`; \
+ figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
+ if ! test -d "$$figdir"; then \
+ echo "$(mkinstalldirs) $$figdir"; \
diff --git a/textproc/gnomedocutils/Makefile b/textproc/gnomedocutils/Makefile
index d149d54ef..91ddc49ec 100644
--- a/textproc/gnomedocutils/Makefile
+++ b/textproc/gnomedocutils/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomedocutils
PORTVERSION= 0.3.2
+PORTREVISION= 1
CATEGORIES= textproc gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-doc-utils/0.3
diff --git a/textproc/gnomedocutils/files/patch-gnome-doc-utils.make b/textproc/gnomedocutils/files/patch-gnome-doc-utils.make
new file mode 100644
index 000000000..b25e207fa
--- /dev/null
+++ b/textproc/gnomedocutils/files/patch-gnome-doc-utils.make
@@ -0,0 +1,53 @@
+--- gnome-doc-utils.make.orig Mon Aug 8 22:28:23 2005
++++ gnome-doc-utils.make Mon Aug 8 22:33:07 2005
+@@ -35,19 +35,19 @@
+ @rm -f $@.tmp; touch $@.tmp;
+ echo 'const gchar* documentation_credits[] = {' >> $@.tmp
+ for doc in $(DOC_H_DOCS); do \
+- xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`"; \
++ xmlpath="`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`:$(srcdir)/`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`"; \
+ if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
+ xsltproc --path "$$xmlpath" $(_credits) $$doc; \
+ done | sort | uniq \
+ | awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
+- | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
++ | sed -E -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/(.*)/\t"\1",/' >> $@.tmp
+ echo ' NULL' >> $@.tmp
+ echo '};' >> $@.tmp
+ echo >> $@.tmp
+ for doc in $(DOC_H_DOCS); do \
+- xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*\|.*/\1/'`"; \
++ xmlpath="`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`:$(srcdir)/`echo $$doc | sed -E -e 's/^(.*\/).*|.*/\1/'`"; \
+ if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
+- docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
++ docid=`echo "$$doc" | sed -E -e 's/.*\/([^/]*)\.xml/\1/' \
+ | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
+ echo $$xmlpath; \
+ ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
+@@ -194,7 +194,7 @@
+ --stringparam db2omf.format $(3) \
+ --stringparam db2omf.dtd \
+ $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
+- | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
++ | sed -E -e 's/.*PUBLIC (\"[^\"]*\").*/\1/') \
+ --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
+ --stringparam db2omf.omf_dir "$(OMF_DIR)" \
+ --stringparam db2omf.help_dir "$(HELP_DIR)" \
+@@ -586,7 +586,7 @@
+ @for fig in $(_DOC_C_FIGURES) $(_DOC_LC_FIGURES); do \
+ if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$fig"; then \
+- figdir=`echo $$fig | sed -e 's/^\(.*\/\).*\|.*/\1/'`; \
++ figdir=`echo $$fig | sed -E -e 's/^(.*\/).*|.*/\1/'`; \
+ if ! test -d "$(distdir)/$$figdir"; then \
+ echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
+ $(mkinstalldirs) "$(distdir)/$$figdir"; \
+@@ -663,7 +663,7 @@
+ else \
+ figfile="$(srcdir)/C/$$fig"; \
+ fi; \
+- figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*\|.*/\1/'`; \
++ figdir="$$lc/"`echo $$fig | sed -E -e 's/^(.*\/).*|.*/\1/'`; \
+ figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
+ if ! test -d "$$figdir"; then \
+ echo "$(mkinstalldirs) $$figdir"; \