summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-01-06 18:39:38 +0000
committerrillig <rillig@pkgsrc.org>2008-01-06 18:39:38 +0000
commitde70f59a83d7d6b049b8d920eff3fc1bc8d303d1 (patch)
tree174f460c07c45b8a81fb315f1ef04b2bbe2a1350 /comms
parentd989bc85366229c2a82f95126d9920479a63b9cd (diff)
downloadpkgsrc-de70f59a83d7d6b049b8d920eff3fc1bc8d303d1.tar.gz
Fixed invalid C++ code and some pkglint warnings.
Diffstat (limited to 'comms')
-rw-r--r--comms/estic/Makefile15
-rw-r--r--comms/estic/distinfo4
-rw-r--r--comms/estic/patches/patch-az15
-rw-r--r--comms/estic/patches/patch-ba29
4 files changed, 53 insertions, 10 deletions
diff --git a/comms/estic/Makefile b/comms/estic/Makefile
index 02a8d8dfbd3..cf7a3666825 100644
--- a/comms/estic/Makefile
+++ b/comms/estic/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2007/01/30 20:04:15 joerg Exp $
+# $NetBSD: Makefile,v 1.26 2008/01/06 18:39:38 rillig Exp $
DISTNAME= estic-1.61
PKGREVISION= 1
@@ -24,24 +24,21 @@ NO_BIN_ON_CDROM= ${RESTRICTED}
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:C/-.*//}
USE_LANGUAGES= c c++
+USE_TOOLS+= patch unzip
BUILD_TARGET= depend all
ESTICPATCH= ${DISTNAME}-patch-from-1.60${EXTRACT_SUFX}
-LIB_TARGET= depend lib
-LIBSRC= ${WRKDIR}/spunk
MAKE_FILE= make/freebsd-x.mak
INSTALLATION_DIRS= bin
post-extract:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC} && \
- ${LOCALBASE}/bin/unzip -p ${DISTDIR}/${ESTICPATCH} | \
- ${PATCH} -p0 ${PATCH_DIST_ARGS}
+ cd ${WRKSRC} && \
+ unzip -p ${DISTDIR}/${ESTICPATCH} \
+ | ${PATCH} -p0 ${PATCH_DIST_ARGS}
pre-build:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${LIBSRC} && \
- ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} \
- ${LIB_TARGET}
+ cd ${WRKDIR}/spunk && ${BUILD_MAKE_CMD} depend lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xestic ${PREFIX}/bin
diff --git a/comms/estic/distinfo b/comms/estic/distinfo
index c4bc267f3ba..005fd7f9fcb 100644
--- a/comms/estic/distinfo
+++ b/comms/estic/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2006/09/08 07:35:50 joerg Exp $
+$NetBSD: distinfo,v 1.10 2008/01/06 18:39:38 rillig Exp $
SHA1 (estic-1.60-sources.zip) = ce66a6d52faaf6adba492bb3f74e49eab608d0c3
RMD160 (estic-1.60-sources.zip) = be071c72ab881c815dc9a0847f2b09914bdeb2ed
@@ -31,3 +31,5 @@ SHA1 (patch-av) = e9239931b98b0ba1444e426df4ae4df7e9aaca7d
SHA1 (patch-aw) = ed428001d0ffc2428a67182a22fa54a726ca103a
SHA1 (patch-ax) = 18f16c755f05d5899d13be239544366a1393d7d3
SHA1 (patch-ay) = 25ec057efcb071f83ab53ca7d7d2af22e9a2c93f
+SHA1 (patch-az) = 661710c038aa502216c7cf5c7374515a43518a7f
+SHA1 (patch-ba) = cced4632684abfe71b115ec0cc65bbd77a7d2770
diff --git a/comms/estic/patches/patch-az b/comms/estic/patches/patch-az
new file mode 100644
index 00000000000..cbebfe5d1ed
--- /dev/null
+++ b/comms/estic/patches/patch-az
@@ -0,0 +1,15 @@
+$NetBSD: patch-az,v 1.1 2008/01/06 18:39:38 rillig Exp $
+
+See mk/help/c++.help.
+
+--- ../spunk/itemwin.h.orig 1996-11-07 18:06:48.000000000 +0000
++++ ../spunk/itemwin.h 2008-01-06 18:52:26.000000000 +0000
+@@ -55,6 +55,8 @@ const u16 ifNoSub = 0x0010
+ /*****************************************************************************/
+
+
++class ResEditApp;
++class ItemWindow;
+
+ class WindowItem : public Streamable {
+
diff --git a/comms/estic/patches/patch-ba b/comms/estic/patches/patch-ba
new file mode 100644
index 00000000000..5535fcc5e04
--- /dev/null
+++ b/comms/estic/patches/patch-ba
@@ -0,0 +1,29 @@
+$NetBSD: patch-ba,v 1.1 2008/01/06 18:39:39 rillig Exp $
+
+See mk/help/c++.help.
+
+--- ../spunk/str.h.orig 1996-12-18 13:18:50.000000000 +0000
++++ ../spunk/str.h 2008-01-06 19:26:53.000000000 +0000
+@@ -91,6 +91,13 @@ extern const class String EmptyString;
+ // Note: This string class may not work with strings greater than INT_MAX or
+ // 0xFFFF, whichever is less
+
++String ShowControls (const String& S, unsigned Style = ccDefault);
++String HideControls (const String& S);
++int Match (const char* Source, const char* Pattern);
++int Match (const String& Source, const String& Pattern);
++int Match (const String& Source, const char* Pattern);
++int Match (const char* Source, const String& Pattern);
++String FormatStr (const char* S, ...);
+
+ class String : public Streamable {
+
+@@ -303,7 +310,7 @@ public:
+ // representation by the character itself, e.g. replace "\n" by the
+ // character with code 13.
+
+- friend String ShowControls (const String& S, unsigned Style = ccDefault);
++ friend String ShowControls (const String& S, unsigned Style);
+ // Recode the given string and replace every control character by it's
+ // visible representation, e.g. "\n" instead of the character with code
+ // code 13.