Ticket #32149: Portfile

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

Portfile for bbdb

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