From 27f3057db6bf942c85b41f714f06f776458d56d7 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 16 Apr 2022 18:31:18 +0200 Subject: [PATCH] emacs: remove emacs-common-eln, put eln into binary packages. The builds have different hashes, so the .eln files cannot be shared. --- srcpkgs/emacs-common-eln | 1 - srcpkgs/emacs/template | 28 +++++----------------------- 2 files changed, 5 insertions(+), 24 deletions(-) delete mode 120000 srcpkgs/emacs-common-eln diff --git a/srcpkgs/emacs-common-eln b/srcpkgs/emacs-common-eln deleted file mode 120000 index a7642dd168d..00000000000 --- a/srcpkgs/emacs-common-eln +++ /dev/null @@ -1 +0,0 @@ -emacs \ No newline at end of file diff --git a/srcpkgs/emacs/template b/srcpkgs/emacs/template index aae0e3f6d22..b3130b1198d 100644 --- a/srcpkgs/emacs/template +++ b/srcpkgs/emacs/template @@ -1,7 +1,7 @@ # Template file for 'emacs' pkgname=emacs version=28.1 -revision=2 +revision=3 build_style=gnu-configure configure_args="--with-file-notification=inotify --with-modules $(vopt_with jpeg) $(vopt_with tiff) $(vopt_with gif) $(vopt_with png) @@ -68,12 +68,11 @@ do_configure() { do_build() { make ${makejobs} -C nox make ${makejobs} -C x11 $(vopt_if nativecomp NATIVE_FULL_AOT=1) - make ${makejobs} -C gtk3 + make ${makejobs} -C gtk3 $(vopt_if nativecomp NATIVE_FULL_AOT=1) } do_install() { make DESTDIR=$DESTDIR -C ${wrksrc}/nox install - make DESTDIR=$DESTDIR -C ${wrksrc}/x11 install-eln rm -f ${DESTDIR}/usr/bin/ctags rm -f ${DESTDIR}/usr/lib/systemd/user/emacs.service rm -f ${DESTDIR}/usr/share/man/man1/ctags.1* @@ -84,6 +83,7 @@ do_install() { emacs-common_package() { short_desc+=" - common files" + replaces="emacs-common-eln>=0" pkg_install() { vmove usr/share/emacs vmove usr/share/man @@ -92,23 +92,8 @@ emacs-common_package() { } } -emacs-common-eln_package() { - short_desc+=" - common precompiled elisp" - if [ -z "$build_option_nativecomp" ]; then - build_style=meta - fi - pkg_install() { - if [ "$build_option_nativecomp" ]; then - vmove usr/lib/emacs - fi - } -} - emacs-x11_package() { depends="emacs-common-${version}_${revision}" - if [ "$build_option_nativecomp" ]; then - depends+=" emacs-common-eln-${version}_${revision}" - fi provides="emacs-${version}_${revision}" replaces="emacs>=0" short_desc+=" - X11 version" @@ -116,15 +101,12 @@ emacs-x11_package() { make DESTDIR=${PKGDESTDIR} -C ${wrksrc}/x11 install rm -f ${PKGDESTDIR}/usr/bin/ctags rm -rf ${PKGDESTDIR}/usr/share - rm -rf ${PKGDESTDIR}/usr/lib + rm -rf ${PKGDESTDIR}/usr/lib/systemd } } emacs-gtk3_package() { depends="emacs-common-${version}_${revision} desktop-file-utils hicolor-icon-theme" - if [ "$build_option_nativecomp" ]; then - depends+=" emacs-common-eln-${version}_${revision}" - fi provides="emacs-${version}_${revision}" replaces="emacs>=0" short_desc+=" - GTK+3 version" @@ -132,6 +114,6 @@ emacs-gtk3_package() { make DESTDIR=${PKGDESTDIR} -C ${wrksrc}/gtk3 install rm -f ${PKGDESTDIR}/usr/bin/ctags rm -rf ${PKGDESTDIR}/usr/share/{emacs,man,info} - rm -rf ${PKGDESTDIR}/usr/lib + rm -rf ${PKGDESTDIR}/usr/lib/systemd } }