public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
Andrea D'Amore (author)
Thu May 15 23:05:28 -0700 2008
commit  ec2c8730993dd2cb2aa9a8e4425cd5f83379db4a
tree    39e01b7452be38a76681466fd87e17145a49a7ab
parent  7c11095cb48969f9ba47cd5a6b03fef2a43278de
macports / dports / devel / lua-expat / Portfile
100644 60 lines (45 sloc) 1.634 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $Id$
 
PortSystem 1.0
 
name lua-expat
version 1.1
revision 0
categories devel
platforms darwin
maintainers andrea.damore@macports.org
description SAX XML parser
long_description LuaExpat is a SAX XML parser based on the Expat library. \
      LuaExpat is free software and uses the same license as Lua 5.1.
 
homepage http://www.keplerproject.org/luaexpat/index.html
master_sites http://luaforge.net/frs/download.php/2469/
 
distname luaexpat-${version}
 
use_configure    no
 
checksums  \
      luaexpat-1.1.tar.gz \
        md5 6ecb895ccf5cff1e7f2facd438b1f8d0 \
        sha1 ea359bdbd346ee378c47179a17ac3ee410be5c9d \
        rmd160 f661c0e7f22363f51862187e96306498addea9d9
 
patchfiles patch-luaexpat.diff
 
patch.pre_args    -p1
 
build.target
 
destroot  {
  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
  file copy README ${destroot}${prefix}/share/doc/${name}
  foreach doc [glob doc/us/*] {
    xinstall -m 0644 ${doc} ${destroot}${prefix}/share/doc/${name}
  }
  
  # Binaries
  xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1
  foreach lib [glob src/*.so.*] {
    xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1
  }
 
  # Lua libraries
  xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1/lxp
  foreach luadat [glob src/lxp/*.lua] {
    xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1/lxp
  }
  
  # Lua includes
  xinstall -m 755 -d ${destroot}${prefix}/include/lua5.1
  foreach inc [glob src/*.h] {
    xinstall -m 0644 ${inc} ${destroot}${prefix}/include/lua5.1
  }
}