From owner-svn-ports-head@freebsd.org Fri Sep 13 18:38:12 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 965E4F7B95; Fri, 13 Sep 2019 18:38:12 +0000 (UTC) (envelope-from swills@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46VPXN3Q9Nz3yy6; Fri, 13 Sep 2019 18:38:12 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 591A2B5E3; Fri, 13 Sep 2019 18:38:12 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8DIcCNL065235; Fri, 13 Sep 2019 18:38:12 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8DIcBeT065232; Fri, 13 Sep 2019 18:38:11 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201909131838.x8DIcBeT065232@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Fri, 13 Sep 2019 18:38:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511980 - in head/textproc: . docbookrx X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/textproc: . docbookrx X-SVN-Commit-Revision: 511980 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2019 18:38:12 -0000 Author: swills Date: Fri Sep 13 18:38:11 2019 New Revision: 511980 URL: https://svnweb.freebsd.org/changeset/ports/511980 Log: textproc/docbookrx: create port DocBookRx is the prescription you need to get rid of your DocBook pain. This tool converts DocBook XML to AsciiDoc. DocBookRx is the start of a DocBook to AsciiDoc converter written in Ruby. This converter is far from perfect at the moment and some of the conversion is done hastily. The plan is to evolve it into a robust library for performing this conversion in a reliable way. WWW: https://github.com/asciidoctor/docbookrx Added: head/textproc/docbookrx/ head/textproc/docbookrx/Makefile (contents, props changed) head/textproc/docbookrx/distinfo (contents, props changed) head/textproc/docbookrx/pkg-descr (contents, props changed) Modified: head/textproc/Makefile (contents, props changed) Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Fri Sep 13 18:37:58 2019 (r511979) +++ head/textproc/Makefile Fri Sep 13 18:38:11 2019 (r511980) @@ -143,6 +143,7 @@ SUBDIR += docbook2X SUBDIR += docbook2mdoc SUBDIR += docbook2odf + SUBDIR += docbookrx SUBDIR += doclifter SUBDIR += docproj SUBDIR += dom4j Added: head/textproc/docbookrx/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/docbookrx/Makefile Fri Sep 13 18:38:11 2019 (r511980) @@ -0,0 +1,75 @@ +# $FreeBSD$ + +PORTNAME= docbookrx +DISTVERSION= 1.0.0.dev +CATEGORIES= textproc + +MAINTAINER= swills@FreeBSD.org +COMMENT= DocBook to AsciiDoc converter + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/bin/rake:devel/rubygem-rake \ + gem:devel/ruby-gems \ + rubygem-bundler>=1.16:sysutils/rubygem-bundler \ + rubygem-rspec>=1.2.2:devel/rubygem-rspec +RUN_DEPENDS= rubygem-nokogiri>=1.8:textproc/rubygem-nokogiri + +USE_RUBY= yes +USE_GITHUB= yes + +OPTIONS_DEFINE= DOCS + +GH_ACCOUNT= allanjude +GH_PROJECT= docbookrx +GH_TAGNAME= 06cae39 + +GEM_ENV+= RB_USER_INSTALL=yes +USE_LOCALE?= en_US.UTF-8 +GEM_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} +RUBYGEM_ARGS= -l --no-update-sources --ignore-dependencies \ + --install-dir ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER} \ + --bindir=${STAGEDIR}${PREFIX}/bin + +RUBYGEMBIN= ${LOCALBASE}/bin/gem${RUBY_VER:S/.//} +GEMS_BASE_DIR= lib/ruby/gems/${RUBY_VER} +GEMS_DIR= ${GEMS_BASE_DIR}/gems +DOC_DIR= ${GEMS_BASE_DIR}/doc +CACHE_DIR= ${GEMS_BASE_DIR}/cache +EXT_DIR= ${GEMS_BASE_DIR}/extensions +GEM_LIB_DIR?= ${GEMS_DIR}/${PORTNAME}-${DISTVERSION} + +.include + +.if ${PORT_OPTIONS:MDOCS} +RUBYGEM_ARGS+= --document rdoc,ri +.else +RUBYGEM_ARGS+= --no-document +.endif + +do-build: + cd ${BUILD_WRKSRC} && ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} build --force ${PORTNAME}.gemspec + +do-install: + cd ${INSTALL_WRKSRC} && ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} ${PORTNAME}-${DISTVERSION}.gem -- ${CONFIGURE_ARGS} + ${RM} -r ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}/build_info + ${FIND} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR} -type f -name '*.so' -exec ${STRIP_CMD} {} + + ${FIND} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR} -type f \( -name mkmf.log -or -name gem_make.out \) -delete + ${RM} -r ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/extensions \ + ${STAGEDIR}${PREFIX}/${CACHE_DIR} 2> /dev/null || ${TRUE} + ${RMDIR} ${STAGEDIR}${PREFIX}/${EXT_DIR} 2> /dev/null || ${TRUE} + ${ECHO} bin/docbookrx >> ${TMPPLIST} + ${ECHO} ${GEMS_BASE_DIR}/specifications/${PORTNAME}-${DISTVERSION}.gemspec >> ${TMPPLIST} +.if ${PORT_OPTIONS:MDOCS} + ${FIND} -ds ${STAGEDIR}${PREFIX}/${DOC_DIR} -type f -print | ${SED} -E -e \ + 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} +.endif + ${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -type f -print | ${SED} -E -e \ + 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} + @if [ -d ${STAGEDIR}${PREFIX}/${EXT_DIR} ]; then \ + ${FIND} -ds ${STAGEDIR}${PREFIX}/${EXT_DIR} -type f -print | ${SED} -E -e \ + 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} ; \ + fi + +.include Added: head/textproc/docbookrx/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/docbookrx/distinfo Fri Sep 13 18:38:11 2019 (r511980) @@ -0,0 +1,3 @@ +TIMESTAMP = 1568045667 +SHA256 (allanjude-docbookrx-1.0.0.dev-06cae39_GH0.tar.gz) = 8222a6c8c1f0fa4ee2081b625b97dc8574fb158d173271efb5c6d3875fa5d407 +SIZE (allanjude-docbookrx-1.0.0.dev-06cae39_GH0.tar.gz) = 151430 Added: head/textproc/docbookrx/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/docbookrx/pkg-descr Fri Sep 13 18:38:11 2019 (r511980) @@ -0,0 +1,9 @@ +DocBookRx is the prescription you need to get rid of your DocBook pain. This +tool converts DocBook XML to AsciiDoc. + +DocBookRx is the start of a DocBook to AsciiDoc converter written in Ruby. This +converter is far from perfect at the moment and some of the conversion is done +hastily. The plan is to evolve it into a robust library for performing this +conversion in a reliable way. + +WWW: https://github.com/asciidoctor/docbookrx