source: trunk/dports/devel/opensync/Portfile

Last change on this file was 85875, checked in by jmr@…, 6 years ago

opensync: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 85875 2011-10-17 05:03:27Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            opensync
6version         0.22
7revision        4
8categories      devel
9license         LGPL-2.1+
10maintainers     nomaintainer
11description     Synchronization framework
12long_description \
13                OpenSync is a synchronization framework that is platform and \
14                distribution independent.  It consists of a powerful sync-engine and \
15                several plugins that can be used to connect to devices. \
16                \
17                OpenSync is very flexible and capable of synchronizing any type of \
18                data, including contacts, calendar, tasks, notes and files.
19platforms       darwin
20homepage        http://www.opensync.org/
21master_sites    ${homepage}download/releases/${version}/
22use_bzip2       yes
23distname        lib${name}-${version}
24patchfiles      patch-configure.diff \
25                patch-wrapper_opensync.i.diff
26checksums       md5 f563ce2543312937a9afb4f8445ef932 \
27                sha1 47860a8c6621aa89fbff2af2517787747af7cc30 \
28                rmd160 a1e9715d037a7c474b80d609e6c96a24cbb6692f
29
30depends_build   path:bin/pkg-config:pkgconfig
31depends_lib     port:gettext \
32                path:lib/pkgconfig/glib-2.0.pc:glib2 \
33                port:libiconv \
34                port:libxml2 \
35                port:py26-gobject \
36                port:py26-numeric \
37                port:python26 \
38                port:sqlite3 \
39                port:swig-python \
40                port:zlib
41
42post-patch {
43    reinplace "s|__PYTHON_PREFIX__|${frameworks_dir}/Python.framework/Versions/2.6|" ${worksrcpath}/configure
44    reinplace "s|__PYTHON_EXEC_PREFIX__|${frameworks_dir}/Python.framework/Versions/2.6|" ${worksrcpath}/configure
45
46    fs-traverse f ${worksrcpath} {
47        if [string match "*/Makefile.in" ${f}] {
48            reinplace "s|-Werror||" ${f}
49        }
50    }
51
52    # unbreak with swig 2.0.0 (quick fix)
53    reinplace "s|1.3.17|2.0.0|" ${worksrcpath}/configure
54}
55
56configure.env   PYTHON=${frameworks_dir}/Python.framework/Versions/2.6/bin/python2.6
57configure.args  --disable-dependency-tracking --enable-python=2.6 --libexecdir=${prefix}/sbin
58
59build.target
60
61post-destroot {
62    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
63    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO ${destroot}${prefix}/share/doc/${name}
64}
Note: See TracBrowser for help on using the repository browser.