Bug 186268 - [NEW] textproc/py-scss: pyScss is a compiler for SCSS flavor of the Sass language
Summary: [NEW] textproc/py-scss: pyScss is a compiler for SCSS flavor of the Sass lang...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 10:00 UTC by ru_M1cRO
Modified: 2014-02-02 10:20 UTC (History)
0 users

See Also:


Attachments
file.shar (1.55 KB, text/plain)
2014-01-30 10:00 UTC, ru_M1cRO
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ru_M1cRO 2014-01-30 10:00:00 UTC
New port pyScss: pyScss is a compiler for SCSS flavor of the Sass language, a superset of CSS3 that adds programming capabilities and some other syntactic sugar.

Fix: Patch attached with submission follows:
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2014-01-30 11:23:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->koobs

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-02-02 10:05:51 UTC
Author: koobs
Date: Sun Feb  2 10:05:42 2014
New Revision: 342259
URL: http://svnweb.freebsd.org/changeset/ports/342259
QAT: https://qat.redports.org/buildarchive/r342259/

Log:
  [NEW PORT] textproc/py-scss: Compiler for SCSS flavor of the Sass language
  
  pyScss is a compiler for SCSS flavor of the Sass language, a superset of
  CSS3 that adds programming capabilities and some other syntactic sugar.
  
  WWW: https://github.com/Kronuz/pyScss
  
  PR:		ports/186268
  Submitted by:	"Ilya A. Arkhipov" <rum1cro@yandex.ru>

Added:
  head/textproc/py-pyscss/
  head/textproc/py-pyscss/Makefile   (contents, props changed)
  head/textproc/py-pyscss/distinfo   (contents, props changed)
  head/textproc/py-pyscss/pkg-descr   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Sun Feb  2 09:51:17 2014	(r342258)
+++ head/textproc/Makefile	Sun Feb  2 10:05:42 2014	(r342259)
@@ -1178,6 +1178,7 @@
     SUBDIR += py-pyctpp2
     SUBDIR += py-pyelasticsearch
     SUBDIR += py-pygments
+    SUBDIR += py-pyscss
     SUBDIR += py-pysrt
     SUBDIR += py-pystache
     SUBDIR += py-pyx12

Added: head/textproc/py-pyscss/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-pyscss/Makefile	Sun Feb  2 10:05:42 2014	(r342259)
@@ -0,0 +1,34 @@
+# Created by: Ilya A. Arkhipov <rum1cro@yandex.ru>
+# $FreeBSD$
+
+PORTNAME=	pyscss
+PORTVERSION=	1.2.0
+CATEGORIES=	textproc python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	rum1cro@yandex.ru
+COMMENT=	Compiler for SCSS flavor of the Sass language
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
+LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Kronuz
+GH_COMMIT=	2c10593
+GH_PROJECT=	pyScss
+GH_TAGNAME=	v${PORTVERSION}
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+regression-test: build
+	@cd ${WRKSRC} && py.test
+
+.include <bsd.port.mk>

Added: head/textproc/py-pyscss/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-pyscss/distinfo	Sun Feb  2 10:05:42 2014	(r342259)
@@ -0,0 +1,2 @@
+SHA256 (pyscss-1.2.0.tar.gz) = 0490325a50ad1e4d8defb6e8f422fa559a1c9f06b84048b2e4897a6e139d5c36
+SIZE (pyscss-1.2.0.tar.gz) = 281058

Added: head/textproc/py-pyscss/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-pyscss/pkg-descr	Sun Feb  2 10:05:42 2014	(r342259)
@@ -0,0 +1,4 @@
+pyScss is a compiler for SCSS flavor of the Sass language, a superset of CSS3
+that adds programming capabilities and some other syntactic sugar.
+
+WWW: https://github.com/Kronuz/pyScss
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 koobs 2014-02-02 10:10:09 UTC
Thanks you for your submission Ilya. I've committed the port with the
following review items & changes:

- Match PORTNAME to upstream name whenever possible
- Use PYTHON_PKGNAMEPREFIX to prefix the PORTNAME
- Add python as a second category for python ports
- No need to mention software name in COMMENT
- Use new convention for LIB_DEPENDS (libfoo.so)
- Prefer named GitHub repo tags over commit hashes for GH_TAGNAME
- Double empty lines in pkg-descr
- setup.py says "six" is install_requires. This is a BUILD_DEPENDS

Other:

setup.py mentions that C extension speedups is optional. An OPTION for
this would be nice, whether or not its OPTIONS_DEFAULT.

I couldn't get the unit tests to pass with nosetests or py.test (which
pyScss requires but does not document). It looks like some of the tests
require PIL that arent skipped (but instead fail) when PIL is not
installed. [1]

[1] 8 failed, 207 passed, 271 skipped, 3 xfailed in 1.91 seconds

I've added TEST_DEPENDS and a basic regression-test target to make QA
easier for you and other users. It might need some tweaking.

If you haven't already, I also recommend creating an account at
http://redports.org (ask decke@#redports on IRC to enable it) which
makes it very easy to automatically test your future submissions across
multiple FreeBSD versions (You can include the redports build URL in
your PR's too)

Don't hesitate to jump on IRC at #freebsd-python on freenode if you have
questions or need help.
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2014-02-02 10:14:16 UTC
State Changed
From-To: open->closed

New port added, with changes. Thanks Ilya!