source: trunk/dports/textproc/bibledit/Portfile @ 115137

Last change on this file since 115137 was 115137, checked in by jeremyhu@…, 7 years ago

misc: Rename cxx_stdlib to cxxstdlib to not conflict with the possible setting in macports.conf

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 115137 2013-12-26 02:12:09Z jeremyhu@macports.org $
2
3PortSystem        1.0
4
5name              bibledit
6version           4.8
7categories        textproc
8maintainers       nomaintainer
9platforms         darwin
10
11description       A USFM text editor for Bible translators using Linux and Mac OS X.
12
13long_description  Bibledit is a USFM text editor that works in Linux or Mac OS X \
14                  for Bible translators to create Bible text. It is unique in that \
15                  it is organized in two distinct hierarchies. One, it has sections \
16                  and paragraphs, like any other text. Second, it is made up of \
17                  books that contain chapters that contain verses.
18
19homepage          http://www.nongnu.org/bibledit/
20master_sites      http://download.savannah.gnu.org/releases/bibledit/source/gtk/ \
21                  http://download-mirror.savannah.gnu.org/releases/bibledit/source/gtk/
22
23checksums       md5 e509449e52142757c2c75af124847941 \
24                rmd160 02e628f018d075cc72ff5c2bf8fb0989e2dc63cc
25
26depends_build   port:pkgconfig
27depends_lib     port:gtk2  \
28                port:sqlite3 \
29                port:git-core \
30                port:enchant \
31                port:nspr \
32                port:gtksourceview2 \
33                port:libsoup \
34                path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
35
36distname                        ${name}-gtk-${version}
37worksrcdir                      ${name}-gtk-${version}
38
39# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
40platform darwin {
41    set cxxstdlib {}
42
43    if {[info exists configure.cxx_stdlib] &&
44        ${configure.cxx_stdlib} ne {} &&
45        [string match *clang* ${configure.cxx}]} {
46        set cxxstdlib ${configure.cxx_stdlib}
47    } elseif {[string match *clang* ${configure.cxx}] &&
48              ${os.major} >= 13} {
49        set cxxstdlib libc++
50    } else {
51        set cxxstdlib libstdc++
52    }
53
54    if {${cxxstdlib} eq "libstdc++"} {
55       depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
56       depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
57    }
58}
Note: See TracBrowser for help on using the repository browser.