Bug 211293 - [new port] emulators/winetricks: easy way to work around problems in Wine
Summary: [new port] emulators/winetricks: easy way to work around problems in Wine
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Matthew Seaman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-22 12:42 UTC by Nikolai Lifanov
Modified: 2016-11-07 10:14 UTC (History)
3 users (show)

See Also:


Attachments
winetricks 20160709 (3.80 KB, patch)
2016-07-22 12:42 UTC, Nikolai Lifanov
no flags Details | Diff
winetricks 20160724 (3.63 KB, patch)
2016-07-25 13:50 UTC, Nikolai Lifanov
no flags Details | Diff
shar file (2.00 KB, text/plain)
2016-07-29 19:38 UTC, Carsten Larsen
no flags Details
winetricks 20160724 - simplified (2.55 KB, patch)
2016-07-29 19:58 UTC, Nikolai Lifanov
no flags Details | Diff
winetricks 20160724 (3.14 KB, patch)
2016-08-02 13:48 UTC, Nikolai Lifanov
no flags Details | Diff
winetricks 20161012 (3.14 KB, patch)
2016-10-12 15:30 UTC, Nikolai Lifanov
lifanov: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolai Lifanov 2016-07-22 12:42:07 UTC
Created attachment 172835 [details]
winetricks 20160709

This is a simple port that tracks Winetricks releases from GitHub.
Most Linux distros have it and newcomers (like me a while ago)
expect the package to be available.

o portlint -A: no problem
o manually tested build and runtime
Comment 1 Nikolai Lifanov 2016-07-25 13:50:57 UTC
Created attachment 172971 [details]
winetricks 20160724

update to new upstream 20160724 release
Comment 2 Carsten Larsen 2016-07-29 19:38:23 UTC
Created attachment 173101 [details]
shar file

I would suggest something simpler.
Comment 3 Nikolai Lifanov 2016-07-29 19:46:24 UTC
This looks good to me, but I really do not want to depend on a wine port.
We already have things like pipelight and playonlinux that can't be
co-installed because all wine ports conflict with each other.
Comment 4 Nikolai Lifanov 2016-07-29 19:56:25 UTC
I'm taking your pkg-descr. This is not from the upstream project, but
the one that makes the most sense to include. Also, zenity is a really
tiny dependency, so I'm enabling it unconditionally if not WITHOUT_X11.

Thanks for the custom install target suggestion!
Comment 5 Nikolai Lifanov 2016-07-29 19:58:01 UTC
Created attachment 173103 [details]
winetricks 20160724 - simplified

Here is an updated diff with suggestions by Carsten Larsen.
Comment 6 Carsten Larsen 2016-07-29 20:08:55 UTC
(In reply to Nikolai Lifanov from comment #4)
Hi Nikolai. No problem :)


I would still suggest to add guidelines for the user. With no Wine installed, I get this message from winetricks:
------------------------------------------------------
wineserver not found!
------------------------------------------------------


With emulators/wine installed, I get this message:
------------------------------------------------------
WINE is wine, which is neither on the path nor an executable file
------------------------------------------------------


With emulators/i386-wine installed, I got no error messages.
Comment 7 Nikolai Lifanov 2016-08-02 13:48:53 UTC
Created attachment 173195 [details]
winetricks 20160724

Sorry for the delay... Please check this one, which includes a pkg-message.
Comment 8 Nikolai Lifanov 2016-10-12 15:28:12 UTC
Comment on attachment 173101 [details]
shar file

Don't use this file. I'm not sure how to delete things from Bugzilla.
Comment 9 Nikolai Lifanov 2016-10-12 15:30:52 UTC
Created attachment 175668 [details]
winetricks 20161012

update to 20161012
Comment 10 Tobias Kortkamp freebsd_committer freebsd_triage 2016-11-05 15:57:40 UTC
Would be great to have this in the ports tree.

The dotnet452 verb needs archivers/cabextract, which I didn't have installed.  Maybe cabextract should be a dependency?

I think the port misses even more run dependencies.  This is from line 23 of winetricks:

# Uses the following non-POSIX system tools:
# - cabextract, unrar, unzip, and 7z are needed by some verbs.
# - aria2c, wget, or curl is needed for downloading.
# - zenity is needed by the GUI, though it can limp along somewhat with kdialog.
# - xdg-open (if present) or open (for OS X) is used to open download pages
#   for the user when downloads cannot be fully automated.
# - sudo is used to mount .iso images if the user cached them with -k option.
# - perl is used to munge steam config files
Comment 11 Matthew Seaman freebsd_committer freebsd_triage 2016-11-07 08:11:19 UTC
This port appears to be architecture independent:
```
pkg-static: DEVELOPER_MODE: Notice: arch "FreeBSD:10:amd64" -- no architecture specific files found:
**** could this package use a wildcard architecture?
```

I'll add

NO_ARCH=yes 

to the Makefile.
Comment 12 commit-hook freebsd_committer freebsd_triage 2016-11-07 10:13:44 UTC
A commit references this bug:

Author: matthew
Date: Mon Nov  7 10:13:00 UTC 2016
New revision: 425599
URL: https://svnweb.freebsd.org/changeset/ports/425599

Log:
  Winetricks is an easy way to work around problems in Wine.

  It has a menu of supported games/apps for which it can do
  all the workarounds automatically. It also lets you install
  missing DLLs or tweak various Wine settings individually.

  WWW: https://wiki.winehq.org/Winetricks

  PR:		211293
  Submitted by:	Nikolai Lifanov <lifanov@mail.lifanov.com>

Changes:
  head/emulators/Makefile
  head/emulators/winetricks/
  head/emulators/winetricks/Makefile
  head/emulators/winetricks/distinfo
  head/emulators/winetricks/pkg-descr
  head/emulators/winetricks/pkg-message
Comment 13 Matthew Seaman freebsd_committer freebsd_triage 2016-11-07 10:14:44 UTC
Committed, thanks!