Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4f85bd3a40bb9cf4a5e0149a4aeef2acd2b7c97f
commit 4f85bd3a40bb9cf4a5e0149a4aeef2acd2b7c97f Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Wed Nov 7 23:20:49 2007 +0100 asciidoc-8.2.3-2-i686 added patch to fix up a2x-generated pdf files diff --git a/source/apps-extra/asciidoc/FrugalBuild b/source/apps-extra/asciidoc/FrugalBuild index 78af5a5..858c2b3 100644 --- a/source/apps-extra/asciidoc/FrugalBuild +++ b/source/apps-extra/asciidoc/FrugalBuild @@ -3,7 +3,7 @@ pkgname=asciidoc pkgver=8.2.3 -pkgrel=1 +pkgrel=2 pkgdesc="AsciiDoc is a text document format for writing short documents, articles, books and UNIX man pages." url="http://www.methods.co.nz/asciidoc/index.html" depends=() @@ -13,11 +13,14 @@ groups=('apps-extra') archs=('i686' 'x86_64') up2date="lynx -dump http://www.methods.co.nz/asciidoc/downloads.html |Flasttar" source=(http://www.methods.co.nz/asciidoc/asciidoc-$pkgver.tar.gz \ - http://ftp.frugalware.org/pub/other/sources/asciidoc/asciidoc-fonts-0.1.tar.bz2) + http://ftp.frugalware.org/pub/other/sources/asciidoc/asciidoc-fonts-0.1.tar.bz2 \ + a2x-pdf.diff) sha1sums=('c5f245e3cc98fc7785037e27b7002c7f6b071b96' \ - '717779406f876f439ac37c79878f403ecdef3467') + '717779406f876f439ac37c79878f403ecdef3467' \ + 'c235be9105a5cec42d1c19e416b8dc177127017f') build() { + Fpatchall Fmkdir $Fprefix/bin $Fprefix/share/vim Fsed 'BINDIR=/usr/local/bin' "BINDIR=$Fdestdir/$Fprefix/bin" install.sh Fsed 'MANDIR=/usr/local/man' "MANDIR=$Fdestdir/$Fprefix/man" install.sh diff --git a/source/apps-extra/asciidoc/a2x-pdf.diff b/source/apps-extra/asciidoc/a2x-pdf.diff new file mode 100644 index 0000000..cbf745a --- /dev/null +++ b/source/apps-extra/asciidoc/a2x-pdf.diff @@ -0,0 +1,21 @@ +Added 3 small hacks: +* Fix the path of the icon images +* Remove bgcolor, border-right-color and border-bottom-color attributes, they + are not handled by fop +* Handle dejavu fonts +diff -Naur asciidoc-8.2.3.orig/a2x asciidoc-8.2.3/a2x +--- asciidoc-8.2.3.orig/a2x 2007-07-18 10:09:06.000000000 +0200 ++++ asciidoc-8.2.3/a2x 2007-11-07 23:12:33.000000000 +0100 +@@ -513,8 +513,10 @@ + pdf="$DESTINATION_DIR/$SRC_NAME.pdf" + to_docbook + execute_command_2 "xsltproc $XSLTPROC_OPTS --nonet \ +- \"$xsl\" \"$xml\" >\"$fo\"" +- execute_command_2 "fop.sh \"$fo\" \"$pdf\"" ++ \"$xsl\" \"$xml\" \ ++ | sed 's|\(src=\"./images/icons/[^\"]\+\).png\"|\1.jpg\"|g' \ ++ | sed 's/bgcolor=\"[^\"]\+\"//g;s/border-right-color=\"\"//g;s/border-bottom-color=\"\"//g' >\"$fo\"" ++ execute_command_2 "fop.sh -c /usr/share/fop/dejavu-ttf.xml \"$fo\" \"$pdf\"" + } + + function to_odt() _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
