source: trunk/dports/gnustep/etoile/Portfile @ 19697

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

Versions upgrades and lots of new ports

File size: 3.2 KB
Line 
1# $Id: Portfile,v 1.2 2006/03/28 04:10:06 yves Exp $
2
3PortSystem  1.0
4PortGroup   gnustep 1.0
5
6name        etoile
7version     0.1-20060922
8platforms   darwin
9maintainers yves@macports.org
10homepage    http://www.etoile-project.org/
11
12description  GNUstep based user environnement
13long_description \
14    Etoile intends to be an innovative GNUstep based user environnement \
15    built from the ground up on highly modular and light components \
16    with project and document orientation in mind.
17   
18fetch.type  svn
19svn.tag     2006-09-22
20svn.url     svn://svn.gna.org/svn/etoile/trunk etoile
21
22fetch {
23    file mkdir ${workpath}/etoile
24    file copy ${portpath}/Etoile ${workpath}/etoile
25}
26depends_lib-append  \
27    port:SQLClient port:libpng port:oniguruma port:zlib
28   
29worksrcdir  etoile/Etoile
30
31array set gnustep.post_flags {
32    Frameworks/BookmarkKit/Source "-lobjc -lgnustep-base"
33    Frameworks/EtoileExtensionsKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
34    Frameworks/ExtendedWorkspaceKit/Source "-lobjc -lgnustep-base"
35    Frameworks/IconKit "-lobjc -lgnustep-base -lgnustep-gui"
36    Frameworks/LuceneKit "-lgnustep-gui"
37    Frameworks/OgreKit "-lobjc -lgnustep-base -lgnustep-gui"   
38    Frameworks/PreferencesKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
39    Frameworks/ServicesBarKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
40}
41
42post-patch {
43    set CocoaCompatibility_dir \
44        ${worksrcpath}/Frameworks/PreferencesKit/Source
45    set CocoaCompatibility_Source {
46        PKMatrixViewPresentation.m
47        PKPreferencesController.m
48        PKPresentationBuilder.m
49        PKTableViewPresentation.m
50        PKToolbarPresentation.m
51    }
52    foreach i $CocoaCompatibility_Source {
53        reinplace "s|#import \"CocoaCompatibility.h\"||g" \
54            ${CocoaCompatibility_dir}/$i
55    }
56    foreach i {CocoaCompatibility.m ../Headers/CocoaCompatibility.h} {
57        reinplace "s|$i||g" \
58            ${CocoaCompatibility_dir}/GNUmakefile
59    }
60
61    set math_files {
62        Developer/Examples/DistributedViewExample/main.m
63        Frameworks/EtoileExtensionsKit/Source/UKDistributedView.m
64        Frameworks/EtoileExtensionsKit/Source/UKFinderIconCell.m
65        Frameworks/LuceneKit/Source/Search/LCDefaultSimilarity.m
66        Services/User/Grr/FeedPreferencesManager.m
67    }
68    foreach i $math_files {
69        reinplace "s|#import <math.h>||g" ${worksrcpath}/$i
70        reinplace "s|#include <math.h>||g" ${worksrcpath}/$i
71    }
72    reinplace "s|__APPLE__|NON_MERCI|" \
73        ${worksrcpath}/Frameworks/LuceneKit/Source/Search/LCFieldSortedHitQueue.m
74    reinplace "s|LIB_DIRS +=|LIB_DIRS += -lobjc -lgnustep-base -lgnustep-gui|" \
75        ${worksrcpath}/Frameworks/OgreKit/GNUmakefile
76    reinplace "s|lX11|lX11 -lobjc -lgnustep-base -lgnustep-gui|g" \
77        ${worksrcpath}/Frameworks/XWindowServerKit/GNUmakefile
78    reinplace "s|-lX11|-L${x11prefix}/lib -lX11|g" \
79        ${worksrcpath}/Services/Private/Azalea/GNUmakefile
80}
81
82gnustep.domain  System
83
84post-destroot {
85    system "cp -r ${worksrcpath}/Themes ${destroot}${prefix}/GNUstep/System/Library"
86    xinstall -d ${destroot}${prefix}/share/xsessions
87    xinstall -m 644 ${worksrcpath}/Services/Private/System/etoile.desktop \
88        ${destroot}${prefix}/share/xsessions
89}
90
Note: See TracBrowser for help on using the repository browser.