{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::BuildProfiles (perldoc)\n\n## NAME\n\nDpkg::BuildProfiles - handle build profiles\n\n## DESCRIPTION\n\nThe Dpkg::BuildProfiles module provides functions to handle the build profiles.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **FUNCTIONS** (2 subsections)\n- **CHANGES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::BuildProfiles",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::BuildProfiles - handle build profiles",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "set_build_profiles",
                        "lines": 6
                    },
                    {
                        "name": "evaluate_restriction_formula",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "CHANGES",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::BuildProfiles - handle build profiles\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The Dpkg::BuildProfiles module provides functions to handle the build profiles.\n",
                "subsections": []
            },
            "FUNCTIONS": {
                "content": "@profiles = getbuildprofiles()\nGet an array with the currently active build profiles, taken from the environment variable\nDEBBUILDPROFILES.\n",
                "subsections": [
                    {
                        "name": "set_build_profiles",
                        "content": "Set @profiles as the current active build profiles, by setting the environment variable\nDEBBUILDPROFILES.\n\n@profiles = parsebuildprofiles($string)\nParses a build profiles specification, into an array of array references.\n"
                    },
                    {
                        "name": "evaluate_restriction_formula",
                        "content": "Evaluate whether a restriction formula of the form \"<foo bar> <baz>\", given as a nested\narray, is true or false, given the array of enabled build profiles.\n"
                    }
                ]
            },
            "CHANGES": {
                "content": "Version 1.00 (dpkg 1.17.17)\nMark the module as public.\n",
                "subsections": []
            }
        }
    }
}