git: d5808120fc39 - main - databases/mdbtools: Move man to share/man

From: Rainer Hurling <rhurlin_at_FreeBSD.org>
Date: Sat, 10 Feb 2024 19:56:10 UTC
The branch main has been updated by rhurlin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d5808120fc39f9df53d4de9e712623c86ab4d6fa

commit d5808120fc39f9df53d4de9e712623c86ab4d6fa
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2024-02-10 19:47:32 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2024-02-10 19:53:26 +0000

    databases/mdbtools: Move man to share/man
    
    While here, also move libmdbodbc and libmdbodbcW files from lib/odbc to
    standard location for odbc libraries under lib.
---
 databases/mdbtools/Makefile  |  8 +++++++-
 databases/mdbtools/pkg-plist | 36 ++++++++++++++++++------------------
 2 files changed, 25 insertions(+), 19 deletions(-)

diff --git a/databases/mdbtools/Makefile b/databases/mdbtools/Makefile
index 3da1f8d445f1..e50d3e787889 100644
--- a/databases/mdbtools/Makefile
+++ b/databases/mdbtools/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mdbtools
 DISTVERSION=	1.0.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/
 
@@ -22,6 +22,7 @@ CPE_VENDOR=	mdbtools_project
 USE_GNOME=	glib20
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 CONFIGURE_ARGS=	${ICONV_CONFIGURE_ARG} \
 		--with-unixodbc=${LOCALBASE}
 
@@ -53,6 +54,11 @@ CPP=		clang-cpp${LLVM_VER}
 CXX=		clang++${LLVM_VER}
 .endif
 
+post-configure:
+	@${REINPLACE_CMD} -e \
+		's|libdir = $${exec_prefix}/lib/odbc|libdir = $${exec_prefix}/lib|' \
+		${WRKSRC}/src/odbc/Makefile
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,}  ${STAGEDIR}${DOCSDIR}
diff --git a/databases/mdbtools/pkg-plist b/databases/mdbtools/pkg-plist
index 6ba6d75d506d..2bcf1a1f1be1 100644
--- a/databases/mdbtools/pkg-plist
+++ b/databases/mdbtools/pkg-plist
@@ -17,30 +17,16 @@ lib/libmdb.a
 lib/libmdb.so
 lib/libmdb.so.3
 lib/libmdb.so.3.1.0
+lib/libmdbodbc.a
+lib/libmdbodbc.so
+lib/libmdbodbcW.a
+lib/libmdbodbcW.so
 lib/libmdbsql.a
 lib/libmdbsql.so
 lib/libmdbsql.so.3
 lib/libmdbsql.so.3.1.0
-lib/odbc/libmdbodbc.a
-lib/odbc/libmdbodbc.so
-lib/odbc/libmdbodbcW.a
-lib/odbc/libmdbodbcW.so
 libdata/pkgconfig/libmdb.pc
 libdata/pkgconfig/libmdbsql.pc
-%%MANPAGES%%man/man1/mdb-array.1.gz
-%%MANPAGES%%man/man1/mdb-count.1.gz
-%%MANPAGES%%man/man1/mdb-export.1.gz
-%%MANPAGES%%man/man1/mdb-header.1.gz
-%%MANPAGES%%man/man1/mdb-hexdump.1.gz
-%%MANPAGES%%man/man1/mdb-import.1.gz
-%%MANPAGES%%man/man1/mdb-json.1.gz
-%%MANPAGES%%man/man1/mdb-parsecsv.1.gz
-%%MANPAGES%%man/man1/mdb-prop.1.gz
-%%MANPAGES%%man/man1/mdb-queries.1.gz
-%%MANPAGES%%man/man1/mdb-schema.1.gz
-%%MANPAGES%%man/man1/mdb-sql.1.gz
-%%MANPAGES%%man/man1/mdb-tables.1.gz
-%%MANPAGES%%man/man1/mdb-ver.1.gz
 share/bash-completion/completions/mdb-count
 share/bash-completion/completions/mdb-export
 share/bash-completion/completions/mdb-hexdump
@@ -57,3 +43,17 @@ share/bash-completion/completions/mdb-ver
 %%PORTDOCS%%%%DOCSDIR%%/HACKING.md
 %%PORTDOCS%%%%DOCSDIR%%/NEWS
 %%PORTDOCS%%%%DOCSDIR%%/README.md
+%%MANPAGES%%share/man/man1/mdb-array.1.gz
+%%MANPAGES%%share/man/man1/mdb-count.1.gz
+%%MANPAGES%%share/man/man1/mdb-export.1.gz
+%%MANPAGES%%share/man/man1/mdb-header.1.gz
+%%MANPAGES%%share/man/man1/mdb-hexdump.1.gz
+%%MANPAGES%%share/man/man1/mdb-import.1.gz
+%%MANPAGES%%share/man/man1/mdb-json.1.gz
+%%MANPAGES%%share/man/man1/mdb-parsecsv.1.gz
+%%MANPAGES%%share/man/man1/mdb-prop.1.gz
+%%MANPAGES%%share/man/man1/mdb-queries.1.gz
+%%MANPAGES%%share/man/man1/mdb-schema.1.gz
+%%MANPAGES%%share/man/man1/mdb-sql.1.gz
+%%MANPAGES%%share/man/man1/mdb-tables.1.gz
+%%MANPAGES%%share/man/man1/mdb-ver.1.gz