Ticket #32149: Portfile.2

File Portfile.2, 2.9 KB (added by vishketan@…, 13 years ago)

Updated to fix comments and suggestions.

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
5
6name                bbdb
7version             2.35
8categories          www
9maintainers         yahoo.com:vishketan
10platforms           darwin
11supported_archs     noarch
12
13description         The Insidious Big Brother Database
14long_description    \
15    The Insidious Big Brother Database (BBDB) is a contact management utility. \
16    It is tightly integrated with several mail and news readers,\
17    allowing it to create database entries directly from mail and news \
18    messages. As is usual with applications for Emacs, this record \
19    creation can be configured in many ways, ranging from a boolean \
20    create\/don't create setting to creation based on the result of a \
21    user-supplied function.\
22    \
23    Database records can be used to store many types of information,\
24    from name and address to URLs and X-Face images. This information can\
25    be displayed when a message from an entity named in a database record\
26    is recieved. In addition, messages from database members can be tagged\
27    in the Gnus Summary Buffer, and Gnus scoring can be configured based\
28    on the contents of database records. Supercite citations can even be\
29    preset through the use of records in the BBDB.\
30   
31
32homepage            http://bbdb.sourceforge.net/
33master_sites        sourceforge
34
35depends_lib         port:emacs
36
37depends_build       port:texinfo
38
39checksums           md5 5c4e7f2b2a6a8e25ff77351f533f3910\
40                    sha1 7524dd2b3951b4635c606e673c97b85c9cf0621c\
41                    rmd160 efa04f4ea1428f591bd20738f8c7d0c5f3a919e8
42
43configure.pre_args      --prefix=${destroot}${prefix}
44configure.args          --infodir=${destroot}${prefix}/share/info
45
46variant emacs_app description "If your Emacs is emacs-app" {
47    depends_lib-append  port:emacs-app
48    depends_lib-delete  port:emacs
49    configure.args-append   --with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs
50}
51
52use_parallel_build no
53
54destroot {
55    xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name} 
56    eval xinstall -m 644 [glob ${worksrcpath}/lisp/*.el*] \
57        ${destroot}${prefix}/share/emacs/site-lisp/${name}
58   
59    eval xinstall -m 644 [glob ${worksrcpath}/texinfo/*.info*] \
60        ${destroot}${prefix}/share/info/
61   
62    # Need to set TeX search path
63    eval xinstall -m 644 [glob ${worksrcpath}/tex/*.tex] \
64        ${destroot}${prefix}/share/emacs/site-lisp/${name}
65}
66
67post-activate   { 
68    system "${prefix}/bin/install-info ${prefix}/share/info/bbdb.info ${prefix}/share/info/dir"
69   
70    notes "To use bbdb, put the following in your ~/.emacs:"
71    notes "(require 'bbdb)"
72    notes "(bbdb-initialize)"
73    notes ""
74    notes "Then you can use bbdb by typing M-x bbdb"
75    notes ""
76}
77
78pre-deactivate  { 
79    system "${prefix}/bin/install-info --delete ${prefix}/share/info/bbdb.info ${prefix}/share/info/dir"
80}