pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-jsbeautifier: Update wip/py-jsbeautifier to 1.6.12



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Apr 14 12:42:21 2017 +0200
Changeset:	99e2edbfbc6f214c36147bdc46182a2af279ed45

Modified Files:
	py-jsbeautifier/Makefile
	py-jsbeautifier/PLIST
	py-jsbeautifier/distinfo
Added Files:
	py-jsbeautifier/ALTERNATIVES

Log Message:
py-jsbeautifier: Update wip/py-jsbeautifier to 1.6.12

pkgsrc changes:
 - Use ALTERNATIVES in order to permit multi-pkgs to coexists and adjust
   PLIST and introduce Makefile post-install target accordingly

Changes:
* CSS: Preserve Newlines ([#537](https://github.com/beautify-web/js-beautify/issues/537))

Reverted #1117 - Preserve newlines broken

* On beautify, new line before next CSS selector ([#1142](https://github.com/beautify-web/js-beautify/issues/1142))

Added `preserver_newlines` to css beautifier

* Fixed html formatting issue with attribute wrap (Thanks, @HookyQR!)
* Fixed python package publishing

* Wrong HTML beautification starting with v1.6.5 ([#1115](https://github.com/beautify-web/js-beautify/issues/1115))
* Ignore linebreak when meet handlebar ([#1104](https://github.com/beautify-web/js-beautify/pull/1104))
* Lines are not un-indented correctly when attributes are wrapped ([#1103](https://github.com/beautify-web/js-beautify/issues/1103))
* force-aligned is not aligned when indenting with tabs ([#1102](https://github.com/beautify-web/js-beautify/issues/1102))
* Python package fails to publish  ([#1101](https://github.com/beautify-web/js-beautify/issues/1101))
* Explaination of 'operator_position' is absent from README.md ([#1047](https://github.com/beautify-web/js-beautify/issues/1047))

* Fixed a batch of comment and semicolon-less code bugs

* Incorrect indentation after loop with comment ([#1090](https://github.com/beautify-web/js-beautify/issues/1090))
* Extra newline is inserted after beautifying code with anonymous function ([#1085](https://github.com/beautify-web/js-beautify/issues/1085))
* end brace with next comment line make bad indent ([#1043](https://github.com/beautify-web/js-beautify/issues/1043))
* Javascript comment in last line doesn't beautify well ([#964](https://github.com/beautify-web/js-beautify/issues/964))
* indent doesn't work with comment (jsdoc) ([#913](https://github.com/beautify-web/js-beautify/issues/913))
* Wrong indentation, when new line between chained methods ([#892](https://github.com/beautify-web/js-beautify/issues/892))
* Comments in a non-semicolon style have extra indent ([#815](https://github.com/beautify-web/js-beautify/issues/815))
* [bug] Incorrect indentation due to commented line(s) following a function call with a function argument. ([#713](https://github.com/beautify-web/js-beautify/issues/713))
* Wrong indent formatting ([#569](https://github.com/beautify-web/js-beautify/issues/569))

Added `content_unformatted` option (Thanks @arai-a)

* HTML pre code indentation ([#928](https://github.com/beautify-web/js-beautify/issues/928))
* Beautify script/style tags but ignore their inner JS/CSS content ([#906](https://github.com/beautify-web/js-beautify/issues/906))

* Added support for editorconfig from stdin
* Added js-beautify to cdnjs
* Fixed CRLF to LF for HTML and CSS on windows
* Added inheritance/overriding to config format (Thanks @DaniGuardiola and @HookyQR)
* Added `force-align` to `wrap-attributes` (Thanks @Lukinos)
* Added `force-expand-multiline` to `wrap-attributes` (Thanks @tobias-zucali)
* Added `preserve-inline` as independent brace setting (Thanks @Coburn37)
* Fixed handlebars with angle-braces (Thanks @mmsqe)

* Wrong indentation for comment after nested unbraced control constructs ([#1079](https://github.com/beautify-web/js-beautify/issues/1079))
* Should prefer breaking the line after operator ? instead of before operator < ([#1073](https://github.com/beautify-web/js-beautify/issues/1073))
* New option "force-expand-multiline" for "wrap_attributes" ([#1070](https://github.com/beautify-web/js-beautify/pull/1070))
* Breaks if html file starts with comment ([#1068](https://github.com/beautify-web/js-beautify/issues/1068))
* collapse-preserve-inline restricts users to collapse brace_style ([#1057](https://github.com/beautify-web/js-beautify/issues/1057))
* Parsing failure on numbers with "e" ([#1054](https://github.com/beautify-web/js-beautify/issues/1054))
* Issue with Browser Instructions ([#1053](https://github.com/beautify-web/js-beautify/issues/1053))
* Add preserve inline function for expand style braces ([#1052](https://github.com/beautify-web/js-beautify/issues/1052))
* Update years in LICENSE ([#1038](https://github.com/beautify-web/js-beautify/issues/1038))
* JS. Switch with template literals. Unexpected indentation. ([#1030](https://github.com/beautify-web/js-beautify/issues/1030))
* The object with spread object formatted not correctly ([#1023](https://github.com/beautify-web/js-beautify/issues/1023))
* Bad output generator function in class ([#1013](https://github.com/beautify-web/js-beautify/issues/1013))
* Support editorconfig for stdin ([#1012](https://github.com/beautify-web/js-beautify/issues/1012))
* Publish to cdnjs ([#992](https://github.com/beautify-web/js-beautify/issues/992))
* breaks if handlebars comments contain handlebars tags ([#930](https://github.com/beautify-web/js-beautify/issues/930))
* Using jsbeautifyrc is broken ([#929](https://github.com/beautify-web/js-beautify/issues/929))
* Option to put HTML attributes on their own lines, aligned ([#916](https://github.com/beautify-web/js-beautify/issues/916))
* Erroneously changes CRLF to LF on Windows in HTML and CSS ([#899](https://github.com/beautify-web/js-beautify/issues/899))
* Weird space in {get } vs { normal } ([#888](https://github.com/beautify-web/js-beautify/issues/888))
* Bad for-of formatting with constant Array ([#875](https://github.com/beautify-web/js-beautify/issues/875))
* Problems with filter property in css and scss ([#755](https://github.com/beautify-web/js-beautify/issues/755))
* Add "collapse-one-line" option for non-collapse brace styles  ([#487](https://github.com/beautify-web/js-beautify/issues/487))

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=99e2edbfbc6f214c36147bdc46182a2af279ed45

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-jsbeautifier/ALTERNATIVES | 1 +
 py-jsbeautifier/Makefile     | 5 ++++-
 py-jsbeautifier/PLIST        | 2 +-
 py-jsbeautifier/distinfo     | 8 ++++----
 4 files changed, 10 insertions(+), 6 deletions(-)

diffs:
diff --git a/py-jsbeautifier/ALTERNATIVES b/py-jsbeautifier/ALTERNATIVES
new file mode 100644
index 0000000000..1ef5ed64a5
--- /dev/null
+++ b/py-jsbeautifier/ALTERNATIVES
@@ -0,0 +1 @@
+bin/js-beautify @PREFIX@/bin/js-beautify-@PYVERSSUFFIX@
diff --git a/py-jsbeautifier/Makefile b/py-jsbeautifier/Makefile
index 7000d58266..6d4f39f638 100644
--- a/py-jsbeautifier/Makefile
+++ b/py-jsbeautifier/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	jsbeautifier-1.6.4
+DISTNAME=	jsbeautifier-1.6.12
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
 MASTER_SITES=	${MASTER_SITE_PYPI:=j/jsbeautifier/}
@@ -15,5 +15,8 @@ DEPENDS+=	${PYPKGPREFIX}-six>=1.6.1:../../lang/py-six
 
 USE_LANGUAGES=	# none
 
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/bin/js-beautify ${DESTDIR}${PREFIX}/bin/js-beautify-${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-jsbeautifier/PLIST b/py-jsbeautifier/PLIST
index 9e1ba5d029..5f1307ce77 100644
--- a/py-jsbeautifier/PLIST
+++ b/py-jsbeautifier/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD$
-bin/js-beautify
+bin/js-beautify-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
diff --git a/py-jsbeautifier/distinfo b/py-jsbeautifier/distinfo
index e6e7979f12..379621afd2 100644
--- a/py-jsbeautifier/distinfo
+++ b/py-jsbeautifier/distinfo
@@ -1,6 +1,6 @@
 $NetBSD$
 
-SHA1 (jsbeautifier-1.6.4.tar.gz) = c16805d2cc6d7710b128b1b6f451d9df32b42b61
-RMD160 (jsbeautifier-1.6.4.tar.gz) = 1728ebfc50ff56ecd371dde0cb44a8d0c3d6eb2e
-SHA512 (jsbeautifier-1.6.4.tar.gz) = d58f4f0fb7f7a114891a8218c423b2fadaf2b6e1259f9ddf9e417564dcdb082f66ed24a924ba785784fdf02a7d8e3c851666f4c25e2fd6a0861ce34872a3196f
-Size (jsbeautifier-1.6.4.tar.gz) = 51139 bytes
+SHA1 (jsbeautifier-1.6.12.tar.gz) = 61307c7de64f9cb5e2eed79585e5aeb606c85289
+RMD160 (jsbeautifier-1.6.12.tar.gz) = 46f2f79018fdc30e0b8bcea6728c1719bbad6e36
+SHA512 (jsbeautifier-1.6.12.tar.gz) = b9281dd807f11f4bc419e7bfb55652471393be39daa61f0b72ae607864952a8ae576832d757ac31847eb8364c7cc08ed0899c8911c3416775359de4522c28824
+Size (jsbeautifier-1.6.12.tar.gz) = 55636 bytes


Home | Main Index | Thread Index | Old Index