1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

devel/premake4: Upgrade version from 4.3 => 4.4b

It's bad practice to upgrade from a release version to a beta version,
but according to the maintainer several projects are already requiring
the 4.4 version of premake, essentially forcing an upgrade.

PR:		192004
Submitted by:	maintainer (Vitaly Magerya)
This commit is contained in:
John Marino 2014-07-27 08:30:41 +00:00
parent 30fe21fd31
commit a277f52605
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363026
4 changed files with 16 additions and 32 deletions

View File

@ -2,21 +2,21 @@
# $FreeBSD$
PORTNAME= premake4
PORTVERSION= 4.3
PORTVERSION= 4.4.b5
CATEGORIES= devel
MASTER_SITES= SF/premake/Premake/${PORTVERSION}
DISTNAME= premake-${PORTVERSION}-src
MASTER_SITES= SF/premake/Premake/${PORTVERSION:C/.b.+//}
DISTNAME= premake-${PORTVERSION:S/.b/-beta/}-src
MAINTAINER= vmagerya@gmail.com
COMMENT= Writes build scripts
COMMENT= Build script creation tool
OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/premake-${PORTVERSION}
WRKSRC= ${WRKDIR}/premake-${PORTVERSION:S/.b/-beta/}
BUILD_WRKSRC= ${WRKSRC}/build/gmake.unix
USES= gmake zip
MAKE_ARGS= ARCH=""
MAKE_ARGS= ARCH="" CC="${CC}" CXX="${CXX}"
PLIST_FILES= bin/premake4
@ -24,12 +24,18 @@ PORTDOCS= CHANGES.txt LICENSE.txt README.txt
post-patch:
${REINPLACE_CMD} -e 's|-ldl||' ${BUILD_WRKSRC}/Premake4.make
${REINPLACE_CMD} -e 's|debug|release|' ${WRKSRC}/tests/test
${REINPLACE_CMD} -e 's|debug|release|' \
${WRKSRC}/tests/test \
${WRKSRC}/tests/base/test_premake_command.lua
${REINPLACE_CMD} -e 's|io.open(conf_file)|nil|' \
${WRKSRC}/src/base/os.lua \
${WRKSRC}/src/host/scripts.c
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/bin/release/premake4 ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} \
${WRKSRC}/bin/release/premake4 ${STAGEDIR}${PREFIX}/bin
regression-test: build
cd ${WRKSRC}/tests && ./test

View File

@ -1,2 +1,2 @@
SHA256 (premake-4.3-src.zip) = 36536490f8928d8ecde135da80cd8b751ea5bebe50cabba5c0de49cd41cb2780
SIZE (premake-4.3-src.zip) = 514366
SHA256 (premake-4.4-beta5-src.zip) = 0fa1ed02c5229d931e87995123cdb11d44fcc8bd99bba8e8bb1bbc0aaa798161
SIZE (premake-4.4-beta5-src.zip) = 596883

View File

@ -1,17 +0,0 @@
--- src/base/os.lua.orig 2012-01-31 15:40:25.000000000 +0200
+++ src/base/os.lua 2012-01-31 15:42:16.000000000 +0200
@@ -33,14 +33,6 @@
else
formats = { "lib%s.so", "%s.so" }
path = os.getenv("LD_LIBRARY_PATH") or ""
-
- io.input("/etc/ld.so.conf")
- if io.input() then
- for line in io.lines() do
- path = path .. ":" .. line
- end
- io.input():close()
- end
end
table.insert(formats, "%s")

View File

@ -1,5 +0,0 @@
--- src/host/scripts.c.orig 2010-11-16 13:29:13.000000000 +0200
+++ src/host/scripts.c 2012-01-31 16:05:26.000000000 +0200
@@ -7 +7 @@
- "function os.executef(cmd, ...)\ncmd = string.format(cmd, unpack(arg))\nreturn os.execute(cmd)\nend\nfunction os.findlib(libname)\nlocal path, formats\nif os.is(\"windows\") then\nformats = { \"%s.dll\", \"%s\" }\npath = os.getenv(\"PATH\")\nelse\nif os.is(\"macosx\") then\nformats = { \"lib%s.dylib\", \"%s.dylib\" }\npath = os.getenv(\"DYLD_LIBRARY_PATH\")\nelse\nformats = { \"lib%s.so\", \"%s.so\" }\npath = os.getenv(\"LD_LIBRARY_PATH\") or \"\"\nio.input(\"/etc/ld.so.conf\")\nif io.input() then\nfor line in io.lines() do\npath = path .. \":\" .. line\nend\nio.input():close()\nend\nend\ntable.insert(formats, \"%s\")\npath = (path or \"\") .. \":/lib:/usr/lib:/usr/local/lib\"\nend\nfor _, fmt in ipairs(formats) do\nlocal name = string.format(fmt, libname)\nlocal result = os.pathsearch(name, path)\nif result then return result end\nend\nend\nfunction os.get()\nreturn _OPTIONS.os or _OS\nend\nfunction os.is(id)\nreturn (os.get():lower() == id:lower())\nend\nlocal function domatch(result, mask, wantfiles)\nif mas"
+ "function os.executef(cmd, ...)\ncmd = string.format(cmd, unpack(arg))\nreturn os.execute(cmd)\nend\nfunction os.findlib(libname)\nlocal path, formats\nif os.is(\"windows\") then\nformats = { \"%s.dll\", \"%s\" }\npath = os.getenv(\"PATH\")\nelse\nif os.is(\"macosx\") then\nformats = { \"lib%s.dylib\", \"%s.dylib\" }\npath = os.getenv(\"DYLD_LIBRARY_PATH\")\nelse\nformats = { \"lib%s.so\", \"%s.so\" }\npath = os.getenv(\"LD_LIBRARY_PATH\") or \"\"\nend\ntable.insert(formats, \"%s\")\npath = (path or \"\") .. \":/lib:/usr/lib:/usr/local/lib\"\nend\nfor _, fmt in ipairs(formats) do\nlocal name = string.format(fmt, libname)\nlocal result = os.pathsearch(name, path)\nif result then return result end\nend\nend\nfunction os.get()\nreturn _OPTIONS.os or _OS\nend\nfunction os.is(id)\nreturn (os.get():lower() == id:lower())\nend\nlocal function domatch(result, mask, wantfiles)\nif mas"