[19780] trunk/dports/print/pTeX/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 29 21:18:32 PDT 2006
Revision: 19780
http://trac.macosforge.org/projects/macports/changeset/19780
Author: takanori at macports.org
Date: 2006-09-29 21:18:32 -0700 (Fri, 29 Sep 2006)
Log Message:
-----------
Version bump to ptetex3-20060918.
Some cleanup.
Modified Paths:
--------------
trunk/dports/print/pTeX/Portfile
Property Changed:
----------------
trunk/dports/print/pTeX/Portfile
Modified: trunk/dports/print/pTeX/Portfile
===================================================================
--- trunk/dports/print/pTeX/Portfile 2006-09-30 01:48:42 UTC (rev 19779)
+++ trunk/dports/print/pTeX/Portfile 2006-09-30 04:18:32 UTC (rev 19780)
@@ -1,11 +1,11 @@
-# $Id: Portfile,v 1.12 2006/08/02 01:06:25 takanori Exp $
+# $Id$
PortSystem 1.0
name pTeX
-version 20060726
+version 20060918
epoch ${version}
categories print textproc
-maintainers takanori at opendarwin.org
+maintainers takanori at macports.org
description Japanese TeX (pTeX) processing environment
long_description ${description}
platforms darwin macosx
@@ -32,9 +32,9 @@
tetex-texmf-3.0po.tar.gz md5 ed9d30d9162d16ac8d5065cde6e0f6fa \
sha1 1be97f57a26a6e9b72ebfd932e45914a959aff16 \
rmd160 a1e87733fa3cbef04e39a690ed8549aeaaddb241 \
- ptetex3-${version}.tar.gz md5 f37b90f55ef2525505df694a3c5c6d4a \
- sha1 b8268c009dbf8a86ef18dab0e2b38177983dd1bf \
- rmd160 42dda0a99e6d1aadb8051ada56c35c0ac2454dad
+ ptetex3-${version}.tar.gz md5 2ce99a48fc86ba1dca7942c8872cf2dc \
+ sha1 76a8326224db8acd17e530881973d0503db3c90c \
+ rmd160 56edb3efaaf5b833c1b4e4dba7bb560ba85e764d
default_variants +hiragino +otf
@@ -47,46 +47,35 @@
port:jpeg \
port:libiconv \
port:libpng \
+ port:t1lib \
port:zlib
-depends_build port:nkf
+depends_build bin:bash:bash \
+ port:nkf
depends_run port:texi2html \
port:texinfo
extract.only ptetex3-${version}.tar.gz
worksrcdir ptetex3-${version}
-configure.args --without-texinfo --without-texi2html --with-system-gd --with-system-zlib --with-system-pnglib --with-system-ncurses --with-xdvi-x-toolkit=motif
+configure.args --without-texinfo --without-texi2html --with-system-gd --with-system-zlib --with-system-pnglib --with-system-ncurses --with-system-t1lib --with-xdvi-x-toolkit=motif
configure {
- system "echo SRC_DIR=${distpath} >> ${worksrcpath}/my_option"
- system "echo REAL_PREFIX=${prefix} >> ${worksrcpath}/my_option"
- system "echo REAL_DATA=${prefix}/share >> ${worksrcpath}/my_option"
- system "echo CONF_OPTION=\\\"\\\$CONF_OPTION ${configure.args}\\\" >> ${worksrcpath}/my_option"
-
- system "echo CPPFLAGS=\\\"-I${prefix}/include\\\" >> ${worksrcpath}/my_option"
- system "echo LDFLAGS=\\\"-L${prefix}/lib\\\" >> ${worksrcpath}/my_option"
- system "echo LD_LIBRARY_PATH=\\\"\\\$LD_LIBRARY_PATH:${prefix}/lib\\\" >> ${worksrcpath}/my_option"
- system "echo export CPPFLAGS LDFLAGS LD_LIBRARY_PATH >> ${worksrcpath}/my_option"
-}
-
-pre-build {
- if {[variant_isset macosx]} {
- # make sure to use Hiragino fonts.
- set SystemLibraryFontsDir /System/Library/Fonts
- set FontList { "ヒラギノ角ゴ Pro W3.otf"
- "ヒラギノ角ゴ Pro W6.otf"
- "ヒラギノ角ゴ Std W8.otf"
- "ヒラギノ丸ゴ Pro W4.otf"
- "ヒラギノ明朝 Pro W3.otf"
- "ヒラギノ明朝 Pro W6.otf" }
- foreach f ${FontList} {
- if {![file exists ${SystemLibraryFontsDir}/${f}]} {
- ui_msg "Please place \"${f}\" in ${SystemLibraryFontsDir} and restart the build."
- exit 1
- }
- }
+ set fd [open [file join ${worksrcpath} my_option] w 0644]
+ puts ${fd} "SRC_DIR=${distpath}"
+ puts ${fd} "REAL_PREFIX=${prefix}"
+ puts ${fd} "REAL_DATA=${prefix}/share"
+ puts ${fd} "CONF_OPTION=\"\$CONF_OPTION ${configure.args}\""
+ if {[variant_isset sjis]} {
+ puts ${fd} "KANJI_CODE=SJIS"
+ } elseif {[variant_isset utf8]} {
+ puts ${fd} "KANJI_CODE=UTF8"
} else {
- # perhaps works but not recommended.
+ puts ${fd} "KANJI_CODE=EUC"
}
+ puts ${fd} "CPPFLAGS=\"-I${prefix}/include\""
+ puts ${fd} "LDFLAGS=\"-L${prefix}/lib\""
+ puts ${fd} "LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH:${prefix}/lib\""
+ puts ${fd} "export CPPFLAGS LDFLAGS LD_LIBRARY_PATH"
+ close ${fd}
}
build {
@@ -102,13 +91,18 @@
system "cd ${worksrcpath} && make PREFIX=${workpath}/temp fonty"
}
+test.run yes
+test {
+ system "cd ${worksrcpath} && make PREFIX=${workpath}/temp test"
+}
+
destroot {
system "cp -R ${workpath}/temp/teTeX/ ${destroot}${prefix}"
- file delete ${destroot}${prefix}/info/dir
- file delete ${destroot}${prefix}/share/info
+ delete ${destroot}${prefix}/info/dir
+ delete ${destroot}${prefix}/share/info
file rename ${destroot}${prefix}/info ${destroot}${prefix}/share/info
- file delete -force ${destroot}${prefix}/share/man
+ delete ${destroot}${prefix}/share/man
file rename ${destroot}${prefix}/man ${destroot}${prefix}/share/man
if {[variant_isset hiragino]} {
@@ -126,10 +120,8 @@
}
post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/ptetex3
- foreach f {ChangeLog LICENSE README*} {
- eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/ptetex3
- }
+ file mkdir ${destroot}${prefix}/share/doc
+ system "ln -sf ../texmf/doc/ptetex ${destroot}${prefix}/share/doc/ptetex3"
}
post-activate {
@@ -149,15 +141,9 @@
#Use babel
variant babel {}
-variant euc conflicts sjis utf8 {
- pre-configure { system "echo KANJI_CODE=EUC >> ${worksrcpath}/my_option" }
-}
-variant sjis conflicts euc utf8 {
- pre-configure { system "echo KANJI_CODE=SJIS >> ${worksrcpath}/my_option" }
-}
-variant utf8 conflicts euc sjis {
- pre-configure { system "echo KANJI_CODE=UTF8 >> ${worksrcpath}/my_option" }
-}
+variant euc conflicts sjis utf8 {}
+variant sjis conflicts euc utf8 {}
+variant utf8 conflicts euc sjis {}
variant nox11 conflicts motif xaw xaw3d nextaw {
depends_lib-delete lib:libX11:XFree86 lib:libXm:openmotif port:gd2 port:jpeg port:libiconv
@@ -186,3 +172,7 @@
}
platform macosx {}
+
+livecheck.check regex
+livecheck.url http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/?N=D
+livecheck.regex ptetex3-(\[0-9\]+)\\\.tar
Property changes on: trunk/dports/print/pTeX/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060929/074576b8/attachment.html
More information about the macports-changes
mailing list