source: trunk/dports/editors/po-mode.el/Portfile

Last change on this file was 118346, checked in by macsforever2000@…, 3 years ago

po-mode.el: Remove emacs from categories because no other port uses that. (#37890)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 118346 2014-03-31 17:22:05Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            po-mode.el
7version         0.17
8categories      editors devel
9license         GPL-2+
10maintainers     nomaintainer
11platforms       darwin
12supported_archs noarch
13
14description     The 'po' file mode for Emacs
15
16long_description \
17    $description
18
19homepage        http://www.gnu.org/software/gettext/
20master_sites    gnu
21dist_subdir     gettext
22distname        gettext-$version
23
24checksums \
25    md5 58a2bc6d39c0ba57823034d55d65d606 \
26    sha1 c51803d9f745f6ace36bd09c0486d5735ce399cf \
27    rmd160 36df9d4ad2848ec26729781e0d7e25b419e7d261
28
29extract.post_args-append    $distname/gettext-tools/misc
30
31depends_lib \
32    port:emacs
33
34worksrcdir      $distname/gettext-tools/misc
35
36use_configure   no
37
38build {
39    foreach lisp [glob -tails -directory $worksrcpath/ *.el] {
40        system "cd ${worksrcpath} && \
41            emacs --batch --eval \
42                '(progn (setq load-path (cons \".\" load-path)) \
43                    (byte-compile-file \"$lisp\"))'"
44    }
45}
46
47destroot {
48    set lispdir $prefix/share/emacs/site-lisp
49
50    xinstall -d $destroot$lispdir
51    eval xinstall -m 644 [glob -directory $worksrcpath/ *.el*] \
52        $destroot$lispdir
53}
54
55livecheck.type  regex
56livecheck.url   http://ftp.gnu.org/gnu/gettext/?C=M&O=D
57livecheck.regex {gettext-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.