mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Unbreak the build with MDB support after r561652 and enable it
by default to help catch API breakages in the future - Enable CURL option because it is very common dependency anyway - Add an option to build the recutils bash(1) builtins
This commit is contained in:
parent
7d179469f2
commit
83af15b7f9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567461
3 changed files with 51 additions and 3 deletions
|
@ -23,10 +23,15 @@ TEST_TARGET= check
|
|||
INFO= rec-mode recutils
|
||||
PORTDOCS= AUTHORS ChangeLog NEWS README
|
||||
|
||||
OPTIONS_DEFINE= DOCS CURL GCRYPT MDB NLS
|
||||
OPTIONS_DEFAULT= GCRYPT
|
||||
OPTIONS_DEFINE= BASH DOCS CURL GCRYPT MDB NLS
|
||||
OPTIONS_DEFAULT= CURL GCRYPT MDB
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
BASH_DESC= Build ${PORTNAME} bash(1) builtins
|
||||
BASH_BUILD_DEPENDS= ${LOCALBASE}/include/bash/config.h:shells/bash
|
||||
BASH_CONFIGURE_ON= --with-bash-headers=${LOCALBASE}/include/bash
|
||||
BASH_CONFIGURE_OFF= --disable-bash-builtins
|
||||
|
||||
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
|
||||
CURL_CONFIGURE_ENV_OFF= ac_cv_lib_curl_curl_global_init=no
|
||||
|
||||
|
@ -36,12 +41,17 @@ GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
|
|||
GCRYPT_CONFIGURE_OFF= --disable-encryption
|
||||
|
||||
MDB_DESC= MS Access database (.mdb) support
|
||||
MDB_BUILD_DEPENDS= help2man:misc/help2man
|
||||
MDB_LIB_DEPENDS= libmdb.so:databases/mdbtools
|
||||
MDB_CONFIGURE_ENV_OFF= ac_cv_lib_mdb_mdb_init=no
|
||||
MDB_CONFIGURE_ENV_OFF= ac_cv_lib_mdb_mdb_get_version=no
|
||||
|
||||
NLS_USES= gettext
|
||||
NLS_CONFIGURE_OFF= --disable-nls
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,mdb_init,mdb_get_version,' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/*.el \
|
||||
${STAGEDIR}${PREFIX}/share/emacs/site-lisp
|
||||
|
|
30
databases/recutils/files/patch-utils_mdb2rec.c
Normal file
30
databases/recutils/files/patch-utils_mdb2rec.c
Normal file
|
@ -0,0 +1,30 @@
|
|||
--- utils/mdb2rec.c.orig 2019-01-03 08:47:43 UTC
|
||||
+++ utils/mdb2rec.c
|
||||
@@ -33,7 +33,7 @@
|
||||
#include <gettext.h>
|
||||
#define _(str) gettext (str)
|
||||
|
||||
-#include <glib.h>
|
||||
+#define HAVE_GLIB
|
||||
#include <mdbtools.h>
|
||||
|
||||
#include <rec.h>
|
||||
@@ -472,16 +472,14 @@ process_mdb (void)
|
||||
if (!db)
|
||||
recutl_out_of_memory ();
|
||||
|
||||
- /* Initialize libmdb and open the input file. */
|
||||
- mdb_init();
|
||||
- mdb_set_date_fmt ("%Y-%m-%dT%H:%M:%S%z"); /* ISO 8601 */
|
||||
-
|
||||
mdb = mdb_open (mdb2rec_mdb_file, MDB_NOFLAGS);
|
||||
if (!mdb)
|
||||
{
|
||||
recutl_fatal (_("could not open file %s\n"),
|
||||
mdb2rec_mdb_file);
|
||||
}
|
||||
+
|
||||
+ mdb_set_date_fmt (mdb, "%Y-%m-%dT%H:%M:%S%z"); /* ISO 8601 */
|
||||
|
||||
/* Read the catalog. */
|
||||
if (!mdb_read_catalog (mdb, MDB_TABLE))
|
|
@ -13,6 +13,14 @@ lib/librec.a
|
|||
lib/librec.so
|
||||
lib/librec.so.1
|
||||
lib/librec.so.1.0.0
|
||||
%%BASH%%lib/readrec.a
|
||||
%%BASH%%lib/readrec.so
|
||||
%%BASH%%lib/readrec.so.0
|
||||
%%BASH%%lib/readrec.so.0.0.0
|
||||
%%BASH%%lib/testrec.a
|
||||
%%BASH%%lib/testrec.so
|
||||
%%BASH%%lib/testrec.so.0
|
||||
%%BASH%%lib/testrec.so.0.0.0
|
||||
man/man1/csv2rec.1.gz
|
||||
%%MDB%%man/man1/mdb2rec.1.gz
|
||||
man/man1/rec2csv.1.gz
|
||||
|
|
Loading…
Add table
Reference in a new issue