Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details
py-puremagic Pure python implementation of magic file detection
2.2.0 sysutils Σ=1 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.2.0Version of this port present on the latest quarterly branch.
Maintainer: james@french.id.au search for ports maintained by this maintainer
Port Added: 2022-01-09 21:15:18
Last Update: 2026-09-21 19:20:49
Commit Hash: 414d337
People watching this port, also watch: libgd, netpbm, libwmf, p5-Socket6, docbook-xml
Also Listed In: python
License: MIT
WWW:
https://pypi.org/project/puremagic/
Description: #
Puremagic is a python module that will identify a file from magic numbers. It is designed to be minimalistic and inherently cross platform compatible. It is also designed to be a stand in for python-magic, it incorporates the functions from_file(filename[, mime]) and from_string(string[, mime]) however the magic_file() and magic_string() are more powerful and will also display confidence and duplicate matches. It does NOT try to match files off non-magic string. In other words it will not search for a string within a certain window of bytes like others might.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}puremagic>0:sysutils/py-puremagic@${PY_FLAVOR}
To install the port: #
cd /usr/ports/sysutils/py-puremagic/ && make install clean
To add the package, run one of these commands:
  • pkg install sysutils/py-puremagic
  • pkg install py312-puremagic
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py312-puremagic listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py312-puremagic
Package flavors (<flavor>: <package>) #
  • py312: py312-puremagic
distinfo: #
TIMESTAMP = 1789698680 SHA256 (puremagic-2.2.0.tar.gz) = eb4bddf07c177c4b434554b92165b67449f5a51e152b976202d6254498810eef SIZE (puremagic-2.2.0.tar.gz) = 1189752

Packages (timestamps in pop-ups are UTC): #
py39-puremagic
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest--1.14--
FreeBSD:14:quarterly-----
FreeBSD:15:latest--n/a-n/a
FreeBSD:15:quarterly--n/a-n/a
FreeBSD:16:latest--n/a-n/a
 
py311-puremagic
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest---1.24_1-
FreeBSD:14:quarterly---1.24_1-
FreeBSD:15:latest--n/a1.24_1n/a
FreeBSD:15:quarterly--n/a-n/a
FreeBSD:16:latest--n/a-n/a
 
py312-puremagic
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest2.2.02.2.0--2.2.0
FreeBSD:14:quarterly2.2.02.2.0--2.2.0
FreeBSD:15:latest2.2.02.2.0n/a-n/a
FreeBSD:15:quarterly2.2.02.2.0n/a-n/a
FreeBSD:16:latest2.2.02.2.0n/a-n/a
 
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. py312-setuptools>0 : devel/py-setuptools@py312
  2. py312-setuptools-scm>=6.2 : devel/py-setuptools-scm@py312
  3. py312-wheel>=0 : devel/py-wheel@py312
  4. python3.12 : lang/python312
  5. py312-build>=0 : devel/py-build@py312
  6. py312-installer>=0 : devel/py-installer@py312
Test dependencies: #
  1. py312-pytest>=7,1 : devel/py-pytest@py312
  2. python3.12 : lang/python312
Runtime dependencies: #
  1. python3.12 : lang/python312
This port is required by: #
for Run #
  1. converters/py-markitdown
  2. graphics/py-mayavi
  3. misc/py-llm
  4. news/sabnzbd
  5. print/py-relatorio

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. news/sabnzbdplus*
  2. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options: #
No options to configure
Options name: #
sysutils_py-puremagic
USES: #
python
FreshPorts was unable to extract/find any pkg message #
Master Sites: #
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/p/puremagic/
  2. https://pypi.org/packages/source/p/puremagic/
Collapse this list.

Number of commits found: 12 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.2.0
21 Sep 2026 19:20:49
commit hash: 414d337b23ab91883a61ad6fefcc04c4d0c4a680commit hash: 414d337b23ab91883a61ad6fefcc04c4d0c4a680commit hash: 414d337b23ab91883a61ad6fefcc04c4d0c4a680commit hash: 414d337b23ab91883a61ad6fefcc04c4d0c4a680 files touched by this commit
Michael Osipov (michaelo) search for other commits by this committer
Author: Pete Diamond
sysutils/py-puremagic: Update to 2.2.0

Co-authored-by:	Michael Osipov <michaelo@FreeBSD.org>
PR:		298690
Approved by:	james@french.id.au (maintainer)
1.30_1
26 Mar 2026 17:09:11
commit hash: 74b10f9ee9307aa957a23b15d9908de36349c731commit hash: 74b10f9ee9307aa957a23b15d9908de36349c731commit hash: 74b10f9ee9307aa957a23b15d9908de36349c731commit hash: 74b10f9ee9307aa957a23b15d9908de36349c731 files touched by this commit
Philippe Audeoud (jadawin) search for other commits by this committer
sysutils/py-puremagic: update 1.3.0

PR:		294055
1.24_1
08 Mar 2025 04:05:21
commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303 files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal

Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
1.24
21 Jun 2024 00:03:45
commit hash: 3f94ab8fecdce516d3923fefc4de72d5a72b0515commit hash: 3f94ab8fecdce516d3923fefc4de72d5a72b0515commit hash: 3f94ab8fecdce516d3923fefc4de72d5a72b0515commit hash: 3f94ab8fecdce516d3923fefc4de72d5a72b0515 files touched by this commit
Wen Heping (wen) search for other commits by this committer
sysutils/py-puremagic: Update to 1.24

PR:		279809
Reported by:	james@french.id.au(maintainer)
1.14
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
1.14
11 Jan 2023 15:58:34
commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656commit hash: 77d68471aded6907dbbcb5ef50d557e4c69db656 files touched by this commit
Dmitry Marakasov (amdmi3) search for other commits by this committer
*/*: rename CHEESESHOP to PYPI in MASTER_SITES

PR:			267994
Differential revision:	D37518
Approved by:		bapt
1.14
10 Sep 2022 16:07:42
commit hash: 0da6b25b61bd30495efcac74285e3d621dad14afcommit hash: 0da6b25b61bd30495efcac74285e3d621dad14afcommit hash: 0da6b25b61bd30495efcac74285e3d621dad14afcommit hash: 0da6b25b61bd30495efcac74285e3d621dad14af files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
sysutils/py-puremagic: Add NO_ARCH

Approved by:	portmgr (blanket)
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
1.14
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
1.14
23 May 2022 16:08:00
commit hash: 7bdca6501cc7cde9340cfd9e6e354356351983cfcommit hash: 7bdca6501cc7cde9340cfd9e6e354356351983cfcommit hash: 7bdca6501cc7cde9340cfd9e6e354356351983cfcommit hash: 7bdca6501cc7cde9340cfd9e6e354356351983cf files touched by this commit
Nuno Teixeira (eduardo) search for other commits by this committer
Author: James French
sysutils/py-puremagic: Update to 1.14

 - use DISTVERSION instead of PORTVERSION

ChangeLog: https://github.com/cdgriffith/puremagic/blob/1.14/CHANGELOG.md

PR:		264143
1.12
16 Feb 2022 17:59:56
commit hash: 5a189bd0b35b242a5ee474b2be09b406ee78f1e5commit hash: 5a189bd0b35b242a5ee474b2be09b406ee78f1e5commit hash: 5a189bd0b35b242a5ee474b2be09b406ee78f1e5commit hash: 5a189bd0b35b242a5ee474b2be09b406ee78f1e5 files touched by this commit
Li-Wen Hsu (lwhsu) search for other commits by this committer
Author: James French
sysutils/py-puremagic: Update to 1.12

Changes: https://github.com/cdgriffith/puremagic/releases/tag/1.12

PR:		261985
1.11
09 Jan 2022 21:11:26
commit hash: de71112c7a823162620d934bb8a416ea7a3b888acommit hash: de71112c7a823162620d934bb8a416ea7a3b888acommit hash: de71112c7a823162620d934bb8a416ea7a3b888acommit hash: de71112c7a823162620d934bb8a416ea7a3b888a files touched by this commit
Max Brazhnikov (makc) search for other commits by this committer
sysutils/py-puremagic: add new port

Pure python implementation of magic file detection.

PR:		258593
Submitted by:	James French

Number of commits found: 12