Files
chromebrew/packages/gemacs.rb
Satadru Pramanik 194b87b188 Gnome43/Libjpeg_turbo/ICU72.1 (#7508)
* crew: cache builds

* Initial Gnome43/Libjpeg_turbo/ICU72 commits squashed

* fix lint error

* update packages.yaml

* Vulkan packages -> 1.3.231

* add packages to packages.yaml

* add more to packages.yaml

* update libxshmfence

* pixman -> 0.42.0

* libpciaccess -> 0.17.0

* update libxau

* update libxfont2

* update libxcb

* many updates

* updates

* baobab updates

* add libshumate

* update gnome_calculator

* update dfonf_editor

* update evince

* add libpanel

* update libpeas

* update libgweather

* update libgudev gnome_maps

* update upower and libxfixes

* style update

* update gnome_session

* update gnome_settings_daemon

* temporary partial webkit2gtk upload

* update packages.yaml

* fix ruby file perms

* update folks

* move webkit2gtk_4 back to 2.38.0

* update icu4c, change webkit2gtk build

* add updated webkit2gtk_5 file

* update js102

* add x86 builds for webkit2gtk_4

* add mozjs exclusion to icu4c postinstall

* add builds for evolution_data_server

* update gemacs

* update webkit2gtk packages

* update emacs

* add folks fix

* loosen icu4c postinstall check

* rebuild libportal with gtk3

* update epiphany

* openssh -> 9.1

* add x86 webkit2gtk_4 binaries

* add postinstall to webkit2gtk_4

* update svt_av1

* update libavif

* linting fix

* curl -> 7.86.0

* git -> 2.38.1

* add postinstall to gnome_console

* add gcc10 for armv7l

* add gcc10 binaries

* lint gcc10

* rebase fix

* Add WIP webkit2gtk builds

* add back postintall to gnome_maps

* gstreamer version change

* cleanup geocode_glib, and fix gnome_maps depend

* s/@_ver.to_s/@_ver/

* add mpv build and gtk4 -> 4.8.2

* bump curl version to 7.86.0

* remove other version binaries from webkit2gtk builds

* add i686 build

* adjust compatibility for gemacs... for now.

* Add code to sommelier to adjust for whether scripts are sourced or run.

* make -> 4.4

* bump version
2022-11-01 12:23:38 -05:00

93 lines
2.8 KiB
Ruby

require 'package'
class Gemacs < Package
description 'An extensible, customizable, free/libre text editor - and more.'
homepage 'https://www.gnu.org/software/emacs/'
version '28.2'
license 'GPL-3+, FDL-1.3+, BSD, HPND, MIT, W3C, unicode, PSF-2'
compatibility 'x86_64 i686'
source_url 'https://ftpmirror.gnu.org/emacs/emacs-28.2.tar.xz'
source_sha256 'ee21182233ef3232dc97b486af2d86e14042dbb65bbc535df562c3a858232488'
binary_url({
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gemacs/28.2_i686/gemacs-28.2-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gemacs/28.2_x86_64/gemacs-28.2-chromeos-x86_64.tar.zst'
})
binary_sha256({
i686: 'd3c1c2133ca735512de8b77069093f78110a41377962080a69271d5052d18a46',
x86_64: 'ed1a8eacde7a8a17be9fb11a2bcdf83d3ce03ba3d78ebbb71884f808f515debd'
})
depends_on 'acl' # R
depends_on 'alsa_lib' # R
depends_on 'atk' # R
depends_on 'at_spi2_core' # R
depends_on 'cairo'
depends_on 'dbus' # R
depends_on 'freetype' # R
depends_on 'gcc' # R
depends_on 'gdk_pixbuf' # R
depends_on 'giflib' # R
depends_on 'glibc' # R
depends_on 'glib' # R
depends_on 'gmp' # R
depends_on 'gnutls' # R
depends_on 'gpm' # R
depends_on 'gtk3' # R
depends_on 'harfbuzz' # R
depends_on 'jansson' # R
depends_on 'lcms' # R
depends_on 'libice' # R
depends_on 'libjpeg' # R
depends_on 'libotf' # R
depends_on 'libpng' # R
depends_on 'librsvg' # R
depends_on 'libsm' # R
depends_on 'libsoup2' # R
depends_on 'libtiff' # R
depends_on 'libx11' # R
depends_on 'libxcb' # R
depends_on 'libxcomposite' # R
depends_on 'libxext' # R
depends_on 'libxfixes' # R
depends_on 'libxinerama' # R
depends_on 'libxml2' # R
depends_on 'libxpm' # R
depends_on 'libxrandr' # R
depends_on 'libxrender' # R
depends_on 'ncurses' # R
depends_on 'pango' # R
depends_on 'texinfo'
depends_on 'webkit2gtk'
depends_on 'zlibpkg' # R
def self.build
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system "./configure \
--enable-link-time-optimization \
--localstatedir=#{CREW_PREFIX}/share \
--prefix=#{CREW_PREFIX} \
--with-cairo \
--with-gif=ifavailable \
--with-jpeg=yes \
--with-modules \
--with-native-compilation \
--without-gconf \
--without-gsettings \
--without-selinux \
--with-png=yes \
--with-rsvg=yes \
--with-sound=alsa \
--with-tiff=ifavailable \
--with-x-toolkit=gtk3 \
--with-xwidgets"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.install 'src/emacs', "#{CREW_DEST_PREFIX}/bin/gemacs", mode: 0o755
FileUtils.install 'src/emacs', "#{CREW_DEST_PREFIX}/bin/gemacs-#{version}", mode: 0o755
end
end