Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] emacs: new package for pgtk
@ 2023-08-01 15:16 sgn
  2023-08-01 16:16 ` icp1994
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sgn @ 2023-08-01 15:16 UTC (permalink / raw)
  To: ml

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

There is a new 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: 1984 bytes --]

From 92ec8a4bcb4fbca7e4b635cfb4185db7163d612b 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 1124bd4da106d..2375cbd25e807 100644
--- a/srcpkgs/emacs/template
+++ b/srcpkgs/emacs/template
@@ -1,7 +1,7 @@
 # Template file for 'emacs'
 pkgname=emacs
 version=29.0.92
-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
+	}
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-29 14:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 15:16 [PR PATCH] emacs: new package for pgtk 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 ` [PR PATCH] [Updated] " sgn
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

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).