From 5c0a2c54aeaa8af6ff0a9d4d84e6890c8e9de82e Mon Sep 17 00:00:00 2001
From: imura <imura@FreeBSD.org>
Date: Sun, 13 Feb 2000 04:09:42 +0000
Subject: Initial import of qhacc-0.2.6.

Simple QT2-based financial manager.

PR:		16524
Submitted by:	Will Andrews <andrews@technologist.com>
---
 finance/qhacc/Makefile       | 28 +++++++++++++++++++++++
 finance/qhacc/distinfo       |  1 +
 finance/qhacc/files/config   |  6 +++++
 finance/qhacc/files/patch-aa | 54 ++++++++++++++++++++++++++++++++++++++++++++
 finance/qhacc/pkg-comment    |  1 +
 finance/qhacc/pkg-descr      |  8 +++++++
 finance/qhacc/pkg-plist      |  4 ++++
 misc/Makefile                |  1 +
 misc/qhacc/Makefile          | 28 +++++++++++++++++++++++
 misc/qhacc/distinfo          |  1 +
 misc/qhacc/files/config      |  6 +++++
 misc/qhacc/files/patch-aa    | 54 ++++++++++++++++++++++++++++++++++++++++++++
 misc/qhacc/pkg-comment       |  1 +
 misc/qhacc/pkg-descr         |  8 +++++++
 misc/qhacc/pkg-plist         |  4 ++++
 15 files changed, 205 insertions(+)
 create mode 100644 finance/qhacc/Makefile
 create mode 100644 finance/qhacc/distinfo
 create mode 100644 finance/qhacc/files/config
 create mode 100644 finance/qhacc/files/patch-aa
 create mode 100644 finance/qhacc/pkg-comment
 create mode 100644 finance/qhacc/pkg-descr
 create mode 100644 finance/qhacc/pkg-plist
 create mode 100644 misc/qhacc/Makefile
 create mode 100644 misc/qhacc/distinfo
 create mode 100644 misc/qhacc/files/config
 create mode 100644 misc/qhacc/files/patch-aa
 create mode 100644 misc/qhacc/pkg-comment
 create mode 100644 misc/qhacc/pkg-descr
 create mode 100644 misc/qhacc/pkg-plist

