Skip to content

Commit

Permalink
New Etoile-devel port
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@27114 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Yves de Champlain committed Jul 19, 2007
1 parent 499f1f0 commit 523a28b
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
87 changes: 87 additions & 0 deletions gnustep/Etoile-devel/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# $Id$

PortSystem 1.0
PortGroup gnustep 1.0

name Etoile-devel
version 0.1.9
platforms darwin
maintainers [email protected]
homepage http://www.etoile-project.org/

description GNUstep based user environnement
long_description \
Etoile intends to be an innovative GNUstep-based user environment \
built from the ground up on highly modular and light components \
with project and document orientation in mind.

fetch.type svn
svn.tag 2100
svn.url http://svn.gna.org/svn/etoile/trunk/Etoile

####################### DEVELOPMENT FETCH ##############################
#fetch {
# file copy ${portpath}/Etoile ${workpath}
#}
########################################################################

depends_build bin:svn:subversion
depends_lib port:SQLClient \
port:dbus \
port:oniguruma5 \
port:poppler

worksrcdir Etoile

patchfiles patch-etoile.make \
patch-PopplerKit-config.sh \
patch-xmpp-GNUmakefile

array set gnustep.post_flags {
Frameworks/AddressesKit/Frameworks/AddressView -lAddresses
Frameworks/BookmarkKit -lCollectionKit
Frameworks/SystemConfig -lX11
}

post-patch {
reinplace "s|SCSound.m||" \
${worksrcpath}/Frameworks/SystemConfig/Source/GNUmakefile
reinplace "s|/usr|${prefix}|g" \
${worksrcpath}/Services/Private/System/GNUmakefile
}

# We don't build corner because StepTalk is not available yet in MP
build.args corner=no debug=yes
destroot.args corner=no debug=yes

post-destroot {

cd ${destroot}${prefix}

xinstall -d GNUstep/System/Library/Etoile
xinstall -m 644 ${worksrcpath}/Services/Private/System/SystemTaskList.plist \
GNUstep/System/Library/Etoile

xinstall -d share/xsessions
xinstall -m 644 ${worksrcpath}/Services/Private/System/etoile.desktop \
share/xsessions

set chan [open bin/etoile w]
puts $chan ". ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh; etoile_system"
close $chan
file attributes bin/etoile -permissions 0755

xinstall -d GNUstep/Local/Library/Themes
copy ${worksrcpath}/Bundles/Camaelon/Nesedah.theme \
GNUstep/Local/Library/Themes

copy ${worksrcpath}/Services/User/Calc/Calc.app \
GNUstep/Local/Applications
cd GNUstep/Local/Tools
ln -s ../Applications/Calc.app/Calc

cd ../Library/Headers
delete AddressBook
ln -s Addresses AddressBook
}

9 changes: 9 additions & 0 deletions gnustep/Etoile-devel/files/patch-PopplerKit-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- Frameworks/PopplerKit/config.sh.orig 2007-04-29 10:13:37.000000000 -0400
+++ Frameworks/PopplerKit/config.sh 2007-04-29 10:16:15.000000000 -0400
@@ -87,5 +89,6 @@
# we add -I/usr/X11R6/include for older FreeBSD version.
echo "ADDITIONAL_INCLUDE_DIRS += -I/usr/X11R6/include" >> config.make
echo "HAVE_CAIRO=${HAVE_CAIRO}" >>config.make
+echo "CXX=g++-mp-4.2" >> config.make

exit 0
10 changes: 10 additions & 0 deletions gnustep/Etoile-devel/files/patch-etoile.make
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- etoile.make.orig 2007-04-30 01:07:49.000000000 -0400
+++ etoile.make 2007-05-07 12:09:15.000000000 -0400
@@ -240,6 +240,7 @@
# developer. For example, it's commonly equals to ./shared_obj

export ADDITIONAL_LIB_DIRS += -L$(BUILD_DIR)
+export SHARED_LD_POSTFLAGS += -lobjc -lgnustep-base -lgnustep-gui

# We disable warnings about #import being deprecated. They occur with old GCC
# version (before 4.0 iirc).
11 changes: 11 additions & 0 deletions gnustep/Etoile-devel/files/patch-xmpp-GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Services/User/Jabber/xmpp/GNUmakefile.orig 2007-05-07 12:32:43.000000000 -0400
+++ Services/User/Jabber/xmpp/GNUmakefile 2007-05-07 19:08:25.000000000 -0400
@@ -7,6 +7,8 @@
ADDITIONAL_INCLUDE_DIRS += -I../TRXML/
XMPP_AGSDOC_FLAGS += -MakeFrames YES

+ADDITIONAL_LIB_DIRS += -L../TRXML/obj -lTRXML -lssl -L../../../../Build -lAddresses
+
XMPP_OBJC_FILES = \
ChatLog.m\
CompareHack.m\

0 comments on commit 523a28b

Please sign in to comment.