* [gentoo-commits] repo/gentoo:master commit in: app-misc/mswinurl_launcher/
@ 2016-10-29 14:35 Ian Stakenvicius
0 siblings, 0 replies; only message in thread
From: Ian Stakenvicius @ 2016-10-29 14:35 UTC (permalink / raw
To: gentoo-commits
commit: dd0d66a343d384fe9d8c62622180b04e8ac94041
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 01:30:58 2016 +0000
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Sat Oct 29 14:35:45 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd0d66a3
app-misc/mswinurl_launcher: rescue from sunrise
This package has been a long time coming. Introduced to the Sunrise overlay in 2008,
it was kept out of the tree primarily due to a license issue (since the upstream script
doesn't have one). To be honest I'm not sure if *.url files are still created in
recent versions of Windows anymore, but I personally still have filesystems with WindowsXP
installed on them that I only access through linux, and having this file association open
the url in my system's default browser is quite handy.
The main difference between this package and that from Sunrise is that the .desktop file
is created inline rather than being a separate file, and that there is an appropriate
LICENSE and RESTRICT=mirror to allow the package to legally exist in the gentoo repo. This
ebuild has also been converted to EAPI6.
The ChangeLog from sunrise is as follows:
10 Sep 2009; Thomas Sachau (Tommy[D]) <tommy <AT> gentoo.org>
mswinurl_launcher-1.0.ebuild:
Drop src_unpack and S assignment, use DISTDIR in src_install directly
08 Sep 2009; Ian Stakenvicius (_AxS_) <ian <AT> aerobiology.ca>
+mswinurl_launcher-1.0.ebuild, +files/mswinurl_launcher.desktop,
+metadata.xml:
New package for bug #283698 - thanks to ssuominen for the ebuild help
Package-Manager: portage-2.3.0
app-misc/mswinurl_launcher/Manifest | 1 +
app-misc/mswinurl_launcher/metadata.xml | 11 +++++
.../mswinurl_launcher/mswinurl_launcher-1.0.ebuild | 53 ++++++++++++++++++++++
3 files changed, 65 insertions(+)
diff --git a/app-misc/mswinurl_launcher/Manifest b/app-misc/mswinurl_launcher/Manifest
new file mode 100644
index 00000000..e5dd4a4
--- /dev/null
+++ b/app-misc/mswinurl_launcher/Manifest
@@ -0,0 +1 @@
+DIST mswinurl_launcher-1.0.tar.gz 1289 SHA256 687172bf0817fa3910da7b52cbbdcb0d5b2f95757f8b35db84884310355ae76e SHA512 60435b78dc88ff3e6f780ef42a975eaedc2f515168ba1c6c3fc8b38f87ea5ad4d70d975825877233bae1c5f9c6a521d1c12d301683c9e3e705d18c6c26ce4f86 WHIRLPOOL 46613a71002a842fc66993dc7007bcc3dcc144591abc0d4afb4802757b0bcf636ff9e73d0d16c0be5cf675aed8b5e7348e33a92ccc84f7ef30c9842952ad3d77
diff --git a/app-misc/mswinurl_launcher/metadata.xml b/app-misc/mswinurl_launcher/metadata.xml
new file mode 100644
index 00000000..6fa1cc2
--- /dev/null
+++ b/app-misc/mswinurl_launcher/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>axs@gentoo.org</email>
+ <description>Primary maintainer</description>
+</maintainer>
+<longdescription>
+This is a simple launcher script and .desktop entry to associate MS Windows *.URL (text/x-uri)
+files on linux DEs so that they will open in the configured default web browser.</longdescription>
+</pkgmetadata>
diff --git a/app-misc/mswinurl_launcher/mswinurl_launcher-1.0.ebuild b/app-misc/mswinurl_launcher/mswinurl_launcher-1.0.ebuild
new file mode 100644
index 00000000..ee09304
--- /dev/null
+++ b/app-misc/mswinurl_launcher/mswinurl_launcher-1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils fdo-mime python-r1
+
+GIST_STRING="77635-a46707715aa2e112d2ea5ec26771030ff5e7eb64"
+
+DESCRIPTION="Launcher and desktop association for MS Windows *.URL (text/x-uri) files"
+HOMEPAGE="https://gist.github.com/endolith/77635"
+SRC_URI="https://gist.github.com/endolith/${GIST_STRING/-//archive/}.tar.gz -> ${P}.tar.gz"
+
+RESTRICT="mirror"
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-util/desktop-file-utils"
+RDEPEND="${PYTHON_DEPS}"
+
+S="${WORKDIR}"/$GIST_STRING
+
+src_install() {
+ dobin ${PN}.py
+ python_replicate_script "${ED%/}"/usr/bin/${PN}.py
+
+ cat <<DESKTOP_EOF >"${T}"/${PN}.desktop
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=MS Windows URL file launcher
+Comment=Python script to parse and launch .url files (html links) from MS Windows
+NoDisplay=true
+Terminal=false
+TryExec=mswinurl_launcher.py
+Exec=mswinurl_launcher.py %F
+Icon=text-html
+MimeType=text/x-uri;
+DESKTOP_EOF
+ domenu "${T}"/${PN}.desktop
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-29 14:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-29 14:35 [gentoo-commits] repo/gentoo:master commit in: app-misc/mswinurl_launcher/ Ian Stakenvicius
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox