pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

violetland: Support NetBSD



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Jul 27 21:11:05 2016 +0200
Changeset:	a89be2cb998bb6d4d96cc1b9f6ca423b25f278b6

Modified Files:
	violetland/distinfo
Added Files:
	violetland/patches/patch-src_program.cpp
	violetland/patches/patch-src_system_utility_FileUtility.cpp

Log Message:
violetland: Support NetBSD

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a89be2cb998bb6d4d96cc1b9f6ca423b25f278b6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 violetland/distinfo                                |  2 ++
 violetland/patches/patch-src_program.cpp           | 17 +++++++++++++++++
 .../patch-src_system_utility_FileUtility.cpp       | 22 ++++++++++++++++++++++
 3 files changed, 41 insertions(+)

diffs:
diff --git a/violetland/distinfo b/violetland/distinfo
index d2ca0a6..8184dc1 100644
--- a/violetland/distinfo
+++ b/violetland/distinfo
@@ -4,3 +4,5 @@ SHA1 (violetland-0.5.tar.gz) = eb42e647e6ee7473835f0a2c47abb99dd19f4ae4
 RMD160 (violetland-0.5.tar.gz) = 25115e79a8355261ede62c78b5f9794ab2ea6d09
 SHA512 (violetland-0.5.tar.gz) = 9b00fa600332c956c49bc5906f373c0dfff08a13320617014942ac4dbc199de8f84bef87ed218b38812ae3c53622e9148aa4463c4ea219056360bff1c73b7f88
 Size (violetland-0.5.tar.gz) = 11495885 bytes
+SHA1 (patch-src_program.cpp) = f08ce0fbf4f47730fea9503b6a8a23a7f80f6824
+SHA1 (patch-src_system_utility_FileUtility.cpp) = 05806be777ff24f55ebad8bb2219b457ea2859fb
diff --git a/violetland/patches/patch-src_program.cpp b/violetland/patches/patch-src_program.cpp
new file mode 100644
index 0000000..66c949a
--- /dev/null
+++ b/violetland/patches/patch-src_program.cpp
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- src/program.cpp.orig	2016-07-27 09:04:07.000000000 +0000
++++ src/program.cpp
+@@ -244,8 +244,11 @@ void printVersion() {
+ 	env = "GNU/LINUX";
+ #endif //linux
+ #ifdef __FreeBSD__
+-	env = "BSD";
++	env = "FREEBSD";
+ #endif //__FreeBSD__
++#ifdef __NetBSD__
++	env = "NETBSD";
++#endif //__NetBSD__
+ #ifdef __APPLE__
+ 	env = "MAC";
+ #endif //__APPLE__
diff --git a/violetland/patches/patch-src_system_utility_FileUtility.cpp b/violetland/patches/patch-src_system_utility_FileUtility.cpp
new file mode 100644
index 0000000..4166e90
--- /dev/null
+++ b/violetland/patches/patch-src_system_utility_FileUtility.cpp
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- src/system/utility/FileUtility.cpp.orig	2016-07-27 09:04:07.000000000 +0000
++++ src/system/utility/FileUtility.cpp
+@@ -66,7 +66,7 @@ FileUtility::FileUtility(char *argPath) 
+ 	m_resPath = m_appPath;
+ 	m_usrPath = m_resPath;
+ #endif //_WIN32
+-#if defined linux || defined __FreeBSD__ || defined __OpenBSD__
++#if defined linux || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
+ #ifndef INSTALL_PREFIX
+ #define INSTALL_PREFIX "/usr/local";
+ #endif //INSTALL_PREFIX
+@@ -83,7 +83,7 @@ FileUtility::FileUtility(char *argPath) 
+ 	mkdir(m_usrPath.string().c_str(), S_IRWXU | S_IRGRP | S_IROTH);
+ 	m_usrPath /= "violetland";
+ 	mkdir(m_usrPath.string().c_str(), S_IRWXU | S_IRGRP | S_IROTH);
+-#endif //linux || __FreeBSD__
++#endif //linux || __FreeBSD__ || __NetBSD__
+ 	traceResPath();
+ }
+ 


Home | Main Index | Thread Index | Old Index