Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

New formula: gregorio #9160

Closed
wants to merge 1 commit into from

3 participants

Nicholas Moe Adam Vandenberg Jack Nagel
Nicholas Moe

This is a new formula for gregorio, a package of tools for the
typesetting of Gregorian chant. This is my first-ever formula
submission, so I don't know if my system calls to brew are
stylistically correct, or if there are other ways of calling
brew commands within the formula.

The gregorio tools include:

  • gabc: a brief notation for representing Gregorian chant

  • GregorioTeX: a TeX style for typesetting scores

  • GregorioXML: an XML representation of a Gregorian chant score

The main work of the Gregorio project is the software program gregorio,
which can manipulate files in gabc notation and convert them into
OpusTeX, GregorioTeX, or GregorioXML files.

Nicholas Moe New formula: Gregorio, a chant typesetting tool
This is a new formula for `gregorio`, a package of tools for the
typesetting of Gregorian chant. This is my first-ever formula
submission, so I don't know if my system calls to `brew` are
stylistically correct, or if there are other ways of calling
`brew` commands within the formula.

The `gregorio` tools include:

- gabc: a brief notation for representing Gregorian chant

- GregorioTeX: a TeX style for typesetting scores

- GregorioXML: an XML representation of a Gregorian chant score

The main work of the Gregorio project is the software program gregorio,
which can manipulate files in gabc notation and convert them into
OpusTeX, GregorioTeX, or GregorioXML files.
3155754
Adam Vandenberg
Owner

Thanks for the submission!

Depending on gettext "ought" to be enough without linking it, as is done in the formula, but of course some things need extra steps. We'll need to find a workaround to doing this linking before merging this.

Potentially adding it to the PATH temporarily would work too.

Nicholas Moe

You bet! It turns out that you're right; depending on gettext alone without linking it works.

I've also found that I omitted the part of the install that copies gregorio's style files and fonts to the $TEXMFLOCAL directory, so I've created another commit with the updated formula: 90b8601.

I'm not sure if I should add the new commit to this pull request or if I should close this and open a new pull request; please advise.

Adam Vandenberg
Owner

I've pushed a clean-up here: https://github.com/adamv/homebrew/compare/d

But we can't have a formula do sudo during the install. What are our options?

Nicholas Moe
Adam Vandenberg
Owner

We can't allow any sort of user interaction during an install, brew install foo should never block on user input.

Jack Nagel
Owner

Closing due to no response.

Jack Nagel jacknagel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 17, 2011
  1. New formula: Gregorio, a chant typesetting tool

    Nicholas Moe authored
    This is a new formula for `gregorio`, a package of tools for the
    typesetting of Gregorian chant. This is my first-ever formula
    submission, so I don't know if my system calls to `brew` are
    stylistically correct, or if there are other ways of calling
    `brew` commands within the formula.
    
    The `gregorio` tools include:
    
    - gabc: a brief notation for representing Gregorian chant
    
    - GregorioTeX: a TeX style for typesetting scores
    
    - GregorioXML: an XML representation of a Gregorian chant score
    
    The main work of the Gregorio project is the software program gregorio,
    which can manipulate files in gabc notation and convert them into
    OpusTeX, GregorioTeX, or GregorioXML files.
This page is out of date. Refresh to see the latest.
Showing with 33 additions and 0 deletions.
  1. +33 −0 Library/Formula/gregorio.rb
33 Library/Formula/gregorio.rb
View
@@ -0,0 +1,33 @@
+require 'formula'
+
+class Gregorio < Formula
+ url 'http://download.gna.org/gregorio/releases/current/gregorio-2.0.tar.gz'
+ homepage 'http://home.gna.org/gregorio/'
+ md5 '53994e8ea7f3fe4148a66262b6c7d144'
+ head 'svn://svn.gna.org/svn/gregorio/trunk'
+ depends_on 'fontforge'
+
+ if ARGV.build_head?
+ depends_on 'gettext'
+ end
+
+ def install
+ if ARGV.build_head?
+ system "brew link gettext"
+ system "autoreconf", "-f", "-i"
+ system "brew unlink gettext"
+ end
+
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make"
+ system "make install"
+ end
+
+ def caveats; <<-EOS.undent
+ Gregorio requires a TeX Live installation to run.
+ Instead of installing a TeX system through Homebrew,
+ we recommend using a MacTeX distribution: http://www.tug.org/mactex/
+ EOS
+ end
+end
Something went wrong with that request. Please try again.