First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 175694
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Default Assignee for New Packages <maintainer-wanted@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: MATSUYAMA Tomohiro <matsuyama@ariel-networks.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ecmascript-mode-1.1.ebuild ecmascript-mode-1.1.ebuild text/plain MATSUYAMA Tomohiro 2007-04-23 12:44 0000 452 bytes Details
50ecmascript-mode-gentoo.el 50ecmascript-mode-gentoo.el text/plain MATSUYAMA Tomohiro 2007-04-23 12:45 0000 240 bytes Details
javascript-mode-1.12.ebuild javascript-mode-1.12.ebuild text/plain MATSUYAMA Tomohiro 2007-04-23 12:47 0000 495 bytes Details
50javascript-mode-gentoo.el 50javascript-mode-gentoo.el text/plain MATSUYAMA Tomohiro 2007-04-23 12:48 0000 240 bytes Details
ecmascript-mode-1.1.ebuild ecmascript-mode-1.1.ebuild text/plain MATSUYAMA Tomohiro 2007-04-26 10:35 0000 485 bytes Details
javascript-mode-1.12.ebuild javascript-mode-1.12.ebuild text/plain MATSUYAMA Tomohiro 2007-04-26 10:35 0000 528 bytes Details
karl-javascript-mode-2.0_beta8.ebuild karl-javascript-mode-2.0_beta8.ebuild text/plain MATSUYAMA Tomohiro 2007-04-26 10:36 0000 486 bytes Details
50karl-javascript-mode-gentoo.el 50karl-javascript-mode-gentoo.el text/plain MATSUYAMA Tomohiro 2007-04-26 10:36 0000 240 bytes Details
ecmascript-mode-1.1.ebuild ecmascript-mode/ecmascript-mode-1.1.ebuild text/plain MATSUYAMA Tomohiro 2007-04-27 04:26 0000 465 bytes Details
javascript-mode-1.12.ebuild javascript-mode-1.12.ebuild text/plain MATSUYAMA Tomohiro 2007-04-27 04:27 0000 508 bytes Details
karl-javascript-mode-2.0_beta8.ebuild karl-javascript-mode-2.0_beta8.ebuild text/plain MATSUYAMA Tomohiro 2007-04-27 04:27 0000 461 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 175694 depends on: Show dependency tree
Show dependency graph
Bug 175694 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-04-23 12:43 0000
Hi.

I created minimal ebuilds (app-emacs/ecmascript-mode and
app-emacs/javascript-mode) for editing javascript files in emacs. They will
conflict together so that emacs could decide which major-mode to load, but I
don't know this is a good way...

Please tell me if there is something wrong with them because I am newbie.

Thanks.


Reproducible: Always

------- Comment #1 From MATSUYAMA Tomohiro 2007-04-23 12:44:33 0000 -------
Created an attachment (id=117076) [edit]
ecmascript-mode

------- Comment #2 From MATSUYAMA Tomohiro 2007-04-23 12:45:03 0000 -------
Created an attachment (id=117078) [edit]
50ecmascript-mode-gentoo.el

------- Comment #3 From MATSUYAMA Tomohiro 2007-04-23 12:47:39 0000 -------
Created an attachment (id=117080) [edit]
javascript-mode-1.12.ebuild

A version of this package is correctly 1.1-2. But a hyphen within the version
is not accepted, so I omitted the hyphen...

------- Comment #4 From MATSUYAMA Tomohiro 2007-04-23 12:48:02 0000 -------
Created an attachment (id=117082) [edit]
50javascript-mode-gentoo.el

------- Comment #5 From Marijn Schouten 2007-04-23 12:51:02 0000 -------
You will need to make sure some kind of emacs is installed. Like with
DEPEND="virtual/emacs" or DEPEND="app-editors/xemacs".

------- Comment #6 From MATSUYAMA Tomohiro 2007-04-23 13:25:59 0000 -------
I did not write DEPEND="virtual/emacs" consciously because I found a same code
in /usr/portage/eclass/elisp.class.

------- Comment #7 From Ulrich Müller 2007-04-23 13:32:15 0000 -------
(In reply to comment #5)
> You will need to make sure some kind of emacs is installed. Like with
> DEPEND="virtual/emacs" or DEPEND="app-editors/xemacs".

You need not; this is already set by elisp.eclass.

------- Comment #8 From Ulrich Müller 2007-04-23 13:38:28 0000 -------
(In reply to comment #3)
> A version of this package is correctly 1.1-2. But a hyphen within the version
> is not accepted, so I omitted the hyphen...

You should do something like the following here:

inherit versionator
MY_PV=$(replace_version_separator 2 '-')
SRC_URI="http://gentoo.panicode.com/distfiles/${PN}-${MY_PV}.tar.gz"

And the ebuild should then be named "javascript-mode-1.1.2.ebuild".

------- Comment #9 From Ulrich Müller 2007-04-23 18:56:19 0000 -------
(In reply to comment #8)
> > A version of this package is correctly 1.1-2. But a hyphen within the
> > version is not accepted, so I omitted the hyphen...

Sorry, I am confused. The distfile is really named 1.12, but the included elisp
file has javascript-mode-version = 1.10. Which one is right?

Note that there is also javascript mode by Karl Landström. See discussion at
<http://www.emacswiki.org/cgi-bin/wiki/JavaScriptMode>, especially the coloured
box at the bottom.

------- Comment #10 From MATSUYAMA Tomohiro 2007-04-24 12:04:08 0000 -------
> Sorry, I am confused. The distfile is really named 1.12, but the included elisp
> file has javascript-mode-version = 1.10. Which one is right?
Sorry, I confused the version about the hyphen with another version of package
I created, but thanks to let me know I will fix it before posting :)
So, assuming that the author forgot to rewrite the version I decided 1.12 is
right from the following link.
http://cvs.xemacs.org/viewcvs.cgi/XEmacs/packages/xemacs-packages/prog-modes/javascript-mode.el

> Note that there is also javascript mode by Karl Landström. See discussion at
> <http://www.emacswiki.org/cgi-bin/wiki/JavaScriptMode>, especially the coloured
> box at the bottom.
It seems that this javascript-mode is better than both I posted, especially
about indentation.
I want to create an ebuild for new one like app-emacs/karl-javascript-mode if
such the measure is usual. Or I should replace old one with new one?

------- Comment #11 From Ulrich Müller 2007-04-24 21:17:03 0000 -------
(In reply to comment #10)
> It seems that this javascript-mode is better than both I posted, especially
> about indentation.
> I want to create an ebuild for new one like app-emacs/karl-javascript-mode if
> such the measure is usual. Or I should replace old one with new one?

You may just post the ebuild if you wish. We can decide about the name of the
package later.

------- Comment #12 From MATSUYAMA Tomohiro 2007-04-26 10:35:16 0000 -------
Created an attachment (id=117298) [edit]
ecmascript-mode-1.1.ebuild

------- Comment #13 From MATSUYAMA Tomohiro 2007-04-26 10:35:45 0000 -------
Created an attachment (id=117299) [edit]
javascript-mode-1.12.ebuild

------- Comment #14 From MATSUYAMA Tomohiro 2007-04-26 10:36:25 0000 -------
Created an attachment (id=117300) [edit]
karl-javascript-mode-2.0_beta8

------- Comment #15 From MATSUYAMA Tomohiro 2007-04-26 10:36:44 0000 -------
Created an attachment (id=117302) [edit]
50karl-javascript-mode-gentoo.el

------- Comment #16 From MATSUYAMA Tomohiro 2007-04-26 10:40:41 0000 -------
I posted karl-javascript-mode-2.0_beta8.ebuild and
50karl-javascript-mode-gentoo.el.

Please check them.

------- Comment #17 From Ulrich Müller 2007-04-26 11:14:59 0000 -------
(In reply to comment #16)
> I posted karl-javascript-mode-2.0_beta8.ebuild and
> 50karl-javascript-mode-gentoo.el.
> 
> Please check them.

Syntax looks O.K. (You could use ${PN} for the SITEFILE, i.e. 50${PN}-gentoo.el
but this is not mandatory.)

Have you tested it on all architectures that are in KEYWORDS?

------- Comment #18 From Christian Faulhammer 2007-04-26 11:17:58 0000 -------
(In reply to comment #16)
> Please check them.

 Thumbs up from me, too.  Same comments though.

------- Comment #19 From MATSUYAMA Tomohiro 2007-04-26 16:40:39 0000 -------
> Syntax looks O.K. (You could use ${PN} for the SITEFILE, i.e. 50${PN}-gentoo.el
> but this is not mandatory.)
I will fix it.

> Have you tested it on all architectures that are in KEYWORDS?
I have tested on amd64 only...

------- Comment #20 From Christian Faulhammer 2007-04-26 18:08:02 0000 -------
(In reply to comment #19)
> > Have you tested it on all architectures that are in KEYWORDS?
> I have tested on amd64 only...

 Then please remove all those you have not tested yourself.

------- Comment #21 From MATSUYAMA Tomohiro 2007-04-27 04:26:51 0000 -------
Created an attachment (id=117364) [edit]
ecmascript-mode/ecmascript-mode-1.1.ebuild

------- Comment #22 From MATSUYAMA Tomohiro 2007-04-27 04:27:10 0000 -------
Created an attachment (id=117366) [edit]
javascript-mode-1.12.ebuild

------- Comment #23 From MATSUYAMA Tomohiro 2007-04-27 04:27:34 0000 -------
Created an attachment (id=117368) [edit]
karl-javascript-mode-2.0_beta8.ebuild

------- Comment #24 From MATSUYAMA Tomohiro 2007-04-27 04:31:40 0000 -------
I rewrote SITEFILE with ${PN} like SITEFILE="50${PN}-gentoo.el" and removed
untested keywords.

------- Comment #25 From Ulrich Müller 2007-04-27 06:44:43 0000 -------
Karl Landström's javascript mode is available as package app-emacs/javascript
in the Emacs Overlay, see <http://overlays.gentoo.org/proj/emacs/>.
(It may take a few hours for the distfile to appear on the Gentoo mirrors.)

------- Comment #26 From Ulrich Müller 2007-05-05 18:40:00 0000 -------
(In reply to comment #25)
> Karl Landström's javascript mode is available as package app-emacs/javascript
> in the Emacs Overlay, see <http://overlays.gentoo.org/proj/emacs/>.

Added to CVS, thank you for submitting the ebuild.
(Keyworded as ~x86; the ~amd64 keyword will follow soon.)

First Last Prev Next    No search results available      Search page      Enter new bug