Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,31 +1,26 @@
# $NetBSD: Makefile,v 1.15 2013/05/25 16:39:39 shattered Exp $
#
# $NetBSD: Makefile,v 1.17 2015/03/13 17:08:14 tnn Exp $
DISTNAME= astyle_1.15.3
PKGNAME= astyle-1.15.3
DISTNAME= astyle_2.04_linux
PKGNAME= ${DISTNAME:S/_linux//:S/_/-/}
CATEGORIES= textproc devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=astyle/}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://astyle.sourceforge.net/
COMMENT= Reindenter and reformatter of C, C++, C# and Java source code
LICENSE= gnu-gpl-v2
COMMENT= Free, Fast and Small Automatic Formatter for C, C++, C++/CLI, C#, and Java
LICENSE= gnu-lgpl-v3
WRKSRC= ${WRKDIR}/astyle
BUILD_DIRS= build/gcc
USE_TOOLS+= gmake
USE_LANGUAGES= c++
HTMLDIR= ${PREFIX}/share/doc/html/astyle
INSTALLATION_DIRS= bin ${HTMLDIR}
USE_LANGUAGES= c++
WRKSRC= ${WRKDIR}
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-2*)
CFLAGS+= -DASTYLE_GCC2
.endif
post-install:
cd ${WRKSRC} && ${INSTALL_DATA} astyle.html \
astyle_release_notes.html license.html ${DESTDIR}${HTMLDIR}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/gcc/bin/astyle ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DESTDIR}${HTMLDIR}
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -1,5 +1,13 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:48:33 joerg Exp $
@comment $NetBSD: PLIST,v 1.3 2014/08/13 20:56:25 wiz Exp $
bin/astyle
share/doc/html/astyle/astyle.html
share/doc/html/astyle/astyle_release_notes.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,7 +1,6 @@
$NetBSD: distinfo,v 1.11 2013/05/25 16:39:39 shattered Exp $
$NetBSD: distinfo,v 1.13 2014/08/13 21:11:07 wiz Exp $
SHA1 (astyle_1.15.3.zip) = 51e115d1f84028899fff1725d4c6298d5e191ea4
RMD160 (astyle_1.15.3.zip) = ec84150edbe09dcd62ef960f288b688b52553d8b
Size (astyle_1.15.3.zip) = 60880 bytes
SHA1 (patch-aa) = 67bb1b1802e74bc264cb951a55075982c566d463
SHA1 (patch-ac) = 42b568e4bb8f6a9748c1ec73db641739ce14e673
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

View File

@@ -1,28 +0,0 @@
$NetBSD: patch-aa,v 1.5 2009/08/25 11:56:34 wiz Exp $
--- Makefile.orig 2000-02-11 12:02:10.000000000 +0000
+++ Makefile
@@ -1,14 +1,19 @@
# "Artistic Style" Makefile
-CPPFLAGS = -Wall -Wno-sign-compare -O2
+#CPPFLAGS = -Wall -Wno-sign-compare -O2
OBJS = ASResource.o ASBeautifier.o ASFormatter.o astyle_main.o
+all: astyle
+
+install:
+ install -s -c astyle ${DESTDIR}${PREFIX}/bin
+
astyle: $(OBJS)
- g++ $(CPPFLAGS) -o astyle $(OBJS)
+ $(CXX) $(CPPFLAGS) $(LDFLAGS) -o astyle $(OBJS)
.cpp.o:
- g++ $(CPPFLAGS) -c $<
+ $(CXX) $(CPPFLAGS) $(CFLAGS) -c $<
.SUFFIXES: .cpp .c .o
clean:
- rm *.o
+ rm *.o astyle

View File

@@ -1,22 +0,0 @@
$NetBSD: patch-ac,v 1.4 2013/05/25 16:39:39 shattered Exp $
--- astyle_main.cpp.orig 2001-01-20 17:02:14.000000000 +0000
+++ astyle_main.cpp
@@ -29,6 +29,8 @@
#include <fstream>
#include <string>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#define IS_OPTION(arg,op) ((arg).compare(op)==0)
@@ -149,7 +151,7 @@ void error(const char *why, const char*
exit(1);
}
-
+bool parseOption(ASFormatter &, const string &, const string &);
template<class ITER>
bool parseOptions(ASFormatter &formatter,

View File

@@ -0,0 +1,31 @@
$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))