X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by lists.alpinelinux.org (Postfix) with ESMTP id 0682BF81F82 for ; Tue, 5 Feb 2019 14:20:49 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id a16so3856229wrv.0 for ; Tue, 05 Feb 2019 06:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=H6lMFfKEYyCKM4LmuiXaQjJpHrrKTDSUR8YO1B+I0Ig=; b=km2fLk5eJFlrenigGDTHaEAeY6BRuqLBkmEnDmT6ym3mcrO2+G03901Keud791uyF9 qLq0tIKxiFbJtDgciTykUXROrTNiFvXwMONmLUiDN98uYD/XLX6Ce3cZy6/Puhr6ZYr4 FLsKFa0GwzmFg+NsoSk4m+fNHHLkzi+gfrMSAcbPFD07kGExj61aAsaJMoI2gtlkGDkZ zQi3tuwl6YGNTRCo4iqqH82BUv8dFYeheLfn2o6/YTRdnqbVvZ82eLZW8wfUkeVtRPZP Mzt3VMqZv8nOjl+ZPMYKuFG+SUoaByyEFv1XKTAlv3lG3LEdMA4FktOkfOaBlYKrzCs9 QjjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H6lMFfKEYyCKM4LmuiXaQjJpHrrKTDSUR8YO1B+I0Ig=; b=EhS5slwGtEFWZTOf6Ts9BLszjzzEpQ9LimkbhNdcpNVYH2xINXquhZ2RxjHgszRcTY uy1vTr6unHO6IpMRFmKycHFgsryB6NBt9wqhjSj/xbG0AsZ46GRzcGrinLMhjjLN2d0q JuNCNifubQ3XpXvblnOgPfDh54+UdG5P5q+Lu0KYxsAtUCqmYt5ri725J9TFNL4iTWLg 6YjDB0E55jtUaV14P0aIfPmnVJc4A7ccpuU6YpkLAyIjCTP4+VA2GbLyoYZvNCJWdTfI z/8L17Sp9k/00j1DNc2yW0uDL5pJTCv2NJ/+fh0JXgy0O94fkuACouIbU/chE9K0Q9Nb bsaQ== X-Gm-Message-State: AHQUAuZWXHReN9WvEnkEJSLCtzPqcss+KylehoZtlgfoEfj0uIT0IBpF AubnUrRP3hHz6aBYVITWbC32maxa X-Google-Smtp-Source: AHgI3IbtClTWA71Pt+ZMEwCDm5dwQc6Cg7pQDtFNXrgXXnJMvcXeOx8yftyTcThPnmVDDKHoQ44ofw== X-Received: by 2002:a5d:5111:: with SMTP id s17mr3755282wrt.43.1549376447884; Tue, 05 Feb 2019 06:20:47 -0800 (PST) Received: from alpine.nodomain (host-77-242-209-97.telecomitalia.sm. [77.242.209.97]) by smtp.gmail.com with ESMTPSA id a132sm26782921wmh.5.2019.02.05.06.20.46 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 05 Feb 2019 06:20:46 -0800 (PST) From: Alex Raschi To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH v2] testing/luakit: enable tests Date: Tue, 5 Feb 2019 15:20:45 +0100 Message-Id: <20190205142045.12926-1-raschi.alex@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190123151052.19776-1-raschi.alex@gmail.com> References: <20190123151052.19776-1-raschi.alex@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-Transfer-Encoding: 8bit * move a dir in -doc subpackage too --- Changes v1 -> v2: - remove doc function testing/luakit/APKBUILD | 25 +++++++++++------ testing/luakit/tests.patch | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 8 deletions(-) create mode 100644 testing/luakit/tests.patch diff --git a/testing/luakit/APKBUILD b/testing/luakit/APKBUILD index d0cbf548d0..825814b4c4 100644 --- a/testing/luakit/APKBUILD +++ b/testing/luakit/APKBUILD @@ -2,18 +2,18 @@ # Maintainer: pkgname=luakit pkgver=2.1 -pkgrel=0 +pkgrel=1 pkgdesc="Fast, small, webkit based browser framework extensible by Lua" -url="https://github.com/luakit/luakit" +url="https://luakit.github.io/" arch="all !s390x" # luajit is missing for s390x -license="GPL-3.0" -depends="lua5.1-filesystem lua5.1-luassert" -depends_dev="" +license="GPL-3.0-or-later" +depends="gsettings-desktop-schemas lua5.1-filesystem" makedepends="webkit2gtk-dev luajit-dev" -install="" +checkdepends="xvfb luacheck lua5.1-luassert" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz - config-mk.patch" + config-mk.patch + tests.patch" builddir="$srcdir/$pkgname-$pkgver" build() { @@ -21,10 +21,19 @@ build() { make PREFIX=/usr USE_LUAJIT=1 DEVELOPMENT_PATHS=0 } +check() { + cd "$builddir" + make run-tests +} + package() { cd "$builddir" make PREFIX=/usr DESTDIR="$pkgdir" install + mkdir -p "$pkgdir"/usr/share/doc/"$pkgname" + mv "$pkgdir"/usr/share/"$pkgname"/doc/* "$pkgdir"/usr/share/doc/"$pkgname" + rmdir "$pkgdir"/usr/share/"$pkgname"/doc } sha512sums="1daee7fe4bf5fad0f2c70d714c316914c601467facafdb22e4f27c18a691e249cefd5680ede834bcc555041afdc5d7e70610e2cd5e33db1ad8d9f2fe0327ccac luakit-2.1.tar.gz -d852a17bf202b18e75bda3885e421a957ce501ebbeb0ecd6e7a6379747e350878c9f95683a0385ce9daa719ddd02a3e5d5143ebd9ee892a469d8457e7a863b5a config-mk.patch" +d852a17bf202b18e75bda3885e421a957ce501ebbeb0ecd6e7a6379747e350878c9f95683a0385ce9daa719ddd02a3e5d5143ebd9ee892a469d8457e7a863b5a config-mk.patch +6d0b3a93b7bedcdd3ebe7283d734d013aa25683a9effc841f4a57aa8f2ea34dc68dc4bd35a22436d28e4011c60243047b72ff8d81affb349912de43e1e20232f tests.patch" diff --git a/testing/luakit/tests.patch b/testing/luakit/tests.patch new file mode 100644 index 0000000000..3d9763f0d4 --- /dev/null +++ b/testing/luakit/tests.patch @@ -0,0 +1,55 @@ +--- a/clib/soup.c ++++ b/clib/soup.c +@@ -106,7 +106,7 @@ luaH_soup_set_cookies_storage(lua_State *L) + luaL_error(L, "cookies_storage cannot be empty"); + g_free(cookies_storage); + cookies_storage = g_strdup(new_path); +- ++ + if ((f = g_fopen(cookies_storage, "a")) != NULL) { + g_chmod(cookies_storage, 0600); + fclose(f); +--- a/lib/binds.lua ++++ b/lib/binds.lua +@@ -496,7 +496,7 @@ modes.add_cmds({ + callback = function (_, err) + w:error(err) + end, +- }) ++ }) + else + w:error("No argument provided") + end +--- a/lib/help_chrome.lua ++++ b/lib/help_chrome.lua +@@ -27,7 +27,8 @@ local index_html_template = [==[ + + + +- ++ +
+

About Luakit

+

Luakit is a highly configurable, browser framework based on the