GPGme

lucha's Avatar

lucha

04 Jul, 2012 01:48 PM

Is there a way to install libgpgme with GPGTools, in order to use it to build other packages (i.e. pygpgme)?

I've searched for it but looks like standard installation of GPGTools does not provide it.

  1. Support Staff 1 Posted by Luke Le on 04 Jul, 2012 03:27 PM

    Luke Le's Avatar

    Hi Lucha,

    we've replaced MacGPGME, which internally was using libgpgme with our own framework called Libmacgpg.

    The easiest way to install libgpgme is using homebrew (mxcl.github.com/homebrew/)

    If you only care about running your app on mac os x, you might also be able to use our Libmacgpg framework in Python using the PyObjC bridge.

    Let us know if you have more questions.

  2. 2 Posted by lucha on 04 Jul, 2012 03:36 PM

    lucha's Avatar

    I see.

    I wanted to try to install libgpgme using homebrew, but it depends on gnupg, and I had the impression it could override binaries from GPGTools... am I wrong?

    On the other side, I was trying to use a python application written by someone else wich uses pygpgme. As you say, it's should be straight-forward to make a "pymacgpg" bindings using PyObjC. On the other side I won't probably have the time to do it, and it's a pity to develop platform depending python libraries.

    Thanks for the quick reply anyway!

  3. Support Staff 3 Posted by Luke Le on 04 Jul, 2012 03:43 PM

    Luke Le's Avatar

    You should actually be able to install gnupg in a way that it's not linked into the homebrew bin folders and thus should not be in conflict with GPGTools.
    (It would also be possible to reconfigure the Formula to use GPGTools's MacGPG2, but I guess that's harder)

    I'll have to look it up for you later, but it's something to do with kegs and you'll have to change the gnupg Formula.

    I can help you a little later or tomorrow if you don't find a way to do it yourself.

    P.S.: Sei italiano?

  4. 4 Posted by lucha on 04 Jul, 2012 03:58 PM

    lucha's Avatar

    The best solution would probably make Homebrew use GPGTool's libraries and binaries (and would be in the spirit of Homebrew, btw).

    The "dirty" solution is, as you said, modify the gnupg formula and add the "keg-only" option. https://github.com/mxcl/homebrew/wiki/Formula-Cookbook

    I will try to hack something and see if it's worth to push it into homebrew repository.

    p.s. si, italiano. Si nota? :)

  5. Support Staff 5 Posted by Luke Le on 04 Jul, 2012 04:51 PM

    Luke Le's Avatar

    You might also wanna checkout our MacGPG2 repos, since we build our version of gpg with honebrew using modified Formulas.
    It might be easier to integrate libgpgme with those Formulas.

    P.S.: no no, ho solo visto il tuo indirizzo email :)

  6. Support Staff 6 Posted by Steve on 22 Jul, 2012 06:15 PM

    Steve's Avatar

    No further user feedback. Closing.

    @lucha: Should your problem persist, feel free to re-open this discussion any time.

    All the best,
    steve


    Please consider a donation. We do all this in our spare time.

  7. Steve closed this discussion on 22 Jul, 2012 06:15 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac