Ticket #32139: Portfile

File Portfile, 1.9 KB (added by vishketan@…, 13 years ago)

updated Portfile for emacs-w3m-devel

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5name            emacs-w3m-devel
6version         devel
7categories      www
8maintainers     vishketan
9conflicts   emacs-w3m
10platforms       darwin
11supported_archs noarch
12
13description     Use the w3m web browser inside emacs.
14long_description        \
15                w3m is a pager with WWW capability, developed by        \
16                Akinori ITO. Although it is a pager, it can be used     \
17                as a text-mode WWW browser. emacs-w3m is a simple Emacs \
18                interface to w3m.
19
20homepage    http://emacs-w3m.namazu.org
21master_sites  ${homepage}
22
23fetch.type          git
24git.url             git://github.com/sjatkinson/emacs-w3m.git
25
26depends_lib     port:w3m        \
27    port:emacs
28
29depends_run port:ImageMagick
30
31depends_build path:bin/autoconf:autoconf \
32    path:bin/pkg-config:pkgconfig \
33    port:texinfo
34
35configure.args  --prefix=${destroot}${prefix}           \
36    --with-lispdir=${destroot}${prefix}/share/emacs/site-lisp/${name} \
37    --infodir=${destroot}${prefix}/share/info
38
39variant emacs_app description "If your Emacs is emacs-app" {
40        depends_lib-append      port:emacs-app
41        depends_lib-delete      port:emacs
42        configure.args-append   --with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs
43}
44
45use_autoconf yes
46
47post-activate { 
48    system "${prefix}/bin/install-info ${prefix}/share/info/emacs-w3m.info ${prefix}/share/info/dir"
49    system "${prefix}/bin/install-info ${prefix}/share/info/emacs-w3m-ja.info ${prefix}/share/info/dir"
50
51    ui_msg "To use emacs-w3m, put the following in your ~/.emacs:"
52    ui_msg "(require 'w3m-load)"
53    ui_msg ""
54    ui_msg "Then you can use w3m by typing M-x w3m"
55    ui_msg ""
56}
57
58pre-deactivate { 
59    system "${prefix}/bin/install-info --delete ${prefix}/share/info/emacs-w3m.info ${prefix}/share/info/dir"
60    system "${prefix}/bin/install-info --delete ${prefix}/share/info/emacs-w3m-ja.info ${prefix}/share/info/dir"
61
62}