Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
unbreak linux build and cleanup library_dependency aliases to always …
Browse files Browse the repository at this point in the history
…list [unix-name, windows-name]
  • Loading branch information
vtjnash committed Sep 17, 2014
1 parent 1c33500 commit 8565423
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ using BinDeps
group = library_group("gtk")

deps = [
gtk = library_dependency("gtk", aliases = ["libgtk-3", "libgtk-3-0"], group = group)
glib = library_dependency("glib", aliases = ["libglib-2.0", "libglib-2.0-0"], group = group)
gdk = library_dependency("gdk", aliases = ["libgdk-3-0", "libgdk-3.0"], group = group)
gdk_pixbuf = library_dependency("gdk_pixbuf", aliases = ["libgdk_pixbuf-2.0-0", "libgdk_pixbuf-2.0.0"], group = group)
gio = library_dependency("gio", aliases = ["libgio-2.0-0","libgio-2.0.0"], group = group)
gobject = library_dependency("gobject", aliases = ["libgobject-2.0.0", "libgobject-2.0-0", "libgobject-2.0", "libgobject-2_0-0"], group = group)
gobject = library_dependency("gobject", aliases = ["libgobject-2.0", "libgobject-2.0-0"], group = group)
gtk = library_dependency("gtk", aliases = ["libgtk-3", "libgtk-3-0"], group = group)
gdk = library_dependency("gdk", aliases = ["libgdk-3", "libgdk-3-0"], group = group)
gdk_pixbuf = library_dependency("gdk_pixbuf", aliases = ["libgdk_pixbuf-2.0", "libgdk_pixbuf-2.0-0"], group = group)
gio = library_dependency("gio", aliases = ["libgio-2.0", "libgio-2.0-0"], group = group)
]

@linux_only begin
provides(AptGet, "libgtk-3-0", gtk)
provides(Yum, "gtk3", gtk)
provides(AptGet, "libgtk-3-0", deps)
provides(Yum, "gtk3", deps)
end

@windows_only begin
Expand All @@ -27,24 +27,24 @@ end
@osx_only begin
using Homebrew
provides(Homebrew.HB, "gtk+3", [gtk, gdk, gobject], os = :Darwin, onload =
"""
function __init__bindeps__()
if "XDG_DATA_DIRS" in ENV
ENV["XDG_DATA_DIRS"] *= ":" * joinpath("$(Homebrew.brew_prefix)", "share")
else
ENV["XDG_DATA_DIRS"] = joinpath("$(Homebrew.brew_prefix)", "share")
"""
function __init__bindeps__()
if "XDG_DATA_DIRS" in ENV
ENV["XDG_DATA_DIRS"] *= ":" * joinpath("$(Homebrew.brew_prefix)", "share")
else
ENV["XDG_DATA_DIRS"] = joinpath("$(Homebrew.brew_prefix)", "share")
end
end
end
""")
""")
provides(Homebrew.HB, "glib", [glib, gio], os = :Darwin)
provides(Homebrew.HB, "gdk-pixbuf", gdk_pixbuf, os = :Darwin)
end

@BinDeps.install [
:glib => :libglib,
:gobject => :libgobject,
:gtk => :libgtk,
:gdk => :libgdk,
:gdk_pixbuf => :libgdk_pixbuf,
:gio => :libgio,
:gobject => :libgobject,
:glib => :libglib
]

0 comments on commit 8565423

Please sign in to comment.