Bug 281720 - multimedia/droidcam: Fix previous patch and minor changes
Summary: multimedia/droidcam: Fix previous patch and minor changes
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: Robert Clausecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-25 21:34 UTC by Yusuf Yaman
Modified: 2024-09-30 15:02 UTC (History)
2 users (show)

See Also:


Attachments
multimedia/droidcam (2.41 KB, patch)
2024-09-25 21:36 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff
multimedia/droidcam (1.33 KB, patch)
2024-09-26 16:34 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff
multimedia/droidcam (2.48 KB, patch)
2024-09-29 21:07 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff
multimedia/droidcam (3.01 KB, patch)
2024-09-29 21:10 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Yaman 2024-09-25 21:34:20 UTC

    
Comment 1 Yusuf Yaman 2024-09-25 21:36:29 UTC
Created attachment 253825 [details]
multimedia/droidcam

This patch fixes 281586 by adding forgotten directory pointing to the program's icon path.
Also, now it uses ${PORTNAME} wherever it's possible and also replaces program's
installation path with ${PREFIX} in program's .desktop file.
Comment 2 Robert Clausecker freebsd_committer freebsd_triage 2024-09-25 22:38:41 UTC
There's not really a need to use ${PORTNAME} all over the place.  Rule of thumb: only use ${PORTNAME} where the port would still work if you were to change PORTNAME to something else.  Strings that are just incidentally the same as PORTNAME but wouldn't change if you changed the port name should not use the macro.

But anyway, thanks for catching my oversight in bug #281586.  I had too many patches and didn't test enough.
Comment 3 Yusuf Yaman 2024-09-26 16:33:48 UTC
(In reply to Robert Clausecker from comment #2)
Okay, i decided to not use any macro in this because i didn't understand it much.

You are welcome.
Comment 4 Yusuf Yaman 2024-09-26 16:34:04 UTC
Created attachment 253833 [details]
multimedia/droidcam
Comment 5 Robert Clausecker freebsd_committer freebsd_triage 2024-09-26 18:13:01 UTC
At the end of the day, you can use PORTNAME however you want.  It's just a recommendation to use it the way I indicated.  Which way do you prefer?
Comment 6 Yusuf Yaman 2024-09-29 21:06:32 UTC
(In reply to Robert Clausecker from comment #5)
Sorry for the delay.

Okay then, i'd like to use PORTNAME macro here. I meanwhile noticed that my REINPLACE_CMD macro didn't work properly because it was missing the whole old string and fixed them too.

Thanks.
Comment 7 Yusuf Yaman 2024-09-29 21:07:34 UTC
Created attachment 253895 [details]
multimedia/droidcam
Comment 8 Yusuf Yaman 2024-09-29 21:10:10 UTC
Created attachment 253896 [details]
multimedia/droidcam

I ran portfmt and fixed some order this time.
Comment 9 Robert Clausecker freebsd_committer freebsd_triage 2024-09-29 21:53:50 UTC
Once again sorry for my oversight.

I have a bunch of ports left to test and will commit your most recent patch once I'm done testing (should be soon-ish).
Comment 10 Yusuf Yaman 2024-09-29 22:03:35 UTC
No problem. Okay, very thanks.
Comment 11 commit-hook freebsd_committer freebsd_triage 2024-09-30 14:09:10 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3377cfa4c2e7ab8a4b29fb977588de6e9b72b22c

commit 3377cfa4c2e7ab8a4b29fb977588de6e9b72b22c
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2024-09-29 21:09:12 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-09-30 14:07:48 +0000

    multimedia/droidcam: Fix previous patch and minor changes

    This patch fixes 281586 by adding forgotten directory pointing to the program's icon path.
    Also, now it uses ${PORTNAME} wherever it's possible and replaces program's
    installation path with ${PREFIX} in program's .desktop file.

    PR:             281720
    Fixes:          adc8361b87972451ffbfe619aa714bc2fd2fa024

 multimedia/droidcam/Makefile | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)
Comment 12 Robert Clausecker freebsd_committer freebsd_triage 2024-09-30 14:12:47 UTC
Thank you for your contribution.
Comment 13 Yusuf Yaman 2024-09-30 15:02:31 UTC
You are welcome and thanks for giving a look. Have a good one.