easy-tag: move to Python 3

This commit is contained in:
FX Coudert 2018-12-27 21:24:47 +01:00
parent b9e0274e03
commit 4f7b2329ae

View file

@ -15,6 +15,7 @@ class EasyTag < Formula
depends_on "intltool" => :build
depends_on "itstool" => :build
depends_on "pkg-config" => :build
depends_on "python" => :build
depends_on "adwaita-icon-theme"
depends_on "flac"
depends_on "gtk+3"
@ -31,7 +32,9 @@ class EasyTag < Formula
patch :DATA
def install
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages"
xy = Language::Python.major_minor_version "python3"
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python#{xy}/site-packages"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-schemas-compile"