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

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

Set the svn:eol-style property to native for any Portfile's that do
not have this property. The cvs2svn conversion set this property on
any Portfile's that existed in the CVS repository. This makes all
Portfile's consistent and prevents any problems with checkouts of
these files on Windows (yuck!) boxes.

  • Property svn:eol-style set to native
File size: 3.0 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.977
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     977
20svn.url     svn://svn.gna.org/svn/etoile/trunk etoile
21
22depends_build   bin:svn:subversion
23depends_lib-append  \
24    port:SQLClient port:libpng port:oniguruma port:zlib
25   
26worksrcdir  etoile/Etoile
27
28array set gnustep.post_flags {
29    Frameworks/BookmarkKit/Source "-lobjc -lgnustep-base"
30    Frameworks/EtoileExtensionsKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
31    Frameworks/ExtendedWorkspaceKit/Source "-lobjc -lgnustep-base"
32    Frameworks/IconKit "-lobjc -lgnustep-base -lgnustep-gui"
33    Frameworks/LuceneKit "-lgnustep-gui"
34    Frameworks/OgreKit "-lobjc -lgnustep-base -lgnustep-gui"   
35    Frameworks/PreferencesKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
36    Frameworks/ServicesBarKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
37}
38
39post-patch {
40    set CocoaCompatibility_dir \
41        ${worksrcpath}/Frameworks/PreferencesKit/Source
42    set CocoaCompatibility_Source {
43        PKMatrixViewPresentation.m
44        PKPreferencesController.m
45        PKPresentationBuilder.m
46        PKTableViewPresentation.m
47        PKToolbarPresentation.m
48    }
49    foreach i $CocoaCompatibility_Source {
50        reinplace "s|#import \"CocoaCompatibility.h\"||g" \
51            ${CocoaCompatibility_dir}/$i
52    }
53    foreach i {CocoaCompatibility.m ../Headers/CocoaCompatibility.h} {
54        reinplace "s|$i||g" \
55            ${CocoaCompatibility_dir}/GNUmakefile
56    }
57
58    set math_files {
59        Developer/Examples/DistributedViewExample/main.m
60        Frameworks/EtoileExtensionsKit/Source/UKDistributedView.m
61        Frameworks/EtoileExtensionsKit/Source/UKFinderIconCell.m
62        Frameworks/LuceneKit/Source/Search/LCDefaultSimilarity.m
63        Services/User/Grr/FeedPreferencesManager.m
64    }
65    foreach i $math_files {
66        reinplace "s|#import <math.h>||g" ${worksrcpath}/$i
67        reinplace "s|#include <math.h>||g" ${worksrcpath}/$i
68    }
69
70    reinplace "s|__APPLE__|NON_MERCI|" \
71        ${worksrcpath}/Frameworks/LuceneKit/Source/Search/LCFieldSortedHitQueue.m
72    reinplace "s|lX11|lX11 -lobjc -lgnustep-base -lgnustep-gui|g" \
73        ${worksrcpath}/Frameworks/XWindowServerKit/GNUmakefile
74    reinplace "s|-lX11|-L${x11prefix}/lib -lX11|g" \
75        ${worksrcpath}/Services/Private/Azalea/GNUmakefile
76}
77
78gnustep.domain  System
79
80post-destroot {
81    system "cp -r ${worksrcpath}/Themes ${destroot}${prefix}/GNUstep/System/Library"
82    xinstall -d ${destroot}${prefix}/share/xsessions
83    xinstall -m 644 ${worksrcpath}/Services/Private/System/etoile.desktop \
84        ${destroot}${prefix}/share/xsessions
85}
86
Note: See TracBrowser for help on using the repository browser.