Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398005 - app-emacs/haml-mode and app-emacs/scss-mode (new packages)
Summary: app-emacs/haml-mode and app-emacs/scss-mode (new packages)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2012-01-07 11:57 UTC by Paul Jewell
Modified: 2018-04-22 20:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
haml-mode-9999.ebuild (haml-mode-9999.ebuild,634 bytes, text/plain)
2012-01-07 11:58 UTC, Paul Jewell
Details
scss-mode-9999.ebuild (scss-mode-9999.ebuild,715 bytes, text/plain)
2012-01-07 11:59 UTC, Paul Jewell
Details
50scss-mode-gentoo.el (50scss-mode-gentoo.el,160 bytes, text/plain)
2012-01-07 12:00 UTC, Paul Jewell
Details
50haml-mode-gentoo.el (50haml-mode-gentoo.el,160 bytes, text/plain)
2012-01-07 12:02 UTC, Paul Jewell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Jewell 2012-01-07 11:57:36 UTC
Using rails and emacs - useful to have scss-mode (which requires haml-mode) for editing scss/sass files.
Ebuilds for both attached, which work here.

Reproducible: Always




For information, here is my emerge --info, in case there is an issue with the ebuilds which somehow hasn't manifested itself here.

Portage 2.1.10.41 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.1.1-gentoo x86_64)
=================================================================
System uname: Linux-3.1.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 07 Jan 2012 06:45:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo lisp lcd-filtering emacs ruby x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo http://gentoo.virginmedia.com/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/lisp /var/lib/layman/lcd-filtering /var/lib/layman/emacs /var/lib/layman/ruby /usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran garmin gdbm gdu gif gimpprint git gnome gpm gpsd gtk iconv ipv6 java jpeg kde kdrive kipi kpathsea lcms ldap libnotify lm_sensors mad mmx mng modules mozbranding mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf phonon plasma plugins png policykit ppds pppd pulseaudio qt3 qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification subversion svg sysfs tcpd thunar tiff truetype udev unicode usb vim-syntax vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon ptp ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" NETBEANS_MODULES="*" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paul Jewell 2012-01-07 11:58:42 UTC
Created attachment 298207 [details]
haml-mode-9999.ebuild
Comment 2 Paul Jewell 2012-01-07 11:59:37 UTC
Created attachment 298209 [details]
scss-mode-9999.ebuild
Comment 3 Paul Jewell 2012-01-07 12:00:31 UTC
Created attachment 298211 [details]
50scss-mode-gentoo.el
Comment 4 Paul Jewell 2012-01-07 12:02:03 UTC
Created attachment 298213 [details]
50haml-mode-gentoo.el
Comment 5 Paul Jewell 2012-01-07 12:02:36 UTC
Uploaded the ebuilds, and the elisp configuration files.
Comment 6 Ulrich Müller gentoo-dev 2012-01-08 16:43:49 UTC
I cannot find any upstream releases or version tags. So these will be snapshots with unwieldy package version numbers like haml-mode-3.0.15_pre20101019 and scss-mode-0.5.0_pre20110901.

Ebuilds look good to me, just some questions and small remarks:

(In reply to comment #1)
> haml-mode-9999.ebuild

> HOMEPAGE="http://github.com/nex3/haml-mode/trunk/"

This doesn't exist, "trunk/" should be deleted.

(In reply to comment #2)
> scss-mode-9999.ebuild

> RDEPEND="app-emacs/haml-mode

Why is this needed?

(In reply to comment #4)
> 50haml-mode-gentoo.el

> (add-to-list 'auto-mode-alist '("\\.haml$" . haml-mode))

"\\.haml\\'" is slightly preferred over "\\.haml$" here, because you want to match end of string (and not end of line).
Comment 7 Paul Jewell 2012-01-11 21:08:08 UTC
(In reply to comment #6)
> I cannot find any upstream releases or version tags. So these will be snapshots
> with unwieldy package version numbers like haml-mode-3.0.15_pre20101019 and
> scss-mode-0.5.0_pre20110901.

I recognised this, which is why I built direct from the git archive.
 
> Ebuilds look good to me, just some questions and small remarks:

I am learning :), so your comments are very welcome - thanks!

> (In reply to comment #1)
> > haml-mode-9999.ebuild
> 
> > HOMEPAGE="http://github.com/nex3/haml-mode/trunk/"
> 
> This doesn't exist, "trunk/" should be deleted.

OK

> (In reply to comment #2)
> > scss-mode-9999.ebuild
> 
> > RDEPEND="app-emacs/haml-mode
> 
> Why is this needed?

scss mode says it needs haml-mode, but to be honest I haven't actually checked the code to see. Should it be RDEPEND or DEPEND? Perhaps I have it in the wrong place.

> (In reply to comment #4)
> > 50haml-mode-gentoo.el
> 
> > (add-to-list 'auto-mode-alist '("\\.haml$" . haml-mode))
> 
> "\\.haml\\'" is slightly preferred over "\\.haml$" here, because you want to
> match end of string (and not end of line).

Thanks - I am learning more about emacs as well at the moment, despite having used it on and off since the late 80's.

Should I make the changes you advised above, and upload them again?
Comment 8 Ulrich Müller gentoo-dev 2012-01-11 21:26:10 UTC
(In reply to comment #7)
> scss mode says it needs haml-mode, but to be honest I haven't actually
> checked the code to see. Should it be RDEPEND or DEPEND? Perhaps I have
> it in the wrong place.

I believe that it's not needed at all: All function names in haml-mode.el start with "haml-", but that string doesn't ever occur in scss-mode.el.

> Should I make the changes you advised above, and upload them again?

No, since these are small changes, I'll apply them myself when committing the ebuilds.
Comment 9 Hans de Graaff gentoo-dev Security 2015-12-21 18:57:36 UTC
app-emacs/scss-mode is in the gentoo tree, and I have a copy of haml-mode in my "graaff" overlay.
Comment 10 Paul Jewell 2018-04-22 20:13:19 UTC
In my opinion, this can now be closed. scss-mode is available in the tree, and as pointed out below haml-mode is available in an overlay. 

Of course both can now be installed from melpa directly into emacs.