Github messages for voidlinux
 help / color / mirror / Atom feed
From: bingulo <bingulo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: civetweb-1.15
Date: Tue, 02 Aug 2022 18:46:40 +0200	[thread overview]
Message-ID: <20220802164640.7e1r3fhknYajXOnBUL8365AqMCEl6vz2Fl5IvUX-Uh8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38419@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

There is an updated pull request by bingulo against master on the void-packages repository

https://github.com/bingulo/void-packages master
https://github.com/void-linux/void-packages/pull/38419

New package: civetweb-1.15
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_664-LIBC)


A patch file from https://github.com/void-linux/void-packages/pull/38419.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-38419.patch --]
[-- Type: text/x-diff, Size: 4683 bytes --]

From d1c8514699947f1c6dc0c14cb2bc46ce4044b798 Mon Sep 17 00:00:00 2001
From: bingulo <gcarlos@disroot.org>
Date: Tue, 2 Aug 2022 00:16:13 -0300
Subject: [PATCH 1/3] New package: civetweb-1.15

---
 srcpkgs/civetweb-devel                     |  1 +
 srcpkgs/civetweb-doc                       |  1 +
 srcpkgs/civetweb/patches/install-fix.patch | 16 +++++++++
 srcpkgs/civetweb/template                  | 42 ++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 120000 srcpkgs/civetweb-devel
 create mode 120000 srcpkgs/civetweb-doc
 create mode 100644 srcpkgs/civetweb/patches/install-fix.patch
 create mode 100644 srcpkgs/civetweb/template

diff --git a/srcpkgs/civetweb-devel b/srcpkgs/civetweb-devel
new file mode 120000
index 000000000000..f740b5313316
--- /dev/null
+++ b/srcpkgs/civetweb-devel
@@ -0,0 +1 @@
+civetweb
\ No newline at end of file
diff --git a/srcpkgs/civetweb-doc b/srcpkgs/civetweb-doc
new file mode 120000
index 000000000000..f740b5313316
--- /dev/null
+++ b/srcpkgs/civetweb-doc
@@ -0,0 +1 @@
+civetweb
\ No newline at end of file
diff --git a/srcpkgs/civetweb/patches/install-fix.patch b/srcpkgs/civetweb/patches/install-fix.patch
new file mode 100644
index 000000000000..be282dbf613c
--- /dev/null
+++ b/srcpkgs/civetweb/patches/install-fix.patch
@@ -0,0 +1,16 @@
+--- a/Makefile
++++ b/Makefile
+@@ -19,10 +19,10 @@
+ # http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
+ PREFIX ?= /usr/local
+ EXEC_PREFIX = $(PREFIX)
+-BINDIR = $(EXEC_PREFIX)/bin
+-DATAROOTDIR = $(PREFIX)/share
++BINDIR = $(DESTDIR)$(EXEC_PREFIX)/bin
++DATAROOTDIR = $(DESTDIR)$(PREFIX)/share
+ DOCDIR = $(DATAROOTDIR)/doc/$(CPROG)
+-SYSCONFDIR ?= $(PREFIX)/etc
++SYSCONFDIR ?= $(DESTDIR)/etc
+ HTMLDIR = $(DOCDIR)
+ INCLUDEDIR = $(DESTDIR)$(PREFIX)/include
+ LIBDIR = $(DESTDIR)$(EXEC_PREFIX)/lib
diff --git a/srcpkgs/civetweb/template b/srcpkgs/civetweb/template
new file mode 100644
index 000000000000..540808c22aca
--- /dev/null
+++ b/srcpkgs/civetweb/template
@@ -0,0 +1,42 @@
+# Template file for 'civetweb'
+pkgname=civetweb
+version=1.15
+revision=1
+build_style=gnu-makefile
+make_install_target="install install-headers install-lib install-slib"
+make_use_env=yes
+hostmakedepends="openssl-devel"
+makedepends="openssl-devel"
+short_desc="Embedded C/C++ web server"
+maintainer="bingulo <gcarlos@disroot.org>"
+license="MIT"
+homepage="https://civetweb.github.io/civetweb/"
+distfiles="https://github.com/civetweb/civetweb/archive/refs/tags/v${version}.tar.gz"
+checksum=90a533422944ab327a4fbb9969f0845d0dba05354f9cacce3a5005fa59f593b9
+
+pre_install() {
+	vmkdir usr/include
+}
+
+post_install() {
+	vlicense LICENSE.md
+}
+
+civetweb-devel_package() {
+	depends="civetweb-${version}_${revision}"
+		short_desc+=' - development files'
+		pkg_install() {
+			vmove usr/include
+				vmove "usr/lib/*.a"
+				vmove "usr/lib/*.so"
+				vmove "usr/lib/*.so.1"
+		}
+}
+
+civetweb-doc_package() {
+	depends="civetweb-${version}_${revision}"
+		short_desc+=' - documentation'
+		pkg_install() {
+			vmove usr/share/doc
+		}
+}

