git: b2319532274a - main - textproc/linux-c7-expat-devel: Add new port

From: Felix Palmen <zirias_at_FreeBSD.org>
Date: Sun, 11 Sep 2022 11:26:51 UTC
The branch main has been updated by zirias:

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

commit b2319532274aa0ca0cb343d332bd3ecb01a94d7b
Author:     Felix Palmen <zirias@FreeBSD.org>
AuthorDate: 2022-09-11 11:25:07 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2022-09-11 11:26:31 +0000

    textproc/linux-c7-expat-devel: Add new port
    
    This contains the headers to build Linux software using expat.
    Also add USE_LINUX=expat-devel.
    
    Approved by:            tijl, tcberner (mentor)
    Differential Revision:  https://reviews.freebsd.org/D35904
---
 Mk/Uses/linux.mk                                |  1 +
 textproc/Makefile                               |  1 +
 textproc/linux-c7-expat-devel/Makefile          | 27 +++++++++++++++++++++++++
 textproc/linux-c7-expat-devel/distinfo          |  9 +++++++++
 textproc/linux-c7-expat-devel/pkg-plist.aarch64 | 13 ++++++++++++
 textproc/linux-c7-expat-devel/pkg-plist.amd64   | 15 ++++++++++++++
 textproc/linux-c7-expat-devel/pkg-plist.i386    | 13 ++++++++++++
 7 files changed, 79 insertions(+)

diff --git a/Mk/Uses/linux.mk b/Mk/Uses/linux.mk
index 1361e48667d6..b0f84749c287 100644
--- a/Mk/Uses/linux.mk
+++ b/Mk/Uses/linux.mk
@@ -63,6 +63,7 @@ _linux_c7_dosfstools=			linux-c7-dosfstools>0:sysutils/linux-c7-dosfstools
 _linux_${linux_ARGS}_dri=		linux-${linux_ARGS}-dri>0:graphics/linux-${linux_ARGS}-dri
 _linux_${linux_ARGS}_elfutils-libelf=	linux-${linux_ARGS}-elfutils-libelf>0:devel/linux-${linux_ARGS}-elfutils-libelf
 _linux_c7_elfutils-libs=		linux-c7-elfutils-libs>0:devel/linux-c7-elfutils-libs
+_linux_c7_expat-devel=			linux-c7-expat-devel>0:textproc/linux-c7-expat-devel
 _linux_${linux_ARGS}_expat=		linux-${linux_ARGS}-expat>0:textproc/linux-${linux_ARGS}-expat
 _linux_c7_flac=				linux-c7-flac-libs>0:audio/linux-c7-flac
 _linux_${linux_ARGS}_fontconfig=	linux-${linux_ARGS}-fontconfig>0:x11-fonts/linux-${linux_ARGS}-fontconfig
diff --git a/textproc/Makefile b/textproc/Makefile
index 46ffd377cbc3..c701878e8218 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -417,6 +417,7 @@
     SUBDIR += link-grammar
     SUBDIR += linux-c7-aspell
     SUBDIR += linux-c7-expat
+    SUBDIR += linux-c7-expat-devel
     SUBDIR += linux-c7-libcroco
     SUBDIR += linux-c7-libxml2
     SUBDIR += linux-c7-libxslt
