source: trunk/dports/tex/bibutils/Portfile

Last change on this file was 141663, checked in by ryandesign@…, 2 years ago

bibutils: fix homepage and master_sites (#49451)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 141663 2015-10-26 03:24:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                bibutils
7version             4.12
8revision            1
9categories          tex
10maintainers         openmaintainer jochen
11license             GPL
12description         bibliography conversion utilities
13long_description    The bibutils program set interconverts between various \
14                    bibliography formats using a common MODS-format XML \
15                    intermediate. For example, one can convert RIS-format files \
16                    to Bibtex by doing two transformations: RIS->MODS->Bibtex. \
17                    By using a common intermediate for N formats, only 2N \
18                    programs are required and not N²-N. These programs operate \
19                    on the command line and are styled after standard UNIX-like \
20                    filters.
21
22platforms           darwin
23master_sites        sourceforge:project/bibutils
24homepage            http://sourceforge.net/projects/bibutils/
25distname            bibutils_${version}
26extract.suffix      _src.tgz
27checksums           md5     395f46393eca8e184652c5e8e1ae83b6 \
28                    sha1    027be11cbad8261d0a6fc1056010480b23385ba2 \
29                    rmd160  fdd162cdea2f6ea88f317dd246208e8e770f13f2
30
31configure {
32    file delete ${worksrcpath}/Makefile ${worksrcpath}/lib/Makefile ${worksrcpath}/bin/Makefile
33    file copy ${worksrcpath}/bin/Makefile.static ${worksrcpath}/bin/Makefile
34    file copy ${worksrcpath}/lib/Makefile.static ${worksrcpath}/lib/Makefile
35    file copy ${worksrcpath}/Makefile_start ${worksrcpath}/Makefile
36    if {[variant_isset "universal"]} {
37        set CFLAGS "${configure.cflags} ${configure.universal_cflags}"
38    } else {
39        set CFLAGS "${configure.cflags} ${configure.cc_archflags}"
40    }
41    reinplace "s|REPLACE_CC|CC=\"${configure.cc} ${CFLAGS}\"|" ${worksrcpath}/Makefile
42    reinplace "s|REPLACE_RANLIB|RANLIB=\"ranlib -s\"|" ${worksrcpath}/Makefile
43    reinplace "s|REPLACE_INSTALLDIR|${destroot}${prefix}/bin|" ${worksrcpath}/Makefile
44    reinplace "s|REPLACE_LIBINSTALLDIR|${destroot}${prefix}/lib|" ${worksrcpath}/Makefile
45    reinplace "s|REPLACE_POSTFIX|_osx|" ${worksrcpath}/Makefile
46}
Note: See TracBrowser for help on using the repository browser.