Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] emacs: new package for pgtk
Date: Thu, 03 Aug 2023 03:40:37 +0200	[thread overview]
Message-ID: <20230803014037.ym-v-xxTHuPrgT57dmrCJhY9dahVkhdacTbm3q0XKeM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45373@inbox.vuxu.org>

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

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

https://github.com/sgn/void-packages emacs-pgtk
https://github.com/void-linux/void-packages/pull/45373

emacs: new package for pgtk
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- 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, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From de5a2ab1907702c3d485171eff20b2c64a32a2df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Tue, 1 Aug 2023 22:14:33 +0700
Subject: [PATCH] emacs: new package for pgtk

---
 srcpkgs/emacs-pgtk     |  1 +
 srcpkgs/emacs/template | 20 +++++++++++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/emacs-pgtk

diff --git a/srcpkgs/emacs-pgtk b/srcpkgs/emacs-pgtk
new file mode 120000
index 0000000000000..a7642dd168d67
--- /dev/null
+++ b/srcpkgs/emacs-pgtk
@@ -0,0 +1 @@
+emacs
\ No newline at end of file
diff --git a/srcpkgs/emacs/template b/srcpkgs/emacs/template
index c9f62eb8ebf64..047d05e034383 100644
--- a/srcpkgs/emacs/template
+++ b/srcpkgs/emacs/template
@@ -1,7 +1,7 @@
 # Template file for 'emacs'
 pkgname=emacs
 version=29.1
-revision=1
+revision=2
 create_wrksrc=required
 build_style=gnu-configure
 configure_args="--with-file-notification=inotify --with-modules
@@ -56,6 +56,7 @@ post_extract() {
 	cp -a emacs-* nox
 	cp -a emacs-* x11
 	cp -a emacs-* gtk3
+	cp -a emacs-* pgtk
 }
 
 do_configure() {
@@ -70,12 +71,16 @@ do_configure() {
 
 	cd $wrksrc/gtk3
 	./configure --with-x-toolkit=gtk3 --with-xwidgets ${configure_args}
+
+	cd $wrksrc/pgtk
+	./configure --with-pgtk ${configure_args}
 }
 
 do_build() {
 	make ${makejobs} -C nox
 	make ${makejobs} -C x11
 	make ${makejobs} -C gtk3
+	make ${makejobs} -C pgtk
 }
 
 do_install() {
@@ -124,3 +129,16 @@ emacs-gtk3_package() {
 		rm -rf ${PKGDESTDIR}/usr/lib/systemd
 	}
 }
+
+emacs-pgtk_package() {
+	depends="emacs-common-${version}_${revision} desktop-file-utils hicolor-icon-theme"
+	provides="emacs-${version}_${revision}"
+	replaces="emacs>=0"
+	short_desc+=" - Pure GTK version"
+	pkg_install() {
+		make DESTDIR=${PKGDESTDIR} -C ${wrksrc}/pgtk install
+		rm -f ${PKGDESTDIR}/usr/bin/ctags
+		rm -rf ${PKGDESTDIR}/usr/share/{emacs,man,info}
+		rm -rf ${PKGDESTDIR}/usr/lib/systemd
+	}
+}

  parent reply	other threads:[~2023-08-03  1:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 15:16 [PR PATCH] " sgn
2023-08-01 16:16 ` icp1994
2023-08-01 16:28 ` bmp
2023-08-02  2:44 ` sgn
2023-08-02 18:23 ` leahneukirchen
2023-08-03  1:40 ` sgn [this message]
2023-08-03  1:40 ` [PR PATCH] [Merged]: " sgn
2023-08-29  9:47 ` tomekw
2023-08-29 14:07 ` sgn
2023-08-29 14:12 ` tomekw

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=20230803014037.ym-v-xxTHuPrgT57dmrCJhY9dahVkhdacTbm3q0XKeM@z \
    --to=sgn@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).