X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id DF365DC08F8 for ; Mon, 1 Feb 2016 00:09:17 +0000 (UTC) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id A74FBDC00AD for ; Mon, 1 Feb 2016 00:09:17 +0000 (UTC) Received: by mail-pa0-f45.google.com with SMTP id ho8so71536684pac.2 for ; Sun, 31 Jan 2016 16:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=I1C4FlbfjSTlxOry18Z1JAr8VADXTn3IuC5JRLIkLgU=; b=0XJ2nnDS+d6qqFMJuOTTOzgZxzxE699DxQrFuomrBLZMo+9WxRgi2tiw7G0b7ptW3T rAUX2smIGIBc2fB/bvJb+WPxqD67UbWuLfMzmTHp/JwHzqUJ0i3Tq/b1NV84znGkSxHN L6XFCqP1m/sBFcrBdHmhNj3595Y2CZuN5GokSs73Fb4EM7xT5yljDku99PD0IKEa+3KQ Jn6TnVALQP6gr8hh38h+SrmJHNKcUqpK3aGFsy6elT5oGJei1XcpZWJzXb9/PbEjpCzM BzRRg9vhktOiLnP4xAxlfibJms++EcUEvxYjZCSHvPtfT0Sa4MOUu1FxjynC4jB0P8MP hjug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=I1C4FlbfjSTlxOry18Z1JAr8VADXTn3IuC5JRLIkLgU=; b=DFNtJsD2HYv6wwQxm3JRKdFxiJk+/PGg2V7S/+0DAN4dENni8lc20ACqUBC3Xy19XH Iyk8bLuw7Kysc0LViebQHy5hTb1CssukMGPWYcinELK9YIQRG3EFVpn7dDlTLUZ5Gy23 HvFZU7ICg31flWjKpUt08yNAZ4BCvbDDvSHCB59lVUmdHa+iG/G20+wzCfz4lCEjBSmg s7p6BqTdFG6/qztCSHHDs1Ne4C5vv8zTEHyMZB3ECm1I2vpIQ6cgWmATxuwjq1w8vRmP VNxAoog8An4Z9F2FvLHXkzEJdnat+DUVuxGQdNeOJnjTChmDZQpL+ebzbogpx5euJ2hC MImA== X-Gm-Message-State: AG10YOT6d/d6BuKPwWxZMuGnd3d+ooQ2xvuWxfE6tPNJ7cU9ySSr+1DlZwmjkklXLesQRw== X-Received: by 10.66.255.39 with SMTP id an7mr33635831pad.101.1454285356307; Sun, 31 Jan 2016 16:09:16 -0800 (PST) Received: from gmail.com (ec2-54-201-22-187.us-west-2.compute.amazonaws.com. [54.201.22.187]) by smtp.gmail.com with ESMTPSA id r77sm4493679pfa.47.2016.01.31.16.09.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jan 2016 16:09:15 -0800 (PST) Date: Mon, 1 Feb 2016 00:09:14 +0000 From: Paul Morgan To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/editorconfig: new aport Message-ID: <20160201000913.GA15574@gmail.com> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: VIM - Vi IMproved 7.4 X-Mailer: Mutt 1.5.24 X-do-not-ask: 0xf59e77c2 X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF59E77C2 User-Agent: Mutt/1.5.24 (2015-08-30) X-Virus-Scanned: ClamAV using ClamSMTP EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. This package provides the standalone editorconfig core binary and library that is needed by various plugins. For example, the vim plugin (not in this package) depends on the editorconfig binary (this package) since vim is compiled without python support on Alpine. --- testing/editorconfig/APKBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 testing/editorconfig/APKBUILD diff --git a/testing/editorconfig/APKBUILD b/testing/editorconfig/APKBUILD new file mode 100644 index 0000000..a69dbde --- /dev/null +++ b/testing/editorconfig/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: +# Maintainer: Paul Morgan +pkgname=editorconfig +pkgver=0.12.0 +pkgrel=0 +pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)" +url="https://github.com/editorconfig/editorconfig-core-c" +arch="x86_64" +license="BSD" # "Simplified" http://opensource.org/licenses/BSD-2-Clause +depends="pcre" +depends_dev="cmake doxygen gcc make musl-dev pcre-dev" +makedepends="$depends_dev" +install="" +options="" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/editorconfig-core-c/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-core-c-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + cmake . \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + # Remove symlink to editorconfig-$pkgver + rm -f "$pkgdir/usr/bin/$pkgname" || return 1 + # Rename editorconfig-$pkgver as editorconfig + mv -f "$pkgdir/usr/bin/$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" || return 1 +} + +md5sums="7bb7d82145984acf0b3568d161815b75 editorconfig-0.12.0.tar.gz" +sha256sums="a53b67aca5ba307c37e9e002fa6cc5e5399ac0099eaeeca700ad703ee6e5278b editorconfig-0.12.0.tar.gz" +sha512sums="5e3576a202823da0c78535b549efc29656d8fc15231ece2ad8e701bf2f7d76b14dc02e445dc71ea6a6da6fbcc624eac82539380e77a25111f215ace3f3a516e1 editorconfig-0.12.0.tar.gz" -- 2.7.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---