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

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

Change system calls to tcl and find a better variant name

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1# $Id: Portfile 26374 2007-06-20 18:47:09Z 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    copy ${worksrcpath}/Bundles/Camaelon/Nesedah.theme \
77        GNUstep/Local/Library/Themes
78    copy ${worksrcpath}/Services/User/Calc/Calc.app \
79        GNUstep/Local/Applications
80    cd GNUstep/Local/Tools
81    ln -s ../Applications/Calc.app/Calc
82    cd ../Library/Headers
83    delete AddressBook
84    ln -s Addresses AddressBook
85}
86
87variant enable_unstable_extensions {
88    build.args-delete       etoile-extensions=no menuserver=yes jabber=no outerspace=no sketch=no
89    destroot.args-delete    etoile-extensions=no menuserver=yes jabber=no outerspace=no sketch=no
90    build.args-append       debug=yes corner=no
91    destroot.args-append    debug=yes corner=no
92
93    post-destroot {
94        cd ${destroot}${prefix}
95        xinstall -d GNUstep/System/Library/Etoile
96        xinstall -m 644 ${worksrcpath}/Services/Private/System/SystemTaskList.plist \
97            GNUstep/System/Library/Etoile
98        xinstall -d share/xsessions
99        xinstall -m 644 ${worksrcpath}/Services/Private/System/etoile.desktop \
100            share/xsessions
101        set chan [open bin/etoile w]
102                puts $chan ". ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh; etoile_system"
103                close $chan
104                file attributes bin/etoile -permissions 0755
105    }
106}
107
Note: See TracBrowser for help on using the repository browser.