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 | |
---|
4 | PortSystem 1.0 |
---|
5 | name emacs-w3m-devel |
---|
6 | version devel |
---|
7 | categories www |
---|
8 | maintainers vishketan |
---|
9 | conflicts emacs-w3m |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | |
---|
13 | description Use the w3m web browser inside emacs. |
---|
14 | long_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 | |
---|
20 | homepage http://emacs-w3m.namazu.org |
---|
21 | master_sites ${homepage} |
---|
22 | |
---|
23 | fetch.type git |
---|
24 | git.url git://github.com/sjatkinson/emacs-w3m.git |
---|
25 | |
---|
26 | depends_lib port:w3m \ |
---|
27 | port:emacs |
---|
28 | |
---|
29 | depends_run port:ImageMagick |
---|
30 | |
---|
31 | depends_build path:bin/autoconf:autoconf \ |
---|
32 | path:bin/pkg-config:pkgconfig \ |
---|
33 | port:texinfo |
---|
34 | |
---|
35 | configure.args --prefix=${destroot}${prefix} \ |
---|
36 | --with-lispdir=${destroot}${prefix}/share/emacs/site-lisp/${name} \ |
---|
37 | --infodir=${destroot}${prefix}/share/info |
---|
38 | |
---|
39 | variant 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 | |
---|
45 | use_autoconf yes |
---|
46 | |
---|
47 | post-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 | |
---|
58 | pre-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 | } |
---|