Import www/uget

uGet is a lightweight and full-featured Download Manager. uGet allows
you to download in multiple parallel streams for download acceleration,
put files in a Download Queue, Pause & Resume downloads, Advanced
Category Management, Browser Integration, Clipboard Monitoring, Batch
Downloads, localized into 23 Languages, and many more features.
ok juanfra@ edd@
This commit is contained in:
bcallah 2014-08-31 02:06:36 +00:00
parent 93a9431010
commit 218bfb5a94
7 changed files with 156 additions and 0 deletions

46
www/uget/Makefile Normal file
View File

@ -0,0 +1,46 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/08/31 02:06:36 bcallah Exp $
COMMENT = lightweight graphical download manager
DISTNAME = uget-1.10.4
CATEGORIES = www net x11
HOMEPAGE = http://ugetdm.com/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# LGPLv2.1+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += atk-1.0 c cairo cairo-gobject crypto curl fontconfig
WANTLIB += freetype gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB += gstreamer-1.0 gthread-2.0 gtk-3 idn m notify pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pthread ssl z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=urlget/}
MODULES = devel/gettext \
textproc/intltool
LIB_DEPENDS = devel/libnotify \
multimedia/gstreamer1/core \
net/curl \
x11/gtk+3
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+2,-guic
# You should be using aria2 if the arch has it.
.if ${MACHINE_ARCH} != "mips64el" && ${MACHINE_ARCH} != "mips64"
RUN_DEPENDS += www/aria2
.endif
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# BSD make doesn't install the localization files.
USE_GMAKE = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/uget-gtk/UgSetting.c
.include <bsd.port.mk>

2
www/uget/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (uget-1.10.4.tar.gz) = olxcya9Oh6LCIgbzdv/OcGl+90OpAuzwKLUKWGGApiI=
SIZE (uget-1.10.4.tar.gz) = 576147

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-po_POTFILES_in,v 1.1.1.1 2014/08/31 02:06:36 bcallah Exp $
Fix 'make test'
--- po/POTFILES.in.orig Tue Jun 24 00:32:05 2014
+++ po/POTFILES.in Tue Jun 24 00:32:12 2014
@@ -16,6 +16,7 @@ uglib/UgRunning.c
uglib/UgStdio.c
uglib/UgUri.c
uglib/UgUtils.c
+uglib/pwmd.c
uget-gtk/UgApp-gtk.c
uget-gtk/UgApp-gtk-aria2.c
uget-gtk/UgApp-gtk-callback.c

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-uget-gtk_UgSetting_c,v 1.1.1.1 2014/08/31 02:06:36 bcallah Exp $
--- uget-gtk/UgSetting.c.orig Tue Jun 24 00:37:31 2014
+++ uget-gtk/UgSetting.c Tue Jun 24 00:38:02 2014
@@ -512,7 +512,7 @@ void ug_setting_init (UgSetting* setting)
setting->plugin.aria2.enable = FALSE;
setting->plugin.aria2.launch = TRUE;
setting->plugin.aria2.shutdown = TRUE;
- setting->plugin.aria2.path = g_strdup ("aria2c");
+ setting->plugin.aria2.path = g_strdup ("${TRUEPREFIX}/bin/aria2c");
setting->plugin.aria2.args = g_strdup ("--enable-rpc=true -D --check-certificate=false");
setting->plugin.aria2.uri = g_strdup ("http://localhost:6800/rpc");

5
www/uget/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
uGet is a lightweight and full-featured Download Manager. uGet allows
you to download in multiple parallel streams for download acceleration,
put files in a Download Queue, Pause & Resume downloads, Advanced
Category Management, Browser Integration, Clipboard Monitoring, Batch
Downloads, localized into 23 Languages, and many more features.

62
www/uget/pkg/PLIST Normal file
View File

