1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- Update to 0.2.1

This commit is contained in:
Dmitry Marakasov 2009-10-27 00:04:59 +00:00
parent 0338726813
commit 52a3803cae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=243363
3 changed files with 4 additions and 38 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= violetland
PORTVERSION= 0.2.0
PORTVERSION= 0.2.1
CATEGORIES= games
MASTER_SITES= GOOGLE_CODE
DISTNAME= ${PORTNAME}-v${PORTVERSION}-src
@ -30,8 +30,4 @@ DESKTOP_ENTRIES="Violetland" \
"Game;ArcadeGame;" \
false
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/src/system/FileUtility.cpp
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (violetland-v0.2.0-src.zip) = b2e9f9f9fab09a47a41db8cd9f78ea38
SHA256 (violetland-v0.2.0-src.zip) = dc720b7b6b145264e886ce065ed3440902778630c3f086d1d3d67019d5325cdd
SIZE (violetland-v0.2.0-src.zip) = 3001882
MD5 (violetland-v0.2.1-src.zip) = 50d5b18840dc22bd084fc6839780cb7c
SHA256 (violetland-v0.2.1-src.zip) = 2b54f683a16a6b1f34420d59ba37f0d7563299dd30dd74beb9d19a5d02488fd3
SIZE (violetland-v0.2.1-src.zip) = 3004370

View File

@ -1,30 +0,0 @@
--- src/system/FileUtility.cpp.orig 2009-10-19 05:14:24.000000000 +0400
+++ src/system/FileUtility.cpp 2009-10-25 22:04:22.000000000 +0300
@@ -22,8 +22,8 @@
if (!(ep->data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
files++;
#endif //_WIN32W
-#ifdef linux
- if (ep->d_type == 0x8)
+#ifdef __FreeBSD__
+ if (ep->d_type == DT_REG)
files++;
#endif //linux
(void) closedir(dp);
@@ -49,13 +49,9 @@
m_usrPath = m_resPath;
delete[] exePath;
#endif //_WIN32
-#ifdef linux
- char result[PATH_MAX];
- readlink("/proc/self/exe", result, PATH_MAX);
- FileUtility::truncateFullPathToDir(result);
- m_appPath = result;
- m_resPath = m_appPath;
- m_resPath.append("/../share/violetland/");
+#ifdef __FreeBSD__
+ m_appPath = "%%PREFIX%%/bin";
+ m_resPath = "%%PREFIX%%/share/violetland/";
m_usrPath = getenv("HOME");
m_usrPath.append("/.config");
mkdir(m_usrPath.c_str(), S_IRWXU | S_IRGRP | S_IROTH);