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

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

Fix the build.args

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1# $Id: Portfile 26407 2007-06-21 16:40:46Z yves@macports.org $
2
3PortSystem  1.0
4PortGroup   gnustep 1.0
5
6name            Etoile
7version         0.1.9
8revision        2
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      azalea=no background=no dock=no login=no corner=no idle=no azswitch=no \
71                jabber=no outerspace=no sketch=no
72destroot.args   azalea=no background=no dock=no login=no corner=no idle=no azswitch=no \
73                jabber=no outerspace=no sketch=no
74
75post-destroot {
76    cd ${destroot}${prefix}
77    xinstall -d GNUstep/Local/Library/Themes
78    copy ${worksrcpath}/Bundles/Camaelon/Nesedah.theme \
79        GNUstep/Local/Library/Themes
80    copy ${worksrcpath}/Services/User/Calc/Calc.app \
81        GNUstep/Local/Applications
82    cd GNUstep/Local/Tools
83    ln -s ../Applications/Calc.app/Calc
84    cd ../Library/Headers
85    delete AddressBook
86    ln -s Addresses AddressBook
87}
88
89variant enable_unstable_services {
90    # We don't build corner because StepTalk is not available yet in MP
91    build.args-delete       azalea=no background=no dock=no login=no idle=no azswitch=no \
92                            jabber=no outerspace=no sketch=no
93    destroot.args-delete    azalea=no background=no dock=no login=no idle=no azswitch=no \
94                            jabber=no outerspace=no sketch=no
95    build.args-append       debug=yes
96    destroot.args-append    debug=yes
97
98    post-destroot {
99        cd ${destroot}${prefix}
100        xinstall -d GNUstep/System/Library/Etoile
101        xinstall -m 644 ${worksrcpath}/Services/Private/System/SystemTaskList.plist \
102            GNUstep/System/Library/Etoile
103        xinstall -d share/xsessions
104        xinstall -m 644 ${worksrcpath}/Services/Private/System/etoile.desktop \
105            share/xsessions
106        set chan [open bin/etoile w]
107                puts $chan ". ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh; etoile_system"
108                close $chan
109                file attributes bin/etoile -permissions 0755
110    }
111}
112
Note: See TracBrowser for help on using the repository browser.