Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Smithy - An AlephOne Map Editor
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
creidiki
Apprentice
Apprentice


Joined: 23 Mar 2007
Posts: 283
Location: Varese (Italy)

PostPosted: Mon Apr 07, 2008 4:32 am    Post subject: Smithy - An AlephOne Map Editor Reply with quote

There must be /some/ gentooers who play Marathon. Or the bugs I've seen wouldn't get filed.

If any of you are also interested in map-making, here's a live ebuild for a promising project for a map editor: smithy.

The ebuild is defeatingly simple, so I'll just paste it.

Code:
games-util/smithy-9999.ebuild

Code:
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit subversion

IUSE=""

DESCRIPTION="A map editor for AlephOne"
HOMEPAGE="http://smithy.sourceforge.net/"
LICENSE=""

DEPEND="dev-lang/ocaml
      dev-ml/lablgl
      dev-ml/lablgtk
      dev-ml/ocaml-make"

SRC_URI=""
ESVN_REPO_URI="https://smithy.svn.sourceforge.net/svnroot/smithy"
SLOT="0"
KEYWORDS=""

pkg_setup() {
   if ! built_with_use dev-ml/lablgtk opengl ; then
      eerror "In order to build ${PN} you need to build lablgtk with"
      eerror "OpenGL support."
      eerror "You need to install dev-ml/lablgtk with opengl useflag on."
      die "Please install lablgtk with opengl useflag"
   fi

   if ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
      eerror "In order to build ${PN}, you first need to have a native"
      eerror "code ocaml compiler."
      eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
      die "Please install ocaml with ocamlopt useflag"
   fi
}

src_compile() {
   # installation isn't really supported yet, so we have to hack this.
   sed -e 's:resources/:/usr/share/games/smithy/:g' -i Resources.ml

   # if you use emake smithy wont build. have fun figuring out why.
   make
}

src_install () {
   dobin smithy

   insinto '/usr/share/games/smithy'
   doins resources/*

   dodoc docs/* examples/*
}


The official thread, on the pfhorums, is here.

edit 2008-04-07: now it actually works, heh.
_________________
'((eINIT) (soor overlay))


Last edited by creidiki on Mon Apr 07, 2008 9:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
creidiki
Apprentice
Apprentice


Joined: 23 Mar 2007
Posts: 283
Location: Varese (Italy)

PostPosted: Mon Apr 07, 2008 9:14 pm    Post subject: Reply with quote

Updated the ebuild - the .tga resources are actually installed now :)
_________________
'((eINIT) (soor overlay))
Back to top
View user's profile Send private message
creidiki
Apprentice
Apprentice


Joined: 23 Mar 2007
Posts: 283
Location: Varese (Italy)

PostPosted: Wed Apr 30, 2008 8:28 pm    Post subject: Reply with quote

Aaaaand, its now on my overlay.
_________________
'((eINIT) (soor overlay))
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum