# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= xmlto VERSION= 0.0.29 REVISION= 1 KEYWORDS= textproc VARIANTS= std SDESC[std]= Front-end to an XSL toolchain HOMEPAGE= https://pagure.io/xmlto/ CONTACT= nobody DOWNLOAD_GROUPS= main xsl SITES[main]= https://www.pagure.io/xmlto/archive/0.0.29/ SITES[xsl]= https://raw.githubusercontent.com/jeffrafter/xhtml2fo/master/ DISTFILE[1]= xmlto-0.0.29.tar.gz:main DISTFILE[2]= xhtml2fo.xsl:xsl DIST_SUBDIR= xmlto-2020 DF_INDEX= 1 2 SPKGS[std]= set primary man OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= libpaper:dev:std BUILDRUN_DEPENDS= getopt:primary:std libpaper:primary:std w3m:primary:std docbook-xsl:primary:std docbook-xml:single:std bash:primary:std USES= gmake autoreconf GNOME_COMPONENTS= libxslt EXTRACT_ONLY= 1 FPC_EQUIVALENT= textproc/xmlto MUST_CONFIGURE= gnu CONFIGURE_ARGS= BASH={{SH}} GETOPT={{LOCALBASE}}/bin/getopt PDFXMLTEX={{LOCALBASE}}/bin/pdftex MAKE_ENV= HOME=/dev/null SUB_FILES= messages-single.ucl SUB_LIST= DATADIR={{LOCALBASE}}/share/xmlto post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/xmlto ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/xhtml2fo.xsl \ ${STAGEDIR}${PREFIX}/share/xmlto pre-configure: # get rid of nonstandard "type" option -t: ${SED} -i'' -e 's/type -t/which/;' \ ${WRKSRC}/format/docbook/epub \ ${WRKSRC}/format/docbook/txt \ ${WRKSRC}/format/fo/dvi \ ${WRKSRC}/format/fo/pdf \ ${WRKSRC}/format/xhtml1/txt # Fix schema url ${SED} -i'' -e 's|http://docbook.sourceforge.net/release/xsl/current|file://${LOCALBASE}/share/xsl/docbook|g' \ ${WRKSRC}/format/docbook/* ${WRKSRC}/xmlto.in [FILE:458:descriptions/desc.primary] xmlto is a front-end to an XSL toolchain. It chooses an appropriate stylesheet for the conversion you want and applies it using an external XSL-T processor. It also performs any necessary post-processing. Supported conversions from DocBook XML: dvi, fo, html, html-nochunks, htmlhelp, javahelp, man, pdf, ps, txt, xhtml, xhtml-nochunks. Currently the only XSL-T processor supported is xsltproc. For DVI, PDF and PostScript output, PassiveTeX is required. [FILE:211:distinfo] 40504db68718385a4eaa9154a28f59e51e59d006d1aa14f5bc9d6fded1d6017a 64619 xmlto-2020/xmlto-0.0.29.tar.gz 41632e8abb68ab62aa4da2df2c11023bbc1395c382a4ad07e1f30d750fed750c 69261 xmlto-2020/xhtml2fo.xsl [FILE:335:manifests/plist.primary] bin/ xmlif xmlto share/xmlto/ xhtml2fo.xsl xmlto.mak share/xmlto/format/docbook/ awt dvi epub fo html html-nochunks htmlhelp javahelp man mif pcl pdf ps svg txt xhtml xhtml-nochunks share/xmlto/format/fo/ awt dvi mif pcl pdf ps svg txt share/xmlto/format/xhtml1/ awt dvi fo mif pcl pdf ps svg txt [FILE:34:manifests/plist.man] share/man/man1/ xmlif.1 xmlto.1 [FILE:662:patches/patch-xmlif_xmlif.c] --- xmlif/xmlif.c.orig 2024-06-11 18:42:54 UTC +++ xmlif/xmlif.c @@ -1300,7 +1300,7 @@ static void process_else() #define INITIAL 0 #define attrib 1 -#define val 2 +#define unique_val 2 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way @@ -1597,7 +1597,7 @@ YY_RULE_SETUP case 8: YY_RULE_SETUP #line 218 "xmlif/xmlif.l" -{BEGIN(val);} +{BEGIN(unique_val);} YY_BREAK case 9: YY_RULE_SETUP @@ -1639,7 +1639,7 @@ ECHO; #line 1639 "xmlif/xmlif.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(attrib): -case YY_STATE_EOF(val): +case YY_STATE_EOF(unique_val): yyterminate(); case YY_END_OF_BUFFER: [FILE:1209:patches/patch-xmlto.in] This patch makes sure that w3m or others will not pollute $HOME/ Avoid pointless bashisms. Avoid use of non POSIX local builtin. --- xmlto.in.orig 2015-11-16 14:07:10 UTC +++ xmlto.in @@ -78,13 +78,15 @@ EOF # * Remembers the temporary file's name so it can be deleted on exit # * If the failure message is empty or missing, exits on failure make_temp () { - local dirflag="" prefix="@PACKAGE@" + dirflag="" prefix="@PACKAGE@" [ "$1" = "-d" ] && { dirflag="-d"; shift; } [ -n "$1" ] && prefix="@PACKAGE@-$1" - if eval $2='$(${MKTEMP} $dirflag "${TMPDIR:-/tmp}/${prefix}.XXXXXX")' + tmpnam=$(${MKTEMP} $dirflag "${TMPDIR:-/tmp}/${prefix}.XXXXXX") + if [ $? = 0 ] then - CLEANFILES="$CLEANFILES ${!2}" + eval $2="$tmpnam" + CLEANFILES="$CLEANFILES $tmpnam" return 0 elif [ -z "$3" ] then @@ -97,7 +99,7 @@ make_temp () { } compute_searchpath () { - local oldIFS="${IFS}" + oldIFS="${IFS}" IFS=":" for asearchpath in "$1"; do # wrangle relative paths into absolute ones so that the user @@ -651,4 +653,6 @@ then # Extremely verbose BASH="${BASH} -x" fi +make_temp -d temphome HOME || exit 1 +export HOME ${BASH} "$FORMAT" post-process || exit 1 [FILE:412:files/messages-single.ucl.in] single: { type: "install" message: < under "Stylesheet for XHTML to XSL-FO transformation" EOM }