Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.17 2015/03/13 17:08:14 tnn Exp $
# $NetBSD: Makefile,v 1.18 2016/07/11 18:26:52 schmonz Exp $
DISTNAME= astyle_2.04_linux
DISTNAME= astyle_2.05.1_linux
PKGNAME= ${DISTNAME:S/_linux//:S/_/-/}
CATEGORIES= textproc devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=astyle/}

View File

@@ -1,13 +1,8 @@
@comment $NetBSD: PLIST,v 1.3 2014/08/13 20:56:25 wiz Exp $
@comment $NetBSD: PLIST,v 1.4 2016/07/11 18:26:52 schmonz Exp $
bin/astyle
share/doc/html/astyle/astyle.html
share/doc/html/astyle/index.html
share/doc/html/astyle/install.html
share/doc/html/astyle/license.html
share/doc/html/astyle/links.html
share/doc/html/astyle/news.html
share/doc/html/astyle/notes.html
share/doc/html/astyle/scripts.html
share/doc/html/astyle/styles.css
share/doc/html/astyle/subversion.html
share/doc/html/astyle/vsinstall.html

View File

@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.13 2014/08/13 21:11:07 wiz Exp $
$NetBSD: distinfo,v 1.15 2016/07/11 18:26:52 schmonz Exp $
SHA1 (astyle_2.04_linux.tar.gz) = 8d7701afa3ecb7fb24d3647d8b278dcf17f3ae3e
RMD160 (astyle_2.04_linux.tar.gz) = 94d237759e5d2e4d45db5614ee091996f1a995f2
Size (astyle_2.04_linux.tar.gz) = 156974 bytes
SHA1 (patch-src_astyle__main.cpp) = be94921cda22bd0c2037625e0b127b93bbd8a598
SHA1 (astyle_2.05.1_linux.tar.gz) = b2ccedbb49f7f892afd6a9a59a67b57c36c41df3
RMD160 (astyle_2.05.1_linux.tar.gz) = fc3bc88bc18a6d7177f3e645fda7cc79c497a968
SHA512 (astyle_2.05.1_linux.tar.gz) = 853bf84cb196f2300ca00fb7f18fe336764f1205ae0674a75c1a019bf734495d8fb3d9b6aca0ea258b6632921fb268906128c1afb80596532489749cd2cbe495
Size (astyle_2.05.1_linux.tar.gz) = 152765 bytes

View File

@@ -1,31 +0,0 @@
$NetBSD: patch-src_astyle__main.cpp,v 1.2 2014/08/13 21:11:07 wiz Exp $
Fix build on NetBSD.
https://sourceforge.net/p/astyle/bugs/299/
--- src/astyle_main.cpp.orig 2013-11-01 20:31:48.000000000 +0000
+++ src/astyle_main.cpp
@@ -2671,7 +2671,11 @@ utf16_t* ASLibrary::convertUtf8ToUtf16(c
size_t inLeft = strlen(utf8In) + 1; // converts the ending NULL
char* utf16Conv = reinterpret_cast<char*>(utf16Out);
size_t outLeft = utf16Len;
+#ifdef __NetBSD__
+ size_t iconvval = iconv(iconvh, (const char **)&utf8Conv, &inLeft, &utf16Conv, &outLeft);
+#else
size_t iconvval = iconv(iconvh, &utf8Conv, &inLeft, &utf16Conv, &outLeft);
+#endif
///////////////////////////////////////////////////////
bool showStats = false;
if (showStats && (inLeft != 0 || outLeft != 0))
@@ -2713,7 +2717,11 @@ char* ASLibrary::convertUtf16ToUtf8(cons
size_t inLeft = (utf16len(utf16In) + 1) * sizeof(utf16_t); // converts the ending NULL
char* utf8Conv = utf8Out;
size_t outLeft = utf8Len;
+#ifdef __NetBSD__
+ size_t iconvval = iconv(iconvh, (const char **)&utf16Conv, &inLeft, &utf8Conv, &outLeft);
+#else
size_t iconvval = iconv(iconvh, &utf16Conv, &inLeft, &utf8Conv, &outLeft);
+#endif
///////////////////////////////////////////////////////
bool showStats = false;
if (showStats && (inLeft != 0 || outLeft != 0))