source: trunk/dports/gnustep/Etoile/Portfile @ 26328

Last change on this file since 26328 was 26328, checked in by yves@…, 13 years ago

Add a devel variant to keep the unstable stuff out of the stable (Oh boy !)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Portfile 26328 2007-06-19 21:17:05Z yves@macports.org $
2
3PortSystem  1.0
4PortGroup   gnustep 1.0
5
6name            Etoile
7version         0.1.9
8revision        1
9platforms       darwin
10maintainers     yves@macports.org
11homepage        http://www.etoile-project.org/
12
13description     GNUstep based user environnement
14long_description \
15    Etoile intends to be an innovative GNUstep-based user environment \
16    built from the ground up on highly modular and light components \
17    with project and document orientation in mind.
18   
19fetch.type      svn
20svn.tag         1993
21svn.url         http://svn.gna.org/svn/etoile/stable/Etoile
22
23####################### DEVELOPMENT FETCH ##############################
24#fetch {
25#    file copy ${portpath}/Etoile ${workpath}
26#}
27########################################################################
28
29depends_build       bin:svn:subversion
30depends_lib         port:SQLClient \
31                    port:dbus \
32                    port:oniguruma5 \
33                    port:poppler
34
35worksrcdir          ${name}
36
37patchfiles          patch-etoile.make \
38                    patch-PopplerKit-GNUmakefile \
39                    patch-PopplerKit-config.sh \
40                    patch-xmpp-GNUmakefile \
41                    patch-AddressManager-GNUmakefile
42
43array set gnustep.post_flags {
44    Frameworks/AddressesKit/Frameworks/AddressView  -lAddresses
45    Frameworks/BookmarkKit                          -lCollectionKit
46    Frameworks/SystemConfig                         -lX11
47}
48
49post-patch {
50    reinplace "s|SCSound.m||" \
51        ${worksrcpath}/Frameworks/SystemConfig/Source/GNUmakefile
52    reinplace "s|/usr|${prefix}|g" \
53        ${worksrcpath}/Services/Private/System/GNUmakefile
54    reinplace "s|\$(GNUSTEP_INSTALLATION_DIR)|${destroot}${prefix}/GNUstep/Local|g" \
55                Services/User/Grr/Components/ArticleOperations/GNUmakefile \
56                Services/User/Grr/Components/ArticleTable/GNUmakefile \
57                Services/User/Grr/Components/ArticleView/GNUmakefile \
58                Services/User/Grr/Components/DatabaseOperations/GNUmakefile \
59                Services/User/Grr/Components/DatabaseTreeView/GNUmakefile \
60                Services/User/Grr/Components/Fonts/GNUmakefile \
61                Services/User/Grr/Components/Proxy/GNUmakefile \
62                Services/User/Grr/Components/Searching/GNUmakefile \
63                Services/User/Grr/Components/SubscriptionPanel/GNUmakefile \
64                Services/User/Grr/Components/TreeDatabase/GNUmakefile \
65                Services/User/Grr/Components/URLOpening/GNUmakefile \
66                Services/User/Grr/Development/Deprecated/ArticleDatabase/GNUmakefile \
67                Services/User/Grr/Development/Deprecated/FeedTable/GNUmakefile
68}
69
70build.args      etoile-extensions=no menuserver=yes jabber=no outerspace=no sketch=no
71destroot.args   etoile-extensions=no menuserver=yes jabber=no outerspace=no sketch=no
72
73post-destroot {
74    cd ${destroot}${prefix}
75    xinstall -d GNUstep/Local/Library/Themes
76    file copy ${worksrcpath}/Bundles/Camaelon/Nesedah.theme \
77        GNUstep/Local/Library/Themes
78    file copy ${worksrcpath}/Services/User/Calc/Calc.app \
79        GNUstep/Local/Applications
80    system "
81        cd GNUstep/Local/Tools &&
82        ln -s ../Applications/Calc.app/Calc &&
83        cd ../Library/Headers &&
84        rm -f AddressBook &&
85        ln -s Addresses AddressBook
86    "
87}
88
89variant devel {
90    build.args-delete       etoile-extensions=no menuserver=yes jabber=no outerspace=no sketch=no
91    destroot.args-delete    etoile-extensions=no menuserver=yes jabber=no outerspace=no sketch=no
92    build.args-append       debug=yes corner=no
93    destroot.args-append    debug=yes corner=no
94
95    post-destroot {
96        cd ${destroot}${prefix}
97        xinstall -d GNUstep/System/Library/Etoile
98        xinstall -m 644 ${worksrcpath}/Services/Private/System/SystemTaskList.plist \
99            GNUstep/System/Library/Etoile
100        xinstall -d share/xsessions
101        xinstall -m 644 ${worksrcpath}/Services/Private/System/etoile.desktop \
102            share/xsessions
103        system "
104            echo \". ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh; \
105            etoile_system\" > bin/etoile &&
106            chmod 755 bin/etoile
107        "
108    }
109}
110
Note: See TracBrowser for help on using the repository browser.