Opened 12 years ago

Closed 7 years ago

#35716 closed submission (fixed)

New port: markdown-mode.el

Reported by: cubranic@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jrblevin@…, manu@…
Port: markdown-mode.el

Description

Markdown-mode is an Emacs mode for editing text files using the Markdown formatting.

Attachments (1)

Portfile (1.8 KB) - added by cubranic@… 11 years ago.
Portfile with the emacs_app variant and upgraded to version 2.0

Download all attachments as: .zip

Change History (12)

comment:1 Changed 12 years ago by cubranic@…

Question: do I need to include "universal_variant no" for a port that includes only Emacs-lisp code? In this case, it doesn't really make sense to install a universal variant, but I don't want to make it un-installable on a universal system.

comment:2 in reply to:  1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Port: markdown-mode.el added

Replying to cubranic@…:

Question: do I need to include "universal_variant no" for a port that includes only Emacs-lisp code?

No, because both "supported_archs noarch" and "use_configure no" already imply it.

comment:3 Changed 12 years ago by cubranic@…

Thank you for the explanation. I attached the updated Portfile, with 'universal_variant no' removed. I also changed 'depends_build' to 'depends_lib', because Emacs is needed to both build and run the port.

Also, I entered the maintainer as 'nomaintainer', but would be happy to be one of course.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Version: 2.1.2

The checksums don't match for me. If the distfile is being generated on demand, that is likely the reason, and is a problem.

comment:5 Changed 12 years ago by cubranic@…

You're correct. I downloaded two distfiles a few minutes apart, and while the unpacked contents are identical, the distfiles themselves are not binary indentical because of GZIP's timestamp in the header.

I changed the portfile to download the files available as static content from the project's web site. (Attached.)

comment:6 Changed 12 years ago by jrblevin@…

I'm the author of markdown-mode and noticed this port submission recently. I'm a MacPorts user, but it had not occurred to me to make a Portfile for markdown-mode, so thanks for making one! I thought I'd provide some additional information in case it's helpful. Also, I'll note that there is a new version (1.9) since this Portfile was written.

Replying to cubranic@…:

Replying to jmr@…:

The checksums don't match for me. If the distfile is being generated on demand, that is likely the reason, and is a problem.

You're correct. I downloaded two distfiles a few minutes apart, and while the unpacked contents are identical, the distfiles themselves are not binary indentical because of GZIP's timestamp in the header.

The tarballs from the cgit interface are indeed automatically generated. In case they are useful, I've created "official" tarballs for each markdown-mode release which can be found, e.g., here:

http://jblevins.org/projects/markdown-mode/markdown-mode-1.9.tar.gz

I'll keep adding these for each new stable release, so feel free to pull the distfile using the corresponding URL pattern. Of course, currently only the markdown-mode.el file is needed for installation, so it's fine to just download that file directly.

Replying to cubranic@…:

I changed the portfile to download the files available as static content from the project's web site. (Attached.)

Although the stable version (used in the most recent Portfile attached above) has been on a long release cycle, I'd suggest that it be used for a primary package. If you still prefer to use the Git version (perhaps it could be called something like markdown-mode-git) then the latest .el file at the HEAD can be obtained directly here:

http://jblevins.org/git/markdown-mode.git/plain/markdown-mode.el

Also, in case it helps with automating things, the 'stable' branch in the Git repository always tracks the last release, and each release has a tag of the form 'v1.8.1' or 'v1.9':

http://jblevins.org/git/markdown-mode.git/log/?h=stable

Finally, is it possible (or even necessary) to create an emacs_app variant? I used something like the following in the Portfile I wrote for the ESS package:

variant emacs_app description "If your Emacs is emacs-app" {
    depends_lib-append      port:emacs-app
    depends_lib-delete      port:emacs
    destroot.args-append    EMACS=/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
    destroot.args-append    LISPDIR=${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp/ess
}

Or is the emacs-app package already configured to look in ${destroot}${prefix}/share/emacs/site-lisp?

Thanks again for this port and please let me know if there's anything I can do to help.

comment:7 Changed 12 years ago by jrblevin@…

Cc: jrblevin@… added

Cc Me!

comment:8 Changed 11 years ago by cubranic@…

Thank you Jason. I just noticed that markdown-mode 2.0 has been released. (Six months ago!) This will give me a kick in the pants to update the proposed portfile for the new version and with changes you recommended.

comment:9 Changed 11 years ago by manu@…

Cc: manu@… added

Cc Me!

Changed 11 years ago by cubranic@…

Attachment: Portfile added

Portfile with the emacs_app variant and upgraded to version 2.0

comment:10 Changed 11 years ago by cubranic@…

I updated the port to:

  1. use markdown-mode 2.0
  2. add an emacs_app variant

Note that the port still uses ${destroot}${prefix}/share/emacs/site-lisp as the LISPDIR because Emacs-app has this directory in its load path by default.

comment:11 Changed 7 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.