[MacPorts] #35716: New port: markdown-mode.el
#35716: New port: markdown-mode.el ----------------------------------+----------------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: ----------------------------------+----------------------------------------- [http://jblevins.org/projects/markdown-mode/ Markdown-mode] is an Emacs mode for editing text files using the Markdown formatting. -- Ticket URL: <https://trac.macports.org/ticket/35716> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35716: New port: markdown-mode.el ----------------------------------+----------------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: ----------------------------------+----------------------------------------- Comment(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. -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35716: New port: markdown-mode.el ----------------------------------+----------------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: markdown-mode.el ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * port: => markdown-mode.el Comment: Replying to [comment:1 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. -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35716: New port: markdown-mode.el ----------------------------------+----------------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: markdown-mode.el ----------------------------------+----------------------------------------- Comment(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. -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35716: New port: markdown-mode.el -------------------------------+-------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: markdown-mode.el | -------------------------------+-------------------------------- Changes (by jmr@…): * version: 2.1.2 => Comment: The checksums don't match for me. If the distfile is being generated on demand, that is likely the reason, and is a problem. -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35716: New port: markdown-mode.el -------------------------------+-------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: markdown-mode.el | -------------------------------+-------------------------------- Comment (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.) -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35716: New port: markdown-mode.el -------------------------------+-------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: markdown-mode.el | -------------------------------+-------------------------------- Comment (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 [comment:5 cubranic@…]:
Replying to [comment:4 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 [comment:5 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. -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35716: New port: markdown-mode.el -------------------------------+-------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: markdown-mode.el | -------------------------------+-------------------------------- Comment (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. -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#35716: New port: markdown-mode.el -------------------------------+-------------------------------- Reporter: cubranic@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: markdown-mode.el | -------------------------------+-------------------------------- Comment (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. -- Ticket URL: <https://trac.macports.org/ticket/35716#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts