mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
emacs: new package for pgtk
This commit is contained in:
parent
e3cd5dcfba
commit
de5a2ab190
2 changed files with 20 additions and 1 deletions
1
srcpkgs/emacs-pgtk
Symbolic link
1
srcpkgs/emacs-pgtk
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
emacs
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'emacs'
|
# Template file for 'emacs'
|
||||||
pkgname=emacs
|
pkgname=emacs
|
||||||
version=29.1
|
version=29.1
|
||||||
revision=1
|
revision=2
|
||||||
create_wrksrc=required
|
create_wrksrc=required
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-file-notification=inotify --with-modules
|
configure_args="--with-file-notification=inotify --with-modules
|
||||||
|
@ -56,6 +56,7 @@ post_extract() {
|
||||||
cp -a emacs-* nox
|
cp -a emacs-* nox
|
||||||
cp -a emacs-* x11
|
cp -a emacs-* x11
|
||||||
cp -a emacs-* gtk3
|
cp -a emacs-* gtk3
|
||||||
|
cp -a emacs-* pgtk
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
|
@ -70,12 +71,16 @@ do_configure() {
|
||||||
|
|
||||||
cd $wrksrc/gtk3
|
cd $wrksrc/gtk3
|
||||||
./configure --with-x-toolkit=gtk3 --with-xwidgets ${configure_args}
|
./configure --with-x-toolkit=gtk3 --with-xwidgets ${configure_args}
|
||||||
|
|
||||||
|
cd $wrksrc/pgtk
|
||||||
|
./configure --with-pgtk ${configure_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make ${makejobs} -C nox
|
make ${makejobs} -C nox
|
||||||
make ${makejobs} -C x11
|
make ${makejobs} -C x11
|
||||||
make ${makejobs} -C gtk3
|
make ${makejobs} -C gtk3
|
||||||
|
make ${makejobs} -C pgtk
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
@ -124,3 +129,16 @@ emacs-gtk3_package() {
|
||||||
rm -rf ${PKGDESTDIR}/usr/lib/systemd
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue