Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 17:50:35 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r504584 - head/databases/pxtools
Message-ID:  <201906191750.x5JHoZFQ063246@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Jun 19 17:50:35 2019
New Revision: 504584
URL: https://svnweb.freebsd.org/changeset/ports/504584

Log:
  - Remove broken mirror from the MASTER_SITES
  - Fix database parsing on 64-bit architectures: it used `void *'
    pointer (only as a placeholder), while its size was used in
    read(2) calls which resulted in wrong generated table names
  - Add a Y2K option (Y2k workaround for Paradox < 7.0)
  - Convert to USES+=localbase, fix a typo in the port description,
    and take maintainership as I might be using it sometimes

Modified:
  head/databases/pxtools/Makefile
  head/databases/pxtools/pkg-descr

Modified: head/databases/pxtools/Makefile
==============================================================================
--- head/databases/pxtools/Makefile	Wed Jun 19 17:25:23 2019	(r504583)
+++ head/databases/pxtools/Makefile	Wed Jun 19 17:50:35 2019	(r504584)
@@ -5,18 +5,23 @@ PORTNAME=	pxtools
 PORTVERSION=	0.0.20
 PORTREVISION=	4
 CATEGORIES=	databases
-MASTER_SITES=	http://jan.kneschke.de/downloads/pxtools/ \
-		http://www.sourcefiles.org/Databases/Utilities/Conversion/
+MASTER_SITES=	http://jan.kneschke.de/downloads/pxtools/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Collection of tools to work with Paradox databases
 
 LICENSE=	GPLv2
 
-USES=		gettext
+USES=		gettext localbase
 GNU_CONFIGURE=	yes
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+OPTIONS_DEFINE=	Y2K
+Y2K_DESC=	Y2k workaround for Paradox < 7.0
+
+Y2K_CONFIGURE_ON=	--enable-y2k
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,void \*ptr,int ptr,' \
+		${WRKSRC}/src/pxparse.c
 
 .include <bsd.port.mk>

Modified: head/databases/pxtools/pkg-descr
==============================================================================
--- head/databases/pxtools/pkg-descr	Wed Jun 19 17:25:23 2019	(r504583)
+++ head/databases/pxtools/pkg-descr	Wed Jun 19 17:50:35 2019	(r504584)
@@ -5,6 +5,6 @@ pxtools consists of the following:
   the important information.
 * pxsqldump/pxcsvdump are utilities to extract the data from a
   Paradox-database.  The output is an SQL-/CSV-dump that can be
-  used to recreate the database in an SQL-enviroment.
+  used to recreate the database in an SQL environment.
 
 WWW: http://jan.kneschke.de/projects/pxtools/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906191750.x5JHoZFQ063246>