py-smartypants: added version 2.0.1

smartypants can perform the following transformations:
* Straight quotes (" and ') into "curly" quote HTML entities
* Backticks-style quotes (``like this'') into "curly" quote HTML entities
* Dashes (-- and ---) into en- and em-dash entities
* Three consecutive dots (... or . . .) into an ellipsis entity

This means you can write, edit, and save your posts using plain old ASCII
straight quotes, plain dashes, and plain dots, but your published posts (and
final HTML output) will appear with smart quotes, em-dashes, and proper
ellipses.

smartypants does not modify contents in some HTML element. Typically, these
tags are used to display text where smart quotes and other "smart punctuation"
would not be appropriate, such as source code or example markup.
This commit is contained in:
adam 2019-04-03 14:49:27 +00:00
parent 3fd5228194
commit 6757841b06
6 changed files with 52 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1029 2019/03/19 10:56:39 jaapb Exp $
# $NetBSD: Makefile,v 1.1030 2019/04/03 14:49:27 adam Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@ -843,6 +843,7 @@ SUBDIR+= py-rebulk
SUBDIR+= py-regex
SUBDIR+= py-relatorio
SUBDIR+= py-rst2pdf
SUBDIR+= py-smartypants
SUBDIR+= py-snowballstemmer
SUBDIR+= py-sphinx
SUBDIR+= py-sphinx-autodoc-typehints

View file

@ -0,0 +1 @@
bin/smartypants @PREFIX@/bin/smartypants-@PYVERSSUFFIX@

View file

@ -0,0 +1,14 @@
smartypants can perform the following transformations:
* Straight quotes (" and ') into "curly" quote HTML entities
* Backticks-style quotes (``like this'') into "curly" quote HTML entities
* Dashes (-- and ---) into en- and em-dash entities
* Three consecutive dots (... or . . .) into an ellipsis entity
This means you can write, edit, and save your posts using plain old ASCII
straight quotes, plain dashes, and plain dots, but your published posts (and
final HTML output) will appear with smart quotes, em-dashes, and proper
ellipses.
smartypants does not modify contents in some HTML element. Typically, these
tags are used to display text where smart quotes and other "smart punctuation"
would not be appropriate, such as source code or example markup.

View file

@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.1 2019/04/03 14:49:27 adam Exp $
DISTNAME= smartypants-2.0.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
#MASTER_SITES= ${MASTER_SITE_PYPI:=s/smartypants/}
MASTER_SITES= ${MASTER_SITE_GITHUB:=leohemsted/}
GITHUB_PROJECT= smartypants.py
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/leohemsted/smartypants.py
COMMENT= Python with the SmartyPants
LICENSE= modified-bsd
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} smartypants smartypants-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.1 2019/04/03 14:49:27 adam Exp $
bin/smartypants-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/smartypants.py
${PYSITELIB}/smartypants.pyc
${PYSITELIB}/smartypants.pyo

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2019/04/03 14:49:27 adam Exp $
SHA1 (smartypants-2.0.1.tar.gz) = 73f663d2370b33328a7c3490cb4c9fdf0146c5ee
RMD160 (smartypants-2.0.1.tar.gz) = 2fbe33dcca0235f808c7937e3aa602c13972bfdc
SHA512 (smartypants-2.0.1.tar.gz) = d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d
Size (smartypants-2.0.1.tar.gz) = 24152 bytes