diff --git a/finance/qhacc/Makefile b/finance/qhacc/Makefile
new file mode 100644
index 00000000000..b40d9fdeee8
--- /dev/null
+++ b/finance/qhacc/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for:	qhacc
+# Version required:	0.2.6
+# Date created:		28 Dec 1999
+# Whom:			Will Andrews <andrews@technologist.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME=	qhacc-0.2.6
+CATEGORIES=	misc
+MASTER_SITES=	http://people.FreeBSD.org/~cpiazza/distfiles/
+
+MAINTAINER=	andrews@technologist.com
+
+USE_X_PREFIX=	yes
+USE_QT2=	yes
+MAKE_ENV+=	QTDIR=${PREFIX} CXX="${CXX}" CC="${CC}"
+WRKSRC=		${WRKDIR}/qhacc
+
+do-install:
+	@${INSTALL_PROGRAM} ${WRKSRC}/qhacc ${PREFIX}/bin/qhacc.exec
+	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/qhacc.sh \
+		> ${PREFIX}/bin/qhacc
+	@${CHMOD} 755 ${PREFIX}/bin/qhacc
+	@${MKDIR} ${PREFIX}/share/qhacc
+	@${INSTALL_DATA} ${FILESDIR}/config ${PREFIX}/share/qhacc/config.sample
+
+.include <bsd.port.mk>
diff --git a/finance/qhacc/distinfo b/finance/qhacc/distinfo
new file mode 100644
index 00000000000..aa9777351a9
--- /dev/null
+++ b/finance/qhacc/distinfo
@@ -0,0 +1 @@
+MD5 (qhacc-0.2.6.tar.gz) = 2b18d9a6f1046f78e86f3b447068136f
diff --git a/finance/qhacc/files/config b/finance/qhacc/files/config
new file mode 100644
index 00000000000..9f6bed1d2f5
--- /dev/null
+++ b/finance/qhacc/files/config
@@ -0,0 +1,6 @@
+ALTCOLOR=173 216 230
+LINESPERTRANS=1
+NUMACCTS=0
+NUMSHOWS=0
+SHOWINDEX=-1
+ACCTFILES=
diff --git a/finance/qhacc/files/patch-aa b/finance/qhacc/files/patch-aa
new file mode 100644
index 00000000000..ce038c73967
--- /dev/null
+++ b/finance/qhacc/files/patch-aa
@@ -0,0 +1,54 @@
+--- Makefile	Sun Jan  2 20:30:54 2000
++++ Makefile.new	Thu Feb  3 00:52:21 2000
+@@ -3,11 +3,11 @@
+ SYSCONF_CC		= gcc
+ 
+ # Compiling with support libraries
+-SYSCONF_CXXFLAGS_QT	= -I$(QTDIR)/include
++SYSCONF_CXXFLAGS_QT	= -I$(QTDIR)/include/qt2
+ 
+ # Linking with support libraries
+ SYSCONF_LFLAGS_QT	= -L$(QTDIR)/lib
+-SYSCONF_LIBS_QT		= -lqt
++SYSCONF_LIBS_QT		= -lqt2
+ 
+ # Linking applications
+ SYSCONF_LINK		= g++
+@@ -15,7 +15,7 @@
+ SYSCONF_LIBS		=
+ 
+ # Meta-object compiler
+-SYSCONF_MOC		= $(QTDIR)/bin/moc
++SYSCONF_MOC		= $(QTDIR)/bin/moc2
+ 
+ # Compiling application source
+ #SYSCONF_CXXFLAGS	= -pipe -DNO_DEBUG -O2
+@@ -26,12 +26,13 @@
+ 
+ ####### Compiler, tools and options
+ 
+-CXX	=	$(SYSCONF_CXX)
+-CXXFLAGS=	$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS)
+-CC	=	$(SYSCONF_CC)
+-CFLAGS	=	$(SYSCONF_CFLAGS)
+-INCPATH =	
+-LFLAGS	=	$(SYSCONF_LFLAGS_QT) $(SYSCONF_LFLAGS_X11) $(SYSCONF_LFLAGS)
++QTDIR	?=	/usr/X11R6
++CXX	?=	c++
++CXXFLAGS?=	-O -pipe
++CC	?=	cc
++CFLAGS	?=	-O -pipe
++INCPATH =	$(SYSCONF_CXXFLAGS_QT)
++LFLAGS	=	$(CXXFLAGS) $(SYSCONF_LFLAGS_QT) $(SYSCONF_LIBS_QT)
+ LIBS	=	$(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_X11) $(SYSCONF_LIBS)
+ MOC	=	$(SYSCONF_MOC)
+ 
+@@ -80,7 +81,7 @@
+ all: $(DESTDIR)$(TARGET)
+ 
+ $(DESTDIR)$(TARGET): $(OBJECTS) $(OBJMOC) 
+-	$(SYSCONF_LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
++	$(CXX) $(LFLAGS) $(INCPATH) -o $(TARGET) $(OBJECTS) $(OBJMOC)
+ 
+ moc: $(SRCMOC)
+ 
diff --git a/finance/qhacc/pkg-comment b/finance/qhacc/pkg-comment
new file mode 100644
index 00000000000..054550afc9a
--- /dev/null
+++ b/finance/qhacc/pkg-comment
@@ -0,0 +1 @@
+Simple QT2-based financial manager
diff --git a/finance/qhacc/pkg-descr b/finance/qhacc/pkg-descr
new file mode 100644
index 00000000000..aedf1090379
--- /dev/null
+++ b/finance/qhacc/pkg-descr
@@ -0,0 +1,8 @@
+QHacc is a QT2-based financial management program.
+Don't expect a Quicken replacement, however - it only
+does simple transaction management.
+
+WWW: http://www.ostrich-emulators.cx/~ryan/qhacc/
+Author: Ryan F. Bobko <ryan@ostrich-emulators.cx>
+
+--Will <andrews@technologist.com>
diff --git a/finance/qhacc/pkg-plist b/finance/qhacc/pkg-plist
new file mode 100644
index 00000000000..4c4e15ad2ce
--- /dev/null
+++ b/finance/qhacc/pkg-plist
@@ -0,0 +1,4 @@
+bin/qhacc
+bin/qhacc.exec
+share/qhacc/config.sample
+@dirrm share/qhacc
diff --git a/misc/Makefile b/misc/Makefile
index 14c83ef86ba..2529f5342c9 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -93,6 +93,7 @@
     SUBDIR += pinfo
     SUBDIR += proxyper
     SUBDIR += qclock
+    SUBDIR += qhacc
     SUBDIR += quotes
     SUBDIR += rfc
     SUBDIR += rpm
diff --git a/misc/qhacc/Makefile b/misc/qhacc/Makefile
new file mode 100644
index 00000000000..b40d9fdeee8
--- /dev/null
+++ b/misc/qhacc/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for:	qhacc
+# Version required:	0.2.6
+# Date created:		28 Dec 1999
+# Whom:			Will Andrews <andrews@technologist.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME=	qhacc-0.2.6
+CATEGORIES=	misc
+MASTER_SITES=	http://people.FreeBSD.org/~cpiazza/distfiles/
+
+MAINTAINER=	andrews@technologist.com
+
+USE_X_PREFIX=	yes
+USE_QT2=	yes
+MAKE_ENV+=	QTDIR=${PREFIX} CXX="${CXX}" CC="${CC}"
+WRKSRC=		${WRKDIR}/qhacc
+
+do-install:
+	@${INSTALL_PROGRAM} ${WRKSRC}/qhacc ${PREFIX}/bin/qhacc.exec
+	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/qhacc.sh \
+		> ${PREFIX}/bin/qhacc
+	@${CHMOD} 755 ${PREFIX}/bin/qhacc
+	@${MKDIR} ${PREFIX}/share/qhacc
+	@${INSTALL_DATA} ${FILESDIR}/config ${PREFIX}/share/qhacc/config.sample
+
+.include <bsd.port.mk>
diff --git a/misc/qhacc/distinfo b/misc/qhacc/distinfo
new file mode 100644
index 00000000000..aa9777351a9
--- /dev/null
+++ b/misc/qhacc/distinfo
@@ -0,0 +1 @@
+MD5 (qhacc-0.2.6.tar.gz) = 2b18d9a6f1046f78e86f3b447068136f
diff --git a/misc/qhacc/files/config b/misc/qhacc/files/config
new file mode 100644
index 00000000000..9f6bed1d2f5
--- /dev/null
+++ b/misc/qhacc/files/config
@@ -0,0 +1,6 @@
+ALTCOLOR=173 216 230
+LINESPERTRANS=1
+NUMACCTS=0
+NUMSHOWS=0
+SHOWINDEX=-1
+ACCTFILES=
diff --git a/misc/qhacc/files/patch-aa b/misc/qhacc/files/patch-aa
new file mode 100644
index 00000000000..ce038c73967
--- /dev/null
+++ b/misc/qhacc/files/patch-aa
@@ -0,0 +1,54 @@
+--- Makefile	Sun Jan  2 20:30:54 2000
++++ Makefile.new	Thu Feb  3 00:52:21 2000
+@@ -3,11 +3,11 @@
+ SYSCONF_CC		= gcc
+ 
+ # Compiling with support libraries
+-SYSCONF_CXXFLAGS_QT	= -I$(QTDIR)/include
++SYSCONF_CXXFLAGS_QT	= -I$(QTDIR)/include/qt2
+ 
+ # Linking with support libraries
+ SYSCONF_LFLAGS_QT	= -L$(QTDIR)/lib
+-SYSCONF_LIBS_QT		= -lqt
++SYSCONF_LIBS_QT		= -lqt2
+ 
+ # Linking applications
+ SYSCONF_LINK		= g++
+@@ -15,7 +15,7 @@
+ SYSCONF_LIBS		=
+ 
+ # Meta-object compiler
+-SYSCONF_MOC		= $(QTDIR)/bin/moc
++SYSCONF_MOC		= $(QTDIR)/bin/moc2
+ 
+ # Compiling application source
+ #SYSCONF_CXXFLAGS	= -pipe -DNO_DEBUG -O2
+@@ -26,12 +26,13 @@
+ 
+ ####### Compiler, tools and options
+ 
+-CXX	=	$(SYSCONF_CXX)
+-CXXFLAGS=	$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS)
+-CC	=	$(SYSCONF_CC)
+-CFLAGS	=	$(SYSCONF_CFLAGS)
+-INCPATH =	
+-LFLAGS	=	$(SYSCONF_LFLAGS_QT) $(SYSCONF_LFLAGS_X11) $(SYSCONF_LFLAGS)
++QTDIR	?=	/usr/X11R6
++CXX	?=	c++
++CXXFLAGS?=	-O -pipe
++CC	?=	cc
++CFLAGS	?=	-O -pipe
++INCPATH =	$(SYSCONF_CXXFLAGS_QT)
++LFLAGS	=	$(CXXFLAGS) $(SYSCONF_LFLAGS_QT) $(SYSCONF_LIBS_QT)
+ LIBS	=	$(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_X11) $(SYSCONF_LIBS)
+ MOC	=	$(SYSCONF_MOC)
+ 
+@@ -80,7 +81,7 @@
+ all: $(DESTDIR)$(TARGET)
+ 
+ $(DESTDIR)$(TARGET): $(OBJECTS) $(OBJMOC) 
+-	$(SYSCONF_LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
++	$(CXX) $(LFLAGS) $(INCPATH) -o $(TARGET) $(OBJECTS) $(OBJMOC)
+ 
+ moc: $(SRCMOC)
+ 
diff --git a/misc/qhacc/pkg-comment b/misc/qhacc/pkg-comment
new file mode 100644
index 00000000000..054550afc9a
--- /dev/null
+++ b/misc/qhacc/pkg-comment
@@ -0,0 +1 @@
+Simple QT2-based financial manager
diff --git a/misc/qhacc/pkg-descr b/misc/qhacc/pkg-descr
new file mode 100644
index 00000000000..aedf1090379
--- /dev/null
+++ b/misc/qhacc/pkg-descr
@@ -0,0 +1,8 @@
+QHacc is a QT2-based financial management program.
+Don't expect a Quicken replacement, however - it only
+does simple transaction management.
+
+WWW: http://www.ostrich-emulators.cx/~ryan/qhacc/
+Author: Ryan F. Bobko <ryan@ostrich-emulators.cx>
+
+--Will <andrews@technologist.com>
diff --git a/misc/qhacc/pkg-plist b/misc/qhacc/pkg-plist
new file mode 100644
index 00000000000..4c4e15ad2ce
--- /dev/null
+++ b/misc/qhacc/pkg-plist
@@ -0,0 +1,4 @@
+bin/qhacc
+bin/qhacc.exec
+share/qhacc/config.sample
+@dirrm share/qhacc
-- 
cgit