diff --git a/textproc/linux-c7-expat-devel/Makefile b/textproc/linux-c7-expat-devel/Makefile
new file mode 100644
index 000000000000..492453b14958
--- /dev/null
+++ b/textproc/linux-c7-expat-devel/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	expat
+PORTVERSION=	2.1.0
+DISTVERSIONSUFFIX=	-12.el7
+CATEGORIES=	textproc linux
+PKGNAMESUFFIX=	-devel
+
+MAINTAINER=	emulation@FreeBSD.org
+COMMENT=	XML 1.0 parser headers (Linux CentOS ${LINUX_DIST_VER})
+WWW=		https://github.com/libexpat/libexpat
+
+LICENSE=	MIT
+
+USES=		cpe linux:c7
+USE_LINUX=	expat
+CPE_VENDOR=	${CPE_PRODUCT}_project
+CPE_PRODUCT=	lib${PORTNAME}
+USE_LDCONFIG=	yes
+USE_LINUX_RPM=	yes
+
+LIB_DISTNAMES=	${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSIONFULL}
+
+DOCSDIR=	${PREFIX}/usr/share/doc/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
+DESCR=		${.CURDIR}/../${PORTNAME}2/pkg-descr
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.mk>
diff --git a/textproc/linux-c7-expat-devel/distinfo b/textproc/linux-c7-expat-devel/distinfo
new file mode 100644
index 000000000000..dc417817df65
--- /dev/null
+++ b/textproc/linux-c7-expat-devel/distinfo
@@ -0,0 +1,9 @@
+TIMESTAMP = 1658733496
+SHA256 (centos/expat-devel-2.1.0-12.el7.aarch64.rpm) = eb818da9347fa683079771a80a725cdd73f29373000868f602d2d8c591040eb7
+SIZE (centos/expat-devel-2.1.0-12.el7.aarch64.rpm) = 57588
+SHA256 (centos/expat-devel-2.1.0-12.el7.i686.rpm) = 275fe3cbc73d662f72c3244222c2329caa68e4aaf7d107ef009657dd06fb6e92
+SIZE (centos/expat-devel-2.1.0-12.el7.i686.rpm) = 58148
+SHA256 (centos/expat-devel-2.1.0-12.el7.x86_64.rpm) = a9f6672cc1643c21d9689685c9bae287909204e8cd6eb12be11bd438679b82b0
+SIZE (centos/expat-devel-2.1.0-12.el7.x86_64.rpm) = 58112
+SHA256 (centos/expat-2.1.0-12.el7.src.rpm) = d459d51d04fdb0e3f3063310937f81a78271d9303d34d60a32953aa1c36bf896
+SIZE (centos/expat-2.1.0-12.el7.src.rpm) = 583181
diff --git a/textproc/linux-c7-expat-devel/pkg-plist.aarch64 b/textproc/linux-c7-expat-devel/pkg-plist.aarch64
new file mode 100644
index 000000000000..02ab1e5ba89f
--- /dev/null
+++ b/textproc/linux-c7-expat-devel/pkg-plist.aarch64
@@ -0,0 +1,13 @@
+usr/include/expat.h
+usr/include/expat_external.h
+usr/lib64/libexpat.so
+usr/lib64/pkgconfig/expat.pc
+%%PORTDOCS%%%%DOCSDIR%%/Changes
+%%PORTDOCS%%%%DOCSDIR%%/doc/expat.png
+%%PORTDOCS%%%%DOCSDIR%%/doc/reference.html
+%%PORTDOCS%%%%DOCSDIR%%/doc/style.css
+%%PORTDOCS%%%%DOCSDIR%%/doc/valid-xhtml10.png
+%%PORTDOCS%%%%DOCSDIR%%/doc/xmlwf.1
+%%PORTDOCS%%%%DOCSDIR%%/doc/xmlwf.sgml
+%%PORTDOCS%%%%DOCSDIR%%/examples/elements.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/outline.c
diff --git a/textproc/linux-c7-expat-devel/pkg-plist.amd64 b/textproc/linux-c7-expat-devel/pkg-plist.amd64
new file mode 100644
index 000000000000..c950da5d1fc8
--- /dev/null
+++ b/textproc/linux-c7-expat-devel/pkg-plist.amd64
@@ -0,0 +1,15 @@
+usr/include/expat.h
+usr/include/expat_external.h
+usr/lib/libexpat.so
+usr/lib/pkgconfig/expat.pc
+usr/lib64/libexpat.so
+usr/lib64/pkgconfig/expat.pc
+%%PORTDOCS%%%%DOCSDIR%%/Changes
+%%PORTDOCS%%%%DOCSDIR%%/doc/expat.png
+%%PORTDOCS%%%%DOCSDIR%%/doc/reference.html
+%%PORTDOCS%%%%DOCSDIR%%/doc/style.css
+%%PORTDOCS%%%%DOCSDIR%%/doc/valid-xhtml10.png
+%%PORTDOCS%%%%DOCSDIR%%/doc/xmlwf.1
+%%PORTDOCS%%%%DOCSDIR%%/doc/xmlwf.sgml
+%%PORTDOCS%%%%DOCSDIR%%/examples/elements.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/outline.c
diff --git a/textproc/linux-c7-expat-devel/pkg-plist.i386 b/textproc/linux-c7-expat-devel/pkg-plist.i386
new file mode 100644
index 000000000000..66bf4fc61589
--- /dev/null
+++ b/textproc/linux-c7-expat-devel/pkg-plist.i386
@@ -0,0 +1,13 @@
+usr/include/expat.h
+usr/include/expat_external.h
+usr/lib/libexpat.so
+usr/lib/pkgconfig/expat.pc
+%%PORTDOCS%%%%DOCSDIR%%/Changes
+%%PORTDOCS%%%%DOCSDIR%%/doc/expat.png
+%%PORTDOCS%%%%DOCSDIR%%/doc/reference.html
+%%PORTDOCS%%%%DOCSDIR%%/doc/style.css
+%%PORTDOCS%%%%DOCSDIR%%/doc/valid-xhtml10.png
+%%PORTDOCS%%%%DOCSDIR%%/doc/xmlwf.1
+%%PORTDOCS%%%%DOCSDIR%%/doc/xmlwf.sgml
+%%PORTDOCS%%%%DOCSDIR%%/examples/elements.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/outline.c