- Update to 2.13.2

- Take maintainership

Approved by:	tabthorpe
This commit is contained in:
Gabor Pali 2009-03-09 16:19:07 +00:00
parent 4f29913ec5
commit 6b5badef77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229760
6 changed files with 172 additions and 55 deletions

View file

@ -6,41 +6,84 @@
#
PORTNAME= yodl
PORTVERSION= 1.31.18
PORTREVISION= 2
PORTVERSION= 2.13.2
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.lilypond.org/pub/yodl/development/ \
http://www.foad.org/zsh/zsh/ \
http://www.zsh.org/pub/GPL/ \
http://mirrors.sunsite.dk/ \
http://www.math.technion.ac.il/pub/zsh/GPL/ \
http://litterbug.lut.ac.uk/zsh/ \
http://ftp.dmz.digex.net/pub/packages/ \
http://linux.sarang.net/ftp/mirror/system/shell/zsh/GPL/
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX= .orig.tar.gz
MAINTAINER= ports@FreeBSD.org
MAINTAINER= pgj@FreeBSD.org
COMMENT= An easy to use but powerful document formatting/preparation language
BUILD_DEPENDS= latex:${PORTSDIR}/print/latex \
dvips:${PORTSDIR}/print/dvips
RUN_DEPENDS= latex:${PORTSDIR}/print/latex \
dvips:${PORTSDIR}/print/dvips
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
getopt:${PORTSDIR}/misc/getopt
BUILD_DEPENDS= icmake:${PORTSDIR}/devel/icmake \
bash:${PORTSDIR}/shells/bash \
gsed:${PORTSDIR}/textproc/gsed
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKEFILE= GNUmakefile
USE_PERL5_BUILD= yes
MAN1= yodl.1 \
striproff.1 \
yodlconverters.1
MAN7= yodlmacros.7 \
yodlmanpage.7
MANCOMPRESSED= no
MAN1= yodl.1 yodlpost.1 yodlconverters.1 yodlverbinsert.1
MAN7= yodlmanpage.7 yodlletter.7 yodlmacros.7 yodlbuiltins.7
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX-base \
dvips:${PORTSDIR}/print/dvipsk-tetex
.endif
post-patch:
@${REINPLACE_CMD} -e "s,tr '.*' '.*',tr '[:lower:]' '[:upper:]'," \
${WRKSRC}/src/yodl/GNUmakefile
@${REINPLACE_CMD} -e 's|"/usr/share/yodl"|"${PREFIX}/share/${PORTNAME}-${PORTVERSION}"| ; \
s|"/usr/bin"|"${PREFIX}/bin"|' \
${WRKSRC}/src/config.h
@${REINPLACE_CMD} -e 's|"/share/yodl"|"/share/yodl-${PORTVERSION}"| ; \
s|"-r"|"-R"| ; \
s|"/share/man"|"/man"| ; \
s|"/share/doc"|"/share/doc/yodl-${PORTVERSION}"| ; \
s|"/share/doc/yodl"|"/share/doc/yodl-${PORTVERSION}"|' \
${WRKSRC}/build
@${REINPLACE_CMD} -e 's|#!/usr/bin/icmake|#!${LOCALBASE}/bin/icmake|' \
${WRKSRC}/build \
${WRKSRC}/src/build \
${WRKSRC}/src/yodlpost/build \
${WRKSRC}/src/yodl/build \
${WRKSRC}/manual/build \
${WRKSRC}/man/build \
${WRKSRC}/macros/build
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!${LOCALBASE}/bin/bash| ; \
s|sed |${LOCALBASE}/bin/gsed | ; \
s|getopt |${LOCALBASE}/bin/getopt |' \
${WRKSRC}/src/yodl/replace \
${WRKSRC}/scripts/yodl2whatever.in \
${WRKSRC}/scripts/configreplacements \
${WRKSRC}/macros/rawmacros/separator \
${WRKSRC}/macros/rawmacros/keepdiff \
${WRKSRC}/macros/rawmacros/repairs \
${WRKSRC}/macros/rawmacros/startdoc \
${WRKSRC}/macros/rawmacros/makeyoin \
${WRKSRC}/macros/rawmacros/create
@${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!${PERL}|' \
${WRKSRC}/macros/rawmacros/separator.pl \
${WRKSRC}/macros/rawmacros/startdoc.pl \
${WRKSRC}/contrib/build.pl
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/out/striproff ${PREFIX}/bin
do-build:
@cd ${WRKSRC} && ./build package
.if !defined(NOPORTDOCS)
@cd ${WRKSRC} && ./build doc
.endif
do-install:
@cd ${WRKSRC} && ./build install ${PREFIX}
.if !defined(NOPORTDOCS)
@cd ${WRKSRC} && ./build install_doc ${PREFIX}
.endif
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
MD5 (yodl-1.31.18.tar.gz) = 247c5bf178baeb1f0b96511323f30a61
SHA256 (yodl-1.31.18.tar.gz) = 84bf33b538a791cd20e329fb2d49bc59d125922bf0b5ac6ecc42dacc05c5a967
SIZE (yodl-1.31.18.tar.gz) = 320053
MD5 (yodl_2.13.2.orig.tar.gz) = a35444c0d8a9c7ad347e7f02084b14e6
SHA256 (yodl_2.13.2.orig.tar.gz) = 43769a61af123e16225ab85bff0074309895f105eae344ca1dfe08b751f7ff1f
SIZE (yodl_2.13.2.orig.tar.gz) = 700081

View file

@ -0,0 +1,43 @@
--- build.orig 2007-02-12 20:01:56.000000000 +0100
+++ build 2009-03-04 19:27:30.000000000 +0100
@@ -28,11 +28,15 @@
buildIn("macros", "std", ""); // and the std conversions
buildIn("manual", "docmacros", "");// macrolist for the manual
- buildIn("manual", "manual", ""); // create the manual
buildIn("man", "man", ""); // create the manpages
}
+void doc()
+{
+ buildIn("manual", "manual", ""); // create the manual
+}
+
void install(string where)
{
system("mkdir -p " + where);
@@ -40,6 +44,10 @@
buildIn("src", "install", where + "/bin");
buildIn("macros", "install", where + "/share/yodl");
buildIn("man", "install", where + "/share/man");
+}
+
+void install_doc(string where)
+{
buildIn("manual", "install", where + "/share/doc");
exec("cp", "-r",
@@ -74,8 +82,12 @@
cleanup();
else if (arg1 == "install")
install(element(2, argv));
+ else if (arg1 == "install_doc")
+ install_doc(element(2, argv));
else if (arg1 == "package")
package();
+ else if (arg1 == "doc")
+ doc();
else
{
printf("request `", arg1, "' not yet available\n");

View file

@ -1,12 +0,0 @@
--- src/lib/lib.h.orig Wed Jul 31 23:08:06 2002
+++ src/lib/lib.h Wed Jul 31 23:08:35 2002
@@ -16,7 +16,7 @@
#if HAVE_MALLOC_H
# include <malloc.h>
-#elif defined STDC_HEADERS
+#elif defined STDC_HEADERS && !defined __FreeBSD__
extern void free PARAMS ((char *));
extern char *malloc PARAMS ((int));
extern char *realloc PARAMS ((char*, int));
--- patch-src.lib.lib.h ends here ---

View file

@ -1,6 +1,6 @@
YODL - Yet Oneother Document Language, an easy to use but powerful document
preparation language with converters for ASCII, man, latex, SGML, and HTML.
YODL - Your Own Document Language, an easy to use but powerful document
preparation language with converters for ASCII, man, latex, XML, and HTML.
YODL implements an easy-to-use, yet powerful document preparation language.
It also includes converters to convert documents written in that language to
several formats, including ASCII, man page format, LaTeX, dvi, SGML, and HTML.
several formats, including ASCII, man page format, LaTeX, dvi, XML, and HTML.

View file

@ -1,13 +1,56 @@
@comment $FreeBSD$
bin/yodl
bin/yodl2whatever
bin/yodl2dvi
bin/yodl2manless
bin/yodl2msless
bin/yodl2msps
bin/yodl2tex
bin/yodl2html
bin/yodl2sgml
bin/yodl2txt
bin/yodl2latex
bin/yodl2man
bin/yodl2ms
bin/striproff
bin/yodl2txt
bin/yodl2whatever
bin/yodl2xml
bin/yodlpost
bin/yodlverbinsert
man/man1/yodl2html.1.gz
man/man1/yodl2latex.1.gz
man/man1/yodl2man.1.gz
man/man1/yodl2txt.1.gz
man/man1/yodl2whatever.1.gz
man/man1/yodl2xml.1.gz
share/yodl-%%PORTVERSION%%/chartables/html.tables.yo
share/yodl-%%PORTVERSION%%/chartables/latex.tables.yo
share/yodl-%%PORTVERSION%%/chartables/latex2.tables.yo
share/yodl-%%PORTVERSION%%/chartables/man.tables.yo
share/yodl-%%PORTVERSION%%/chartables/sgml.tables.yo
share/yodl-%%PORTVERSION%%/chartables/shell.tables.yo
share/yodl-%%PORTVERSION%%/chartables/texinfo.tables.yo
share/yodl-%%PORTVERSION%%/chartables/txt.tables.yo
share/yodl-%%PORTVERSION%%/chartables/xml.tables.yo
share/yodl-%%PORTVERSION%%/xml/rug-articlebegin.xml
share/yodl-%%PORTVERSION%%/xml/rug-articleendtitle.xml
share/yodl-%%PORTVERSION%%/xml/rug-articlesummary.xml
share/yodl-%%PORTVERSION%%/xml/rug-menubegin.xml
share/yodl-%%PORTVERSION%%/xml/rug-menuend.xml
share/yodl-%%PORTVERSION%%/xml/rug-menuendtitle.xml
share/yodl-%%PORTVERSION%%/xml/rug-xhtmlbegin.xml
share/yodl-%%PORTVERSION%%/xml/rug-xhtmlend.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-articlebegin.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-articleendtitle.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-articlesummary.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-menubegin.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-menuend.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-menuendtitle.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-xhtmlbegin.xml
share/yodl-%%PORTVERSION%%/xml/rug-nl-xhtmlend.xml
share/yodl-%%PORTVERSION%%/html.yo
share/yodl-%%PORTVERSION%%/latex.yo
share/yodl-%%PORTVERSION%%/man.yo
share/yodl-%%PORTVERSION%%/std.html.yo
share/yodl-%%PORTVERSION%%/std.latex.yo
share/yodl-%%PORTVERSION%%/std.man.yo
share/yodl-%%PORTVERSION%%/std.txt.yo
share/yodl-%%PORTVERSION%%/std.xml.yo
share/yodl-%%PORTVERSION%%/txt.yo
share/yodl-%%PORTVERSION%%/xlatin1.tex
share/yodl-%%PORTVERSION%%/xml.yo
share/yodl-%%PORTVERSION%%/yodlversion.yo
@dirrm share/yodl-%%PORTVERSION%%/chartables
@dirrm share/yodl-%%PORTVERSION%%/xml
@dirrm share/yodl-%%PORTVERSION%%