From nobody Sun May 01 20:11:41 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2D1F51AB7D0C; Sun, 1 May 2022 20:11:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kry6j5PhCz3qFW; Sun, 1 May 2022 20:11:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651435901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RRzOyANhMWQQojr8PqJr3p9ccCRUp79xceFJU3Eqov8=; b=MguaTr1Xzc4Xq5Iivg+h746kF8LIGCbu+6ozz4tOsHzVnVhGjETTjwu/6HcTSHZjkXm2kc NGGw8r32/JcghBkyRvxHR8WOaCyUT7hCGNlXv68XhTVOKKIL55xGcrXrDswfCw7tWxO2Nm 45nbuygJvS3JaGGEnu54MbkI3gO48elyY9hkhX984wxPUYa1K382QGNmYegpPwFu/2/5WS Dct+YMeq9hLscU235Q/r66GCkXOA00RuFJIsAQ4Qkkvc+TxlKMN95ZgjHclYKtS3M4jqNh uCz4kRO3gJOjwBb33OfzuXeKh/hxbgS3em1Z48PA7Tf17L7rzr8m5u6kLp/vqQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 532B01BF70; Sun, 1 May 2022 20:11:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 241KBfJc089176; Sun, 1 May 2022 20:11:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 241KBf2Y089175; Sun, 1 May 2022 20:11:41 GMT (envelope-from git) Date: Sun, 1 May 2022 20:11:41 GMT Message-Id: <202205012011.241KBf2Y089175@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: e6902c57141c - main - textproc/apache-xmlbeans: adding XMLBeans, Java classes for XML List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e6902c57141c20bcaf5cd6e796157b9d32b559fd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651435901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RRzOyANhMWQQojr8PqJr3p9ccCRUp79xceFJU3Eqov8=; b=v2/FpLGt/r410n9G8XKHoh1ifEQ1JOfd439oQ8PndXvQi/iXhCCvp1GYv2w2RD2tSfGW2E nHGXe8dE/oxUBcFkjusOMoTHfI6yk5PtpRzmgub8g+3X8GrOwFoRSy4iX4NaL4a9sMRUaM avjFF89ocrkmdF3lCaatnxzxOnA1jX/Nbq5AYIpHMH5cYAkiy6MF2P4fSWNWwvz19ESyjV z7kaDCGCDAJn6LXr9gRqZSTaSQtzvTK68/cEznbYwYt5OulHDtxdjD9XgPfG3Kdffw9oOm rMYR5/D7OcYbAob89/E5cOZf2tVllR6zhxEUfi0/kRFceUlMMUpgPpbR7PrXAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651435901; a=rsa-sha256; cv=none; b=G+8evlgTfT+dK6R7W4me//bDrNNS3eiH+BbpyQCu5/kErd6ghzzOe4Qlq5Su2+C+w/9V5n 78KvlXtyY4eH4Rre/5gz1iySqtPH4s6+cEdnO+DKTmG5FT5m0zO0Cuzl7p4yMk20geaN5T YQQPK4DrLvE4YbIT01yZI/+sl98vwYT8msGK1tE0bYBpFWC3SecJePBZBqDZAp3TzS5U0r qETBuH0cx6EuFkzg8q7U2ubG5Ucr4qrGMSDxutBeFCSwG9hEOmvvDm2gfquZC1hbDnidXh tFz8aeZQ0B5ifaJeOZMs5Zi1psbl8BnVnJgJ/ZojlIqf4/lFoHmrzoKrRYWL4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=e6902c57141c20bcaf5cd6e796157b9d32b559fd commit e6902c57141c20bcaf5cd6e796157b9d32b559fd Author: Thierry Thomas AuthorDate: 2022-04-30 14:37:41 +0000 Commit: Thierry Thomas CommitDate: 2022-05-01 20:09:07 +0000 textproc/apache-xmlbeans: adding XMLBeans, Java classes for XML Note: this is release 3.1.0. The latest release is 5.0.3, but it is not yet compatible with XLConnect (math/R-cran-XLConnect). --- textproc/Makefile | 1 + textproc/apache-xmlbeans/Makefile | 61 +++++++++++++++++++++++ textproc/apache-xmlbeans/distinfo | 5 ++ textproc/apache-xmlbeans/files/patch-bin___setlib | 20 ++++++++ textproc/apache-xmlbeans/files/pkg-message.in | 3 ++ textproc/apache-xmlbeans/pkg-descr | 18 +++++++ textproc/apache-xmlbeans/pkg-plist | 21 ++++++++ 7 files changed, 129 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 46f2cee9c2f3..6a4079bc4fcf 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -51,6 +51,7 @@ SUBDIR += apache-commons-digester SUBDIR += apache-poi SUBDIR += apache-solr + SUBDIR += apache-xmlbeans SUBDIR += apertium SUBDIR += apertium-eng SUBDIR += artha diff --git a/textproc/apache-xmlbeans/Makefile b/textproc/apache-xmlbeans/Makefile new file mode 100644 index 000000000000..3ed59bd64152 --- /dev/null +++ b/textproc/apache-xmlbeans/Makefile @@ -0,0 +1,61 @@ +# Created by: Thierry Thomas + +PORTNAME= xmlbeans +PORTVERSION= 3.1.0 # Do not upgrade without checking compatibility with math/R-cran-XLConnect +CATEGORIES= textproc java +MASTER_SITES= https://archive.apache.org/dist/poi/xmlbeans/release/bin/:xb \ + https://repo1.maven.org/maven2/org/apache/poi/ooxml-schemas/${SCHEMAS_VER}/:sch +PKGNAMEPREFIX= apache- +DISTFILES= ${PORTNAME}-bin-${PORTVERSION}${EXTRACT_SUFX}:xb \ + ooxml-schemas-${SCHEMAS_VER}.jar:sch +EXTRACT_ONLY= ${PORTNAME}-bin-${PORTVERSION}${EXTRACT_SUFX} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Java classes for XML + +LICENSE= APACHE20 + +USES= tar:tgz +USE_JAVA= yes +JAVA_VERSION= 8+ +SCHEMAS_VER= 1.4 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +NO_BUILD= yes +NO_ARCH= yes +SUB_FILES= pkg-message + +OTHERDOCS= LICENSE.txt NOTICE.txt README.txt +PORTDOCS= * +PORTEXAMPLES= * + +OPTIONS_DEFINE= DOCS EXAMPLES + +pre-configure: + ${REINPLACE_CMD} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \ + ${WRKSRC}/bin/_setlib + ${SED} -i '' -e 's|xbean.jar|xmlbeans.jar|;s|:$$XMLBEANS_LIB/xmlbeans-qname.jar||;s|:$XMLBEANS_LIB/jsr173_1.0_api.jar||;s|:$XMLBEANS_LIB/resolver.jar||' \ + ${WRKSRC}/bin/* + +do-install: + @${MKDIR} ${STAGEDIR}${JAVAJARDIR} \ + ${STAGEDIR}${PREFIX}/bin \ + ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + ${INSTALL_DATA} ${DISTDIR}/ooxml-schemas-${SCHEMAS_VER}.jar \ + ${STAGEDIR}${JAVAJARDIR}/ooxml-schemas.jar + ${FIND} ${WRKSRC}/bin ! -name "*.cmd" -type f -exec \ + ${INSTALL_SCRIPT} {} ${STAGEDIR}${PREFIX}/bin \; + (cd ${WRKSRC} && ${COPYTREE_SHARE} schemas ${STAGEDIR}${DATADIR}) + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${OTHERDOCS} ${STAGEDIR}${DOCSDIR}) + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + +do-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + +.include diff --git a/textproc/apache-xmlbeans/distinfo b/textproc/apache-xmlbeans/distinfo new file mode 100644 index 000000000000..14a1b2753d70 --- /dev/null +++ b/textproc/apache-xmlbeans/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1651435086 +SHA256 (xmlbeans-bin-3.1.0.tgz) = abc4883f38b6147090c5995a31ec71b5c8d8207e03665acadc076c1fc21c8b32 +SIZE (xmlbeans-bin-3.1.0.tgz) = 6509656 +SHA256 (ooxml-schemas-1.4.jar) = f8256738040d66ccb677814873674c1212464e00af491e9df490fc45decbd932 +SIZE (ooxml-schemas-1.4.jar) = 16356588 diff --git a/textproc/apache-xmlbeans/files/patch-bin___setlib b/textproc/apache-xmlbeans/files/patch-bin___setlib new file mode 100644 index 000000000000..b7c8022ec9c4 --- /dev/null +++ b/textproc/apache-xmlbeans/files/patch-bin___setlib @@ -0,0 +1,20 @@ +--- bin/_setlib.orig 2019-02-25 00:31:32 UTC ++++ bin/_setlib +@@ -19,14 +19,10 @@ if [ -z "$XMLBEANS_HOME" ]; then + XMLBEANS_HOME=`dirname $0`/.. + fi + +-XMLBEANS_LIB= +-if [ -f "$XMLBEANS_HOME"/build/lib/xbean.jar ]; then +- XMLBEANS_LIB=$XMLBEANS_HOME/build/lib ++if [ -f %%JAVAJARDIR%%/xmlbeans.jar ]; then ++ XMLBEANS_LIB=%%JAVAJARDIR%% + fi +-if [ -f "$XMLBEANS_HOME"/lib/xbean.jar ]; then +- XMLBEANS_LIB=$XMLBEANS_HOME/lib +-fi + + if [ -z "$XMLBEANS_LIB" ]; then +- echo "ERROR: Could not find xbean.jar, try set XMLBEANS_LIB to the directory containing xbean.jar" ++ echo "ERROR: Could not find xmlbeans.jar, try set XMLBEANS_LIB to the directory containing xmlbeans.jar" + fi diff --git a/textproc/apache-xmlbeans/files/pkg-message.in b/textproc/apache-xmlbeans/files/pkg-message.in new file mode 100644 index 000000000000..94f69fcf774e --- /dev/null +++ b/textproc/apache-xmlbeans/files/pkg-message.in @@ -0,0 +1,3 @@ +To use XMLBeans you might have to define the following variables: +export XMLBEANS_HOME=%%JAVAJARDIR%% +export CLASSPATH=%%JAVAJARDIR%%/xmlbeans.jar:$CLASSPATH diff --git a/textproc/apache-xmlbeans/pkg-descr b/textproc/apache-xmlbeans/pkg-descr new file mode 100644 index 000000000000..8f1118bd871b --- /dev/null +++ b/textproc/apache-xmlbeans/pkg-descr @@ -0,0 +1,18 @@ +XMLBeans is a technology for accessing XML by binding it to Java types. XMLBeans +provides several ways to get at the XML, including: + +- Through XML schema that has been compiled to generate Java types that + represent schema types. In this way, you can access instances of the schema + through JavaBeans-style accessors after the fashion of "getFoo" and "setFoo". + The XMLBeans API also allows you to reflect into the XML schema itself through + an XML Schema Object model. + +- A cursor model through which you can traverse the full XML infoset. + +- Support for XML DOM. + +This port contains also the OOXML Schemas, XmlBeans generated from the Ecma +supplied xsds. +See https://poi.apache.org/help/faq.html#faq-N10025 . + +WWW: https://xmlbeans.apache.org/ diff --git a/textproc/apache-xmlbeans/pkg-plist b/textproc/apache-xmlbeans/pkg-plist new file mode 100644 index 000000000000..7ec1b3fb0b1b --- /dev/null +++ b/textproc/apache-xmlbeans/pkg-plist @@ -0,0 +1,21 @@ +bin/_setlib +bin/dumpxsb +bin/inst2xsd +bin/scomp +bin/sdownload +bin/sfactor +bin/svalidate +bin/validate +bin/xpretty +bin/xsd2inst +bin/xsdtree +bin/xstc +%%JAVAJARDIR%%/ooxml-schemas.jar +%%JAVAJARDIR%%/xmlbeans.jar +%%DATADIR%%/schemas/easypo.xsd +%%DATADIR%%/schemas/easypo.xsdconfig +%%DATADIR%%/schemas/nameworld.xsd +%%DATADIR%%/schemas/numerals.xsd +%%DATADIR%%/schemas/s4s/XML.xsd +%%DATADIR%%/schemas/s4s/XMLSchema.xsd +%%PORTEXAMPLES%%@dir %%EXAMPLESDIR%%/XQueryXPath/src/org/apache/xmlbeans/samples/xquery/employees/impl