Skip to content

Commit

Permalink
Add pikchr, a PIC-like markup language for diagrams.
Browse files Browse the repository at this point in the history
Pikchr (pronounced like "picture") is a PIC-like markup language for
diagrams in technical documentation. Pikchr is designed to be embedded
in fenced code blocks of Markdown (or in similar mechanisms in other
markup languages) to provide a convenient means of showing diagrams.
  • Loading branch information
schmonz committed Nov 26, 2021
1 parent 4c3d0ff commit 7cb6563
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions graphics/pikchr/DESCR
@@ -0,0 +1,4 @@
Pikchr (pronounced like "picture") is a PIC-like markup language for
diagrams in technical documentation. Pikchr is designed to be embedded
in fenced code blocks of Markdown (or in similar mechanisms in other
markup languages) to provide a convenient means of showing diagrams.
23 changes: 23 additions & 0 deletions graphics/pikchr/Makefile
@@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.1 2021/11/26 09:38:52 schmonz Exp $

DISTNAME= pikchr
PKGVERSION= 1.0.20211104
FOSSIL_TAG= b79ce27929e9cc79
PKGNAME= ${DISTNAME}-${PKGVERSION}
CATEGORIES= graphics textproc
MASTER_SITES= https://pikchr.org/home/tarball/${FOSSIL_TAG}/
DIST_SUBDIR= ${PKGBASE}-${FOSSIL_TAG}

MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://pikchr.org/
COMMENT= PIC-like markup language for diagrams
LICENSE= 0-clause-bsd

WRKSRC= ${WRKDIR}/${PKGBASE}

INSTALLATION_DIRS+= bin

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PKGBASE} ${DESTDIR}${PREFIX}/bin

.include "../../mk/bsd.pkg.mk"
2 changes: 2 additions & 0 deletions graphics/pikchr/PLIST
@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2021/11/26 09:38:52 schmonz Exp $
bin/pikchr
6 changes: 6 additions & 0 deletions graphics/pikchr/distinfo
@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2021/11/26 09:38:52 schmonz Exp $

BLAKE2s (pikchr-b79ce27929e9cc79/pikchr.tar.gz) = 00125e7b4de045b7454fa39b094e717f891de99e9ba35c2f6e97a9cb58dbd106
SHA512 (pikchr-b79ce27929e9cc79/pikchr.tar.gz) = 2339ac1ce17b97698f32d022f92014ba01f279c7aa64e9f1ebbbc1808c58ed75fbb1f935cc8eccb883a7b627aa9de4eaac1ece1b444abc6f5769c2ff77c07d1f
Size (pikchr-b79ce27929e9cc79/pikchr.tar.gz) = 245370 bytes
SHA1 (patch-Makefile) = c538909958cd0e58a72833964e6aae5c6226e15c
13 changes: 13 additions & 0 deletions graphics/pikchr/patches/patch-Makefile
@@ -0,0 +1,13 @@
$NetBSD: patch-Makefile,v 1.1 2021/11/26 09:38:52 schmonz Exp $

Honor pkgsrc-provided CFLAGS.

--- Makefile.orig 2021-11-04 18:36:41.000000000 +0000
+++ Makefile
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -O0 -g -Wall -Wextra
+CFLAGS ?= -O0 -g -Wall -Wextra
LIBS = -lm

TCL_PACKAGE_NAME = pikchr

0 comments on commit 7cb6563

Please sign in to comment.