@ -0,0 +1,62 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/08/31 02:06:36 bcallah Exp $
@bin bin/uget-gtk
share/applications/uget-gtk.desktop
share/doc/pkg-readmes/${FULLPKGNAME}
share/icons/hicolor/128x128/apps/uget-icon.png
share/icons/hicolor/16x16/apps/uget-icon.png
share/icons/hicolor/16x16/apps/uget-tray-default.png
share/icons/hicolor/16x16/apps/uget-tray-downloading.png
share/icons/hicolor/16x16/apps/uget-tray-error.png
share/icons/hicolor/22x22/apps/uget-icon.png
share/icons/hicolor/22x22/apps/uget-tray-default.png
share/icons/hicolor/22x22/apps/uget-tray-downloading.png
share/icons/hicolor/22x22/apps/uget-tray-error.png
share/icons/hicolor/24x24/apps/uget-icon.png
share/icons/hicolor/24x24/apps/uget-tray-default.png
share/icons/hicolor/24x24/apps/uget-tray-downloading.png
share/icons/hicolor/24x24/apps/uget-tray-error.png
share/icons/hicolor/32x32/apps/uget-icon.png
share/icons/hicolor/32x32/apps/uget-tray-default.png
share/icons/hicolor/32x32/apps/uget-tray-downloading.png
share/icons/hicolor/32x32/apps/uget-tray-error.png
share/icons/hicolor/48x48/apps/uget-icon.png
share/icons/hicolor/48x48/apps/uget-tray-default.png
share/icons/hicolor/48x48/apps/uget-tray-downloading.png
share/icons/hicolor/48x48/apps/uget-tray-error.png
share/icons/hicolor/64x64/apps/uget-icon.png
share/icons/hicolor/96x96/apps/uget-icon.png
share/icons/hicolor/scalable/apps/uget-icon.svg
share/locale/ar/LC_MESSAGES/uget.mo
share/locale/be/LC_MESSAGES/uget.mo
share/locale/bn_BD/
share/locale/bn_BD/LC_MESSAGES/
share/locale/bn_BD/LC_MESSAGES/uget.mo
share/locale/cs/LC_MESSAGES/uget.mo
share/locale/da/LC_MESSAGES/uget.mo
share/locale/de/LC_MESSAGES/uget.mo
share/locale/es/LC_MESSAGES/uget.mo
share/locale/fr/LC_MESSAGES/uget.mo
share/locale/hu/LC_MESSAGES/uget.mo
share/locale/id/LC_MESSAGES/uget.mo
share/locale/it/LC_MESSAGES/uget.mo
share/locale/ka_GE/
share/locale/ka_GE/LC_MESSAGES/
share/locale/ka_GE/LC_MESSAGES/uget.mo
share/locale/pl/LC_MESSAGES/uget.mo
share/locale/pt_BR/LC_MESSAGES/uget.mo
share/locale/ru/LC_MESSAGES/uget.mo
share/locale/tr/LC_MESSAGES/uget.mo
share/locale/uk/LC_MESSAGES/uget.mo
share/locale/vi/LC_MESSAGES/uget.mo
share/locale/zh_CN/LC_MESSAGES/uget.mo
share/locale/zh_TW/LC_MESSAGES/uget.mo
share/pixmaps/
share/pixmaps/uget/
share/pixmaps/uget/logo.png
share/sounds/
share/sounds/uget/
share/sounds/uget/notification.wav
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database

15
www/uget/pkg/README Normal file
View File

@ -0,0 +1,15 @@
$OpenBSD: README,v 1.1.1.1 2014/08/31 02:06:36 bcallah Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
Using the aria2 plug-in
=======================
uGet has an aria2 plug-in that allows aria2 to be used as a backend over
cURL. To use this plug-in: start uget-gtk, select Edit->Settings... from
the menubar, click the Plug-in tab and check the box labelled
"Enable aria2 plug-in."
This will allow uGet to download everything aria2 can download,
including torrent files.