Skip to content

Commit

Permalink
emacs|emas-devel|emacs-app|emacs-app-devel: bump revisions and fix va…
Browse files Browse the repository at this point in the history
…riants

* set emacs-devel and emacs-app-devel to use HEAD
* move dbus variant under emacs and emacs-devel
* hide inline variant from emacs-app-devel
* only patch src/dbusbind.c when building dbus variant
* update git.url
* bump revisions for emacs and emacs-app
* remove emacs-devel src/dbusbind.c patch cos	it's the same as emacs'

References: https://trac.macports.org/ticket/56423
            #1936
            #1948
  • Loading branch information
wyuenho authored and drkp committed Jun 7, 2018
1 parent e2b0b15 commit e52ab5a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 35 deletions.
43 changes: 19 additions & 24 deletions editors/emacs/Portfile
Expand Up @@ -38,7 +38,7 @@ depends_build-append port:autoconf port:automake port:libtool

if {$subport eq $name || $subport eq "emacs-app"} {
version 26.1
revision 0
revision 1

checksums rmd160 f13fe104345738c853bcce2e3e061dbfb8692bc5 \
sha256 760382d5e8cdc5d0d079e8f754bce1136fbe1473be24bb885669b0e38fc56aa3 \
Expand All @@ -52,18 +52,10 @@ if {$subport eq $name || $subport eq "emacs-app"} {
}

if {$subport eq "emacs-devel" || $subport eq "emacs-app-devel"} {
version 20170918
revision 1
version HEAD

fetch.type git
#git.url git://git.savannah.gnu.org/emacs.git
git.url http://git.savannah.gnu.org/r/emacs.git
git.branch 0bddbbc5aae621d5875880ac3e63f68d481df7c3

# our dbus is autolaunched by launchd, so disable the check that it's running
# this patchfile is slightly different for emacs-devel
patchfiles patch-devel-src_dbusbind.c.diff

git.url git://git.sv.gnu.org/emacs.git

pre-configure {
system -W ${worksrcpath} "sh ./autogen.sh"
Expand Down Expand Up @@ -169,20 +161,21 @@ if {$subport eq $name || $subport eq "emacs-devel"} {
configure.args-append --with-imagemagick
}

variant dbus description {Builds emacs with D-Bus support} {
# our dbus is autolaunched by launchd, so disable the check that it's running
patchfiles-append patch-src_dbusbind.c.diff
configure.args-delete --without-dbus
configure.args-append --with-dbus
depends_lib-append port:dbus
}

post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/include/emacs
xinstall -m 644 ${worksrcpath}/src/emacs-module.h \
${destroot}${prefix}/include/emacs
}
}

variant dbus description {Builds emacs with D-Bus support} {
configure.args-delete --without-dbus
configure.args-append --with-dbus
depends_lib-append port:dbus
}


if {$subport eq "emacs-app" || $subport eq "emacs-app-devel"} {
categories-append aqua

Expand All @@ -204,10 +197,14 @@ if {$subport eq "emacs-app" || $subport eq "emacs-app-devel"} {
${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
}

variant inline description {Apply inline patch} {
# https://gist.github.com/takaxp/5294b6c52782d0be0b25342be62e4a77
patchfiles-append patch-inline-25.2-20170426.diff
build.target bootstrap
if {$subport eq "emacs-app"} {
variant inline description {Apply inline patch} {
# https://gist.github.com/takaxp/5294b6c52782d0be0b25342be62e4a77
patchfiles-append patch-inline-25.2-20170426.diff
build.target bootstrap
}

default_variants +inline
}

variant multicolor_font description {Apply multicolor font patch} {
Expand All @@ -220,6 +217,4 @@ if {$subport eq "emacs-app" || $subport eq "emacs-app-devel"} {
depends_lib-append port:ImageMagick
configure.args-append --with-imagemagick
}

default_variants +inline
}
11 changes: 0 additions & 11 deletions editors/emacs/files/patch-devel-src_dbusbind.c.diff

This file was deleted.

0 comments on commit e52ab5a

Please sign in to comment.