From c7a942b6f7a30e5d20809514478fc7af4918689b Mon Sep 17 00:00:00 2001
From: Carlos Eduardo Gallo Filho <gcarlos@disroot.org>
Date: Tue, 2 Aug 2022 13:46:25 -0300
Subject: [PATCH 2/3] Update srcpkgs/civetweb/template

Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com>
---
 srcpkgs/civetweb/template | 1 -
 1 file changed, 1 deletion(-)

diff --git a/srcpkgs/civetweb/template b/srcpkgs/civetweb/template
index 540808c22aca..3f923f3b6825 100644
--- a/srcpkgs/civetweb/template
+++ b/srcpkgs/civetweb/template
@@ -5,7 +5,6 @@ revision=1
 build_style=gnu-makefile
 make_install_target="install install-headers install-lib install-slib"
 make_use_env=yes
-hostmakedepends="openssl-devel"
 makedepends="openssl-devel"
 short_desc="Embedded C/C++ web server"
 maintainer="bingulo <gcarlos@disroot.org>"

From 0642bbc47d66df9846fc6585b7d0151e69811ff0 Mon Sep 17 00:00:00 2001
From: Carlos Eduardo Gallo Filho <gcarlos@disroot.org>
Date: Tue, 2 Aug 2022 13:46:38 -0300
Subject: [PATCH 3/3] Update srcpkgs/civetweb/template

Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com>
---
 srcpkgs/civetweb/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/civetweb/template b/srcpkgs/civetweb/template
index 3f923f3b6825..54b70cbe0bdf 100644
--- a/srcpkgs/civetweb/template
+++ b/srcpkgs/civetweb/template
@@ -22,7 +22,7 @@ post_install() {
 }
 
 civetweb-devel_package() {
-	depends="civetweb-${version}_${revision}"
+	depends="${sourcepkg}>=${version}_${revision}"
 		short_desc+=' - development files'
 		pkg_install() {
 			vmove usr/include

  parent reply	other threads:[~2022-08-02 16:46 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02  3:27 [PR PATCH] " bingulo
2022-08-02  3:41 ` [PR REVIEW] " classabbyamp
2022-08-02  3:41 ` classabbyamp
2022-08-02  3:41 ` classabbyamp
2022-08-02  3:41 ` classabbyamp
2022-08-02 16:46 ` [PR PATCH] [Updated] " bingulo
2022-08-02 16:46 ` bingulo [this message]
2022-08-02 16:47 ` bingulo
2022-08-02 16:47 ` [PR REVIEW] " bingulo
2022-08-02 16:54 ` [PR PATCH] [Updated] " bingulo
2022-08-02 16:55 ` [PR REVIEW] " classabbyamp
2022-08-02 16:58 ` [PR PATCH] [Updated] " bingulo
2022-08-02 17:02 ` classabbyamp
2022-08-02 17:07 ` bingulo
2022-08-02 17:13 ` classabbyamp
2022-08-02 17:36 ` [PR PATCH] [Updated] " bingulo
2022-08-02 17:40 ` bingulo
2022-08-02 18:01 ` bingulo
2022-08-02 18:04 ` classabbyamp
2022-08-02 18:08 ` [PR PATCH] [Updated] " bingulo
2022-08-02 18:10 ` classabbyamp
2022-08-02 18:13 ` [PR PATCH] [Updated] " bingulo
2022-08-02 18:15 ` classabbyamp
2022-08-02 18:19 ` bingulo
2022-08-02 18:21 ` classabbyamp
2022-08-02 18:23 ` [PR PATCH] [Updated] " bingulo
2022-08-02 20:07 ` bingulo
2022-08-02 20:08 ` classabbyamp
2022-08-02 20:09 ` [PR PATCH] [Updated] " bingulo
2022-08-02 20:13 ` classabbyamp
2022-08-02 20:14 ` bingulo
2022-08-02 20:16 ` [PR PATCH] [Updated] " bingulo
2022-08-02 20:21 ` bingulo
2022-08-02 20:23 ` bingulo
2022-08-03 15:30 ` paper42
2022-08-03 16:39 ` [PR PATCH] [Updated] " bingulo
2022-08-03 16:40 ` bingulo
2022-08-03 16:42 ` bingulo
2022-08-07  2:28 ` [PR PATCH] [Updated] " bingulo
2022-08-08 17:34 ` bingulo
2022-08-08 17:34 ` [PR PATCH] [Closed]: " bingulo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220802164640.7e1r3fhknYajXOnBUL8365AqMCEl6vz2Fl5IvUX-Uh8@z \
    --to=bingulo@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).