[82215] trunk/dports/textproc/lookup/Portfile
takanori at macports.org
takanori at macports.org
Wed Aug 10 08:13:56 PDT 2011
Revision: 82215
http://trac.macports.org/changeset/82215
Author: takanori at macports.org
Date: 2011-08-10 08:13:56 -0700 (Wed, 10 Aug 2011)
Log Message:
-----------
lookup:
- version bump to 1.4+media-20110625
- add +with_emacs_app variant
Modified Paths:
--------------
trunk/dports/textproc/lookup/Portfile
Modified: trunk/dports/textproc/lookup/Portfile
===================================================================
--- trunk/dports/textproc/lookup/Portfile 2011-08-10 15:12:28 UTC (rev 82214)
+++ trunk/dports/textproc/lookup/Portfile 2011-08-10 15:13:56 UTC (rev 82215)
@@ -4,7 +4,7 @@
name lookup
set ver_main 1.4
-set ver_media 20110207
+set ver_media 20110625
version ${ver_main}-media-${ver_media}
categories textproc japanese
maintainers nomaintainer
@@ -17,9 +17,9 @@
http://svn.sourceforge.jp/svnroot/macports-jp/distfiles/lookup/:texinfo-jp \
ftp://fsci.fuk.kindai.ac.jp/pub/ptex/utils/:texinfo-jp
distfiles ${name}-${ver_main}+media-${ver_media}${extract.suffix}:lookup
-checksums ${name}-${ver_main}+media-${ver_media}${extract.suffix} md5 ca3549eb336fb22d4ee686ad9f23b66b \
- sha1 6d89a73eb07b04f9be84576875af2f48ddd5e5b9 \
- rmd160 c7a154f3b8dad0cfc4f4f781c011398553df8a45 \
+checksums ${name}-${ver_main}+media-${ver_media}${extract.suffix} md5 2873617afb6b630521543fefcad2837e \
+ sha1 b70a66ff0b045f1e17e23005a27aae135ed79518 \
+ rmd160 965c19d5905c82b61872283b191d11709643ff35 \
texinfo.tex md5 7ca3fd1e1070bc3c169782874283757d \
sha1 c28232842fb669c328fd79954ea288ff7c1aa595 \
rmd160 c5db8b73738942572423eb39dbe21ea91cdd84d2
@@ -67,8 +67,18 @@
universal_variant no
-variant with_carbon_emacs_package description {Use this package with Carbon Emacs Package} {
+variant with_emacs_app conflicts with_carbon_emacs_package description {Use this package with Emacs.app} {
depends_lib-delete path:bin/emacs:emacs
+ depends_lib-append path:${applications_dir}/Emacs.app/Contents/MacOS/Emacs:emacs-app
+ set dir_info ${applications_dir}/Emacs.app/Contents/Resources/info
+ configure.env EMACS=${applications_dir}/Emacs.app/Contents/MacOS/Emacs
+ configure.args --with-lispdir=${applications_dir}/Emacs.app/Contents/Resources/site-lisp/lookup \
+ --infodir=${dir_info}
+ notes-append "Before using lookup with emacs.app, put \"(setq exec-path (cons \"${prefix}/bin\" exec-path))\" in your .emacs"
+}
+
+variant with_carbon_emacs_package conflicts with_emacs_app description {Use this package with Carbon Emacs Package} {
+ depends_lib-delete path:bin/emacs:emacs
set dir_info /Applications/Emacs.app/Contents/Resources/info
configure.env EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs
configure.args --with-lispdir=/Applications/Emacs.app/Contents/Resources/site-lisp/lookup \
@@ -79,6 +89,7 @@
}
}
destroot.violate_mtree yes
+ notes-append "This variant has been deprecated. Please consider using +with_emacs_app instead."
}
variant with_ptex description {Build and install PDF documents using pTeX} {
@@ -92,7 +103,9 @@
reinplace "s|documentlanguage ja|documentlanguage en|" ${worksrcpath}/texi/lookup.texi
}
post-build {
- system "cd ${worksrcpath}/texi && ptex lookup.texi && texindex lookup.?? && ptex lookup.texi && dvipdfmx lookup.dvi"
+ # A little glitch remains in the concept index page
+ # because MacPorts's texinfo isn't jtexinfo (i.e. texinfo with Japanese support.)
+ system "cd ${worksrcpath}/texi && ptex -kanji=utf8 lookup.texi && texindex lookup.?? && ptex -kanji=utf8 lookup.texi && dvipdfmx lookup.dvi"
}
post-destroot {
xinstall -m 644 ${worksrcpath}/texi/lookup.pdf ${destroot}${prefix}/share/doc/${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110810/4346333b/attachment.html>
More information about the macports-changes
mailing list