Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 2015 19:28:48 +0000 (UTC)
From:      Olivier Duchateau <olivierd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r398783 - in head/textproc: . cmark cmark/files
Message-ID:  <201510071928.t97JSmD5037539@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olivierd
Date: Wed Oct  7 19:28:47 2015
New Revision: 398783
URL: https://svnweb.freebsd.org/changeset/ports/398783

Log:
  cmark is the C reference implementation of CommonMark, a rationalized
  version of Markdown syntax with a spec.
  
  It provides a shared library (libcmark) with functions for parsing
  CommonMark documents to an abstract syntax tree (AST), manipulating
  the AST, and rendering the document to HTML, groff man, LaTeX,
  CommonMark, or an XML representation of the AST.  It also provides a
  command-line program (cmark) for parsing and rendering CommonMark
  documents.
  
  WWW: https://github.com/jgm/cmark
  
  PR:		203532
  Submitted by:	Tobias Kortkamp <t@tobik.me>

Added:
  head/textproc/cmark/
  head/textproc/cmark/Makefile   (contents, props changed)
  head/textproc/cmark/distinfo   (contents, props changed)
  head/textproc/cmark/files/
  head/textproc/cmark/files/patch-src_CMakeLists.txt   (contents, props changed)
  head/textproc/cmark/pkg-descr   (contents, props changed)
  head/textproc/cmark/pkg-plist   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Wed Oct  7 18:45:28 2015	(r398782)
+++ head/textproc/Makefile	Wed Oct  7 19:28:47 2015	(r398783)
@@ -83,6 +83,7 @@
     SUBDIR += clucene
     SUBDIR += clucene-qt4
     SUBDIR += clucene-qt5
+    SUBDIR += cmark
     SUBDIR += coccigrep
     SUBDIR += code2html
     SUBDIR += codespell

Added: head/textproc/cmark/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cmark/Makefile	Wed Oct  7 19:28:47 2015	(r398783)
@@ -0,0 +1,21 @@
+# Created by: Tobias Kortkamp <t@tobik.me>
+# $FreeBSD$
+
+PORTNAME=	cmark
+PORTVERSION=	0.22.0
+CATEGORIES=	textproc
+
+MAINTAINER=	t@tobik.me
+COMMENT=	CommonMark parsing and rendering library and program in C
+
+LICENSE=	BSD2CLAUSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	jgm
+
+USES=		cmake:outsource
+
+post-patch:
+	${REINPLACE_CMD} -i "" 's|share/||g' ${WRKSRC}/man/CMakeLists.txt
+
+.include <bsd.port.mk>

Added: head/textproc/cmark/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cmark/distinfo	Wed Oct  7 19:28:47 2015	(r398783)
@@ -0,0 +1,2 @@
+SHA256 (jgm-cmark-0.22.0_GH0.tar.gz) = a45956e6ee491d71e9271ddeb09364599a136b8956d219f0168dd6042f6f791b
+SIZE (jgm-cmark-0.22.0_GH0.tar.gz) = 213617

Added: head/textproc/cmark/files/patch-src_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cmark/files/patch-src_CMakeLists.txt	Wed Oct  7 19:28:47 2015	(r398783)
@@ -0,0 +1,11 @@
+--- src/CMakeLists.txt.orig	2015-10-04 10:17:08 UTC
++++ src/CMakeLists.txt
+@@ -55,7 +55,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DI
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libcmark.pc.in
+   ${CMAKE_CURRENT_BINARY_DIR}/libcmark.pc @ONLY)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcmark.pc
+-  DESTINATION lib/pkgconfig)
++  DESTINATION libdata/pkgconfig)
+ 
+ include (GenerateExportHeader)
+ 

Added: head/textproc/cmark/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cmark/pkg-descr	Wed Oct  7 19:28:47 2015	(r398783)
@@ -0,0 +1,11 @@
+cmark is the C reference implementation of CommonMark, a rationalized
+version of Markdown syntax with a spec.
+
+It provides a shared library (libcmark) with functions for parsing
+CommonMark documents to an abstract syntax tree (AST), manipulating
+the AST, and rendering the document to HTML, groff man, LaTeX,
+CommonMark, or an XML representation of the AST.  It also provides a
+command-line program (cmark) for parsing and rendering CommonMark
+documents.
+
+WWW: https://github.com/jgm/cmark

Added: head/textproc/cmark/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cmark/pkg-plist	Wed Oct  7 19:28:47 2015	(r398783)
@@ -0,0 +1,9 @@
+bin/cmark
+include/cmark.h
+include/cmark_export.h
+include/cmark_version.h
+lib/libcmark.so
+lib/libcmark.so.0.22.0
+libdata/pkgconfig/libcmark.pc
+man/man1/cmark.1.gz
+man/man3/cmark.3.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510071928.t97JSmD